bluetoothchatappui.h
来自「《基于symbian手机开发与应用》一书的源代码」· C头文件 代码 · 共 62 行
H
62 行
#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 + =
减小字号Ctrl + -
显示快捷键?