⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 createmesview.h

📁 symbian 3nd 实现短信息收发
💻 H
字号:
/*
* ============================================================================
*  Name     : CCreateMesView from CAknView
*  Part of  : AknExEditor
*  Copyright (c) 2003 Nokia. All rights reserved.
* ============================================================================
*/

#ifndef CREATEMESVIEW_H
#define CREATEMESVIEW_H

// INCLUDES
#include <aknview.h>

#include "ReceiveMesView.h"
#include "BookMesView.h"
#include "SelectCardview.h"

// CONSTANTS
// UID of view
const TUid KCreateMesViewId = {14};

// FORWARD DECLARATIONS
class CCreateMesContainer;

// CLASS DECLARATION

/**
*  CCreateMesView view class.
* 
*/
class CCreateMesView : public CAknView,public MSendTel,public MSendBookIndex,public MSendCardSelect
    {
   public: // Constructors and destructor
     static CCreateMesView* NewL();
     static CCreateMesView* NewLC();
        /**
        * C++ default constructor
        */
        CCreateMesView();

        /**
        * EPOC default constructor.
        */
        void ConstructL();

        /**
        * Destructor.
        */
        virtual ~CCreateMesView();

    public: // Functions from base classes
        
        /**
        * From CAknView, Returns the ID of view.
        * @return Returns the ID of view.
        */
        TUid Id() const;

        /**
        * From CAknView, Handles the commands.
        * @pram aCommand Command to be handled.
        */
        void HandleCommandL(TInt aCommand);

        /**
        * From CAknView, Handles the clientrect.
        */
        void HandleClientRectChange();

		//from ReceiveMesView_MSendTel
		void SendTel(TDes * aphone);

		//from BookMesView_MSendBookIndex
		void SendBookIndex(TInt aIndex);

		void SaveMesToBook();

		void SendCardSelect(TInt aIndex);

    private:

        /**
        * From CAknView, Creates the Container class object.
        * @param aPrevViewId This is not used now.
        * @param aCustomCreateMes This is not used now.
        * @param aCustomCreateMes This is not used now.
        */
        void DoActivateL(const TVwsViewId& /*aPrevViewId*/,
                         TUid /*aCustomCreateMesId*/,
                         const TDesC8& /*aCustomCreateMes*/);

        /**
        * From AknView, Deletes the Container class object.
        */
        void DoDeactivate();
		void NotifyMessageInvalidL();
		void SendMesL();

		void SetEditText();

		//实现动态菜单
		void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);

    private: // Data
        CCreateMesContainer* iContainer;
		TDes* m_szPhone;
		TInt m_BookIndex;
		TInt m_CardIndex;

		HBufC* m_pName;
		HBufC* m_pContent;
		
    };

#endif  // CREATEMESVIEW_H

// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -