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

📄 bluetoothchatappui.h

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

// System includes 
#include <aknappui.h> 
#include <btextnotifiers.h>
// User defined includes
#include "BluetoothObserver.h"

// FORWARD DECLARATIONS
class CBluetoothChatDialog;
class CBluetoothClient;
class CBluetoothServer;
class CAknWaitDialog;
class CBluetoothDeviceSearcher;

// CLASS DECLARATION
/**
*
* @class    CBluetoothChatAppUi BluetoothChatAppUi.h 
* @brief    This is the main application UI class for an example using a 
* dialog based architecture.
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
class CBluetoothChatAppUi : public CAknAppUi, public MBluetoothObserver
{
    public:    // Constructors and destructor
        void ConstructL();
        ~CBluetoothChatAppUi();

    public:    // Member functions from MBluetoothObserver
        void DataReceivedL(const TDesC& aMessage);
        void ConnectedL();
        void HandleErrorL(TInt aErrorCode);
        void ServerStartedL();
        void DeviceFoundL(TInt aResult);

    public: // Member functions from CAknAppUi
        void HandleCommandL(TInt aCommand);
        void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);

    private: // Member funnctions Utility Functions
        void FindRemoteDeviceL();
        TBool ComposeMessageL();
        void StartReceivingL();

    private: //Data
        CBluetoothChatDialog*    iAppDialog; 
        CAknWaitDialog*        iWaitDialog;
        CBluetoothClient*    iClient;
        CBluetoothServer*    iServer;
        HBufC*            iMessage;
        TBTDeviceResponseParamsPckg*    iDeviceSelectionResponse; // large object - allocate on heap
        CBluetoothDeviceSearcher*        iDeviceSearcher;
};

#endif    // #ifndef __BLUETOOTHCHATAPPUI_H__

// End of File

⌨️ 快捷键说明

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