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

📄 callcontainer.h

📁 series60 应用程序开发的源代码 series60 应用程序开发的源代码
💻 H
字号:
#ifndef __CALL_CONTAINER_H__
#define __CALL_CONTAINER_H__

// INCLUDES
#include <coecntrl.h>            // CCoeControl
#include <cntdef.h>                // TContactItemId
#include "EngineObserver.h"        // MCallLogEngineObserver

// FORWARD DECLARATIONS
class CAknDoubleStyleListBox;
class CAknWaitDialog;
class CCallArray;
class CCallLogEngine;
class CEikLabel;
class CPhoneBookEngine;
class TCallInfo;

// CLASS DECLARATION

/**
*
* @class    CCallContainer CallContainer.h
* @brief    This is a container class for a log engine and phonebook example based on the
* Series 60 view switching architecture.
*
* Copyright (c) EMCC Software Ltd 2003
* @version    1.0
*
*/
class CCallContainer : public CCoeControl, public MCallLogEngineObserver
{
public: // constructors and destructor
    static CCallContainer* NewL(const TRect& aRect, TInt aDirectionId, CPhoneBookEngine& aPhoneBookEngine);
    static CCallContainer* NewLC(const TRect& aRect, TInt aDirectionId, CPhoneBookEngine& aPhoneBookEngine);
    ~CCallContainer();
    void ConstructL(const TRect& aRect, TInt aDirectionId);

public: // new methods
    TBool ShowContactMenu() const;
    TBool ShowSpeedDialMenuL() const;

    TBool GetSelectionNumber(TDes& aSelectionNumber) const;
    TBool GetListBoxSelectionContact(TContactItemId& aContactItemId) const;
    TBool GetListBoxSelectionCallInfo(TCallInfo& aCallInfo) const;
    void SetListBoxSelectionCallInfo(const TCallInfo& aCallInfo);

public: // from MCallLogEngineObserver
    virtual void CallArrayCreatedL();

protected: // from MCallLogEngineObserver
    void CallArrayEmptyL();
    void CallLogErrorL();

protected:    // new methods
    void SetListBoxArray();

    void ShowBusyDialogL();
    void CancelBusyDialog();

protected: // constructor
    CCallContainer(CPhoneBookEngine& aPhoneBookEngine);

private: // from CoeControl
    TInt CountComponentControls() const;
    CCoeControl* ComponentControl(TInt aIndex) const;
    TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
    void Draw(const TRect& aRect) const;
    void SizeChanged();

private: // data
    CAknDoubleStyleListBox*        iListBox;
    CCallLogEngine*                iCallLogEngine;
    CAknWaitDialog*                iBusyNote;

protected: // data
    CCallArray*                    iCallArray;
    CPhoneBookEngine&            iPhoneBookEngine;
};

#endif    // __CALL_CONTAINER_H__

// End of File

⌨️ 快捷键说明

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