www.pudn.com > BluetoothChat.rar > BluetoothChatAppUi.h
/* ============================================================================ Name : BluetoothChatAppUi.h Author : Lion Copyright : Your copyright notice Description : Declares UI class for application. ============================================================================ */ #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 : 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 // __BLUETOOTHCHATAPPUI_h__ // End of File