phonebookengine.h

来自「series60 应用程序开发的源代码 series60 应用程序开发的源代码」· C头文件 代码 · 共 60 行

H
60
字号
#ifndef __PHONEBOOKENGINE_H__
#define __PHONEBOOKENGINE_H__

//INCLUDES

// System includes
#include "e32base.h"                // CBase
#include <cntdef.h>                    // TContactItemId
#include <RPbkViewResourceFile.h>    // RPbkViewResourceFile

// FORWARD DECLARATIONS
class CPbkContactEngine;
class CPbkContactItem;
class CPbkDataSaveAppUi;
class RPbkViewResourceFile;
class CPbkFieldInfo;
class CEikMenuPane;
class CCallArray;
class TCallInfo;

/**
*
* @class    CPhoneBookEngine PhoneBookEngine.h 
* @brief    This class provides a convient way
* of accessing the Phonebook engine
*
* Copyright (c) EMCC Software Ltd 2003
* @version    1.0
* 
*/
class CPhoneBookEngine: public CBase
{
public: // constructors and destructor
    static CPhoneBookEngine* NewL();
    static CPhoneBookEngine* NewLC();
    ~CPhoneBookEngine();

public: // new methods
    void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
    TBool HandlePhoneBookCommandL(TInt aCommand, const TDesC& aNumber);
    TBool AssignSpeedDialDialogL(TContactItemId aId, const TDesC& aPhoneNumber);
    void GetContactNameL(TDes& aName, TInt aContactId);
    TContactItemId AddContactEntryL(TCallInfo& aCallInfo);
    TContactItemId GetContactIdL(const TDesC& aTelephoneNumber) const;
    CPbkContactItem* ReadContactLC(TContactItemId aContactId);

private: // constructors
    CPhoneBookEngine();
    void ConstructL();

private: // data
    CPbkDataSaveAppUi*                iPbkDataSaveAppUi;
    CPbkContactEngine*                iPbkContactEngine;
    RPbkViewResourceFile*            iPbkResourceFile;
    CArrayPtrFlat<CPbkFieldInfo>*    iFieldInfoArray;
};

#endif    // __PHONEBOOKENGINE_H__

⌨️ 快捷键说明

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