sendappuiexampleappui.h

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

H
75
字号
#ifndef SEND_EXAMPLE_APPUI_H
#define SEND_EXAMPLE_APPUI_H

// INCLUDES

// System includes 
#include <aknappui.h> // CAknAppUi
#include <sendui.h>   // TSendingCapabilities, CSendAppUi


// FORWARD DECLARATIONS
class CSendAppUiExampleDialog;


// CLASS DECLARATION

/**
*
* @class    CSendAppUiExampleAppUi SendAppUiExampleAppUi.h 
* @brief    This is the application UI class for an example which demonstrates
*           the use of the Series 60 class CSendAppUi.  
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
class CSendAppUiExampleAppUi : public CAknAppUi
{
    public:     // Constructors and destructor
        void ConstructL();
        ~CSendAppUiExampleAppUi();

    private:    // from CEikAppUi
        void HandleCommandL(TInt aCommand);

    private:    // from MEikMenuObserver
        void DynInitMenuPaneL(TInt aMenuId, CEikMenuPane* aMenuPane);

    private:
        void CreateSMSL();
        void CreateEmailL();
        void CreateMMSL();

        // Displays a list of message types satisfying specified sending capabilities
        void CreateGeneralMessageL();

        // Displays a message of the type the user has selected from the cascaded send menu
        TBool HandleSendAppUiCommandL(TInt aCommand);

    private: // Data
        CSendAppUi*          iSendAppUi;
        CSendAppUiExampleDialog*  iAppDialog;
        TSendingCapabilities iSendAppUiCapabilities;
        CRichText*           iRichText;

    private: // Panic code
        enum TPanicCode
        {
            EBadCommandId,
            ERichTextNotReady
        };
        inline void Panic(TPanicCode aCode);
};


_LIT(KSendAppUiExampleAppUiPanicString, "CSendAppUiExampleAppUi");
inline void CSendAppUiExampleAppUi::Panic(TPanicCode aCode)
{
    User::Panic(KSendAppUiExampleAppUiPanicString, aCode);
}


#endif  // SEND_EXAMPLE_APPUI_H

// End of File

⌨️ 快捷键说明

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