msgobserverappui.h

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

H
81
字号
#ifndef MSGOBSERVERAPPUI_H
#define MSGOBSERVERAPPUI_H

// INCLUDES
#include <eikapp.h>
#include <eikdoc.h>
#include <e32std.h>
#include <coeccntx.h>
#include <aknappui.h>
#include <msvapi.h> // MMsvSessionObserver, CMsvSession, CMsvEntry


// FORWARD DECLARATIONS
class CMsgObserverContainer;


// CLASS DECLARATION

/**
 *
 * @class    CMsgObserverAppUi MsgObserverAppUi.h
 * @brief    Application UI class.
* Provides support for the following features:
* - EIKON control architecture
 *
 * Copyright (c) EMCC Software Ltd 2003
 * @version    1.0
 *
 */
class CMsgObserverAppUi : public CAknAppUi,
                          public MMsvSessionObserver
{
    public: // // Constructors and destructor

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

        /**
        * Destructor.
        */
        ~CMsgObserverAppUi();

    public: // New functions

    public: // Functions from base classes

    private: // From MEikMenuObserver
        void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);

    private: // from MMsvSessionObserver
        virtual void HandleSessionEventL(TMsvSessionEvent aEvent, TAny* aArg1, TAny* aArg2, TAny* aArg3);

    private:
        /**
        * From CEikAppUi, takes care of command handling.
        * @param aCommand command to be handled
        */
        void HandleCommandL(TInt aCommand);

        /**
        * From CEikAppUi, handles key events.
        * @param aKeyEvent Event to handled.
        * @param aType Type of the key event.
        * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed).
        */
        virtual TKeyResponse HandleKeyEventL(
            const TKeyEvent& aKeyEvent,TEventCode aType);

    private: //Data
        CMsgObserverContainer* iAppContainer;
        CMsvSession* iMsvSession;
        CMsvEntry* iMsvEntry;
        TMsvId iNewMessageId;
};

#endif

// End of File

⌨️ 快捷键说明

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