www.pudn.com > Example_BluetoothChat.rar > BluetoothChatAppUi.h
#ifndef __BLUETOOTHCHATAPPUI_H__ #define __BLUETOOTHCHATAPPUI_H__ // System includes #include#include // 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