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

📄 datagramtestappui.h

📁 symbian下面收发消息的APIs
💻 H
字号:
/*
* ==============================================================================
*  Name        : DatagramTestappui.h
*  Part of     : DatagramTest
*  Interface   : 
*  Description : 
*  Version     : 
*
*  Copyright (c) 2007 Symbian Ltd.  All rights reserved.
* ==============================================================================
*/

#ifndef __DATAGRAMTESTAPPUI_H__
#define __DATAGRAMTESTAPPUI_H__

// INCLUDES
#include <aknappui.h>
#include "smsdatagramreceiver.h"
#include "smsdatagramsender.h"
// FORWARD DECLARATIONS
class CDatagramTestAppView;

_LIT8(KDefaultTestNumber, "++447900000000"); //Default/intial target SMS number
_LIT8(KDefaultTestMessage, "//TEST Test SMS Message");
_LIT8(KDefaultTestPattern, "//TEST");

const TInt KMaxSMSSize = 300; // Max SMS size
        
// CLASS DECLARATION
/**
* CDatagramTestAppUi application UI class.
* Interacts with the user through the UI and request message processing
* from the handler class
*/
class CDatagramTestAppUi : public CAknAppUi
    {
    public: // Constructors and destructor

        /**
        * ConstructL.
        * 2nd phase constructor.
        */
        void ConstructL();

        /**
        * CDatagramTestAppUi.
        * C++ default constructor. This needs to be public due to
        * the way the framework constructs the AppUi
        */
        CDatagramTestAppUi();

        /**
        * ~CDatagramTestAppUi.
        * Virtual Destructor.
        */
        virtual ~CDatagramTestAppUi();

    private:  // Functions from base classes

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

        /**
        *  HandleStatusPaneSizeChange.
        *  Called by the framework when the application status pane
 		*  size is changed.
        */

		void HandleStatusPaneSizeChange();
        
        void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane *aMenuPane);
        
        
    private: // Data

        /**
        * The application view
        * Owned by CDatagramTestAppUi
        */
        CDatagramTestAppView* iAppView;
        
        /**
        * The SMS receiver object
        * Owned by CDatagramTestAppUi
        */
        CSmsDatagramReceiver* iSmsReceiver;

        /**
        * The SMS sender object
        * Owned by CDatagramTestAppUi
        */        
        CSmsDatagramSender*	iSmsSender; 

		//The phone number test message is sent to
		TBuf8<16> iPhoneNumber;
		//The message sent. Note allocated on stack in this case as is 300 bytes.
		TBuf8<KMaxSMSSize> iTestMessage;
		//Iterator to show sent messages
		TInt iSendIterator;
        
    };

#endif // __DATAGRAMTESTAPPUI_H__

// End of File

⌨️ 快捷键说明

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