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

📄 cmmssappui.h

📁 Symbian 手机发送彩信程序 mmssend
💻 H
字号:
/*  Copyright (c) 2004, Nokia. All rights reserved */

#ifndef __CMMSSAPPUI_H__
#define __CMMSSAPPUI_H__

// INCLUDES
#include <aknappui.h>
#include <msvstd.h>

#include "MMsvObserver.h"
#include "mmssend.hrh"

// FORWARD DECLARATIONS
class CMsvHandler;
class CMmssSendDialog;

// CLASS DECLARATION

/**
* Application UI class.
* Provides support for the following features:
* - dialog architecture
*/
class CMmssAppUi : public CAknAppUi, public MMsvObserver
    {
	public: // constructors and destructors
        /**
        * CMmssAppUi
        * Constructor
        */
        CMmssAppUi();

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

        /**
        * ConstructL
        * Default constructor.
        */
        void ConstructL();

		/**
		* From CEikAppUi, HandleCommandL
		* Handle user menu selections
		* @param aCommand the enumerated code for the option selected
		*/
		void HandleCommandL( TInt aCommand );

		/**
		* From MEikMenuObserver, DynInitMenuPaneL
		* Determine whether 'Send' operation is available and
        * set menu accordingly the available state
		* @param aResourceId Resource ID of the menu pane to be initialised
		* @param aMenuPane the in-memory representation of the menu pane
		*/
		void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane );

		/**
		* From MMsvObserv, HandleServerStatusChange
		* Handle a status change
		* @param aStatus the new status
		*/
		void HandleServerStatusChange( MMsvObserver::TServerStatus aStatus );

		/**
		* From MMsvObserv, HandleStatusChange
		* Handle a status change
		* @param aStatus the new status
		*/
		void HandleStatusChange( MMsvObserver::TStatus aStatus );

		/**
		* From MMsvObserv, HandleErrorL
		* Handle an error condition
		* @param aError the error code
		*/
		void HandleErrorL( MMsvObserver::TError aError );

		/**
		* From MMsvObserv, HandleAttachmentErrorL
		* Handle an error condition
		* @param aError the error code
		*/
		void HandleAttachmentErrorL( MMsvObserver::TAttachmentError aError );

		/**
		* From MMsvObserv, HandleReceivedMessageL
		* Handle a received message MMS message
		*/
		void HandleReceivedMessageL();

        /**
		* From MMsvObserv, ExitFormProgram
		* A major error has occurred, exit from program
		*/
		void ExitFromProgram();

private:
		/**
        * From CEikAppUi, HandleKeyEventL
        * Handle an keyevent
        * @param aKeyEvent Event to handled
        * @param aType Type of the key event
        * @result Response code (EKeyWasConsumed, EKeyWasNotConsumed).
        */
        TKeyResponse HandleKeyEventL( const TKeyEvent& aKeyEvent,
                                            TEventCode aType );

private: // Member variables
        /**
        * iSendDialog the send dialog
        * Owned by CMmssAppUi
        */
        CMmssSendDialog* iSendDialog;

		/**
		* iSendHandler the active object to handle sent messages
        * Owned by the CMmssApUi
		*/
		CMsvHandler*    iSendHandler;

		/**
		* iReceiveHandler the active object to handle the received messages
        * Owned by the CMmssApUi
		*/
		CMsvHandler*    iReceiveHandler;
    };


#endif // __CMMSSAPPUI_H__

⌨️ 快捷键说明

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