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

📄 helloview.h

📁 symbian电话簿引擎的经典例子
💻 H
字号:
/*
* ============================================================================
*  Name     : CHelloView from CAknView
*  Part of  : AknExEditor
*  Copyright (c) 2003 Nokia. All rights reserved.
* ============================================================================
*/

#ifndef HELLOVIEW_H
#define HELLOVIEW_H

// INCLUDES
#include <aknview.h>

#include "WorldView.h"



// CONSTANTS
// UID of view
const TUid KViewId2 = {2};

// FORWARD DECLARATIONS
class CHelloContainer;
class CBookEngine;
class CBookInfo;

// CLASS DECLARATION
//class TViewPara
//{
//public:
//	TInt  mFlag;
//	TBuf<10> m_SurName;
//	TBuf<10> m_Name;
//	TBuf<10> m_Number;
//};
/**
*  CHelloView view class.
* 
*/
class CHelloView : public CAknView, public CMTrans
    {
    public: // Constructors and destructor
		static CHelloView* NewL();
		static CHelloView* NewLC();
        /**
        * C++ default constructor
        */
        CHelloView();

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

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

    public: // Functions from base classes
        
        /**
        * From CAknView, Returns the ID of view.
        * @return Returns the ID of view.
        */
        TUid Id() const;
		void SendData(TDesC& aSurName,TDesC& aName,TDesC& aNum);
        /**
        * From CAknView, Handles the commands.
        * @pram aCommand Command to be handled.
        */
        void HandleCommandL(TInt aCommand);
        /**
        * From CAknView, Handles the clientrect.
        */
        void HandleClientRectChange();
		void GetContactFromPB();//从数据库获取名片夹
		void CreateNewContact(TDesC& aSurName,TDesC& aName,TDesC& aNum);//新建一个名片
		//void CreateNewContact();//新建一个名片
		void DeleteContact();//删除一个名片(联系人)
		void RefreshListBox(TInt aIndex);//刷新显示内容
		
    private:

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

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

    private: // Data
        CHelloContainer* iContainer;
		RPointerArray<CBookInfo> m_pBookInfoArray;
		CBookEngine*				m_pBookEngine;
		TBuf<10>		m_SurName;
		TBuf<10>		m_Name;
		TBuf<11>		m_Number;
		TUid			iUid;
	
    };

#endif  // HELLOVIEW_H

// End of File

⌨️ 快捷键说明

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