www.pudn.com > BluetoothChat.rar > BluetoothChatDocument.h
/* ============================================================================ Name : BluetoothChatDocument.h Author : Lion Copyright : Your copyright notice Description : Declares document class for application. ============================================================================ */ #ifndef __BLUETOOTHCHATDOCUMENT_h__ #define __BLUETOOTHCHATDOCUMENT_h__ // INCLUDES #include// FORWARD DECLARATIONS class CBluetoothChatAppUi; class CEikApplication; // CLASS DECLARATION /** * CBluetoothChatDocument application class. * An instance of class CBluetoothChatDocument is the Document part of the * AVKON application framework for the BluetoothChat example application. */ class CBluetoothChatDocument : public CAknDocument { public: // Constructors and destructor /** * NewL. * Two-phased constructor. * Construct a CBluetoothChatDocument for the AVKON application aApp * using two phase construction, and return a pointer * to the created object. * @param aApp Application creating this document. * @return A pointer to the created instance of CBluetoothChatDocument. */ static CBluetoothChatDocument* NewL( CEikApplication& aApp ); /** * NewLC. * Two-phased constructor. * Construct a CBluetoothChatDocument for the AVKON application aApp * using two phase construction, and return a pointer * to the created object. * @param aApp Application creating this document. * @return A pointer to the created instance of CBluetoothChatDocument. */ static CBluetoothChatDocument* NewLC( CEikApplication& aApp ); /** * ~CBluetoothChatDocument * Virtual Destructor. */ virtual ~CBluetoothChatDocument(); public: // Functions from base classes /** * CreateAppUiL * From CEikDocument, CreateAppUiL. * Create a CBluetoothChatAppUi object and return a pointer to it. * The object returned is owned by the Uikon framework. * @return Pointer to created instance of AppUi. */ CEikAppUi* CreateAppUiL(); private: // Constructors /** * ConstructL * 2nd phase constructor. */ void ConstructL(); /** * CBluetoothChatDocument. * C++ default constructor. * @param aApp Application creating this document. */ CBluetoothChatDocument( CEikApplication& aApp ); }; #endif // __BLUETOOTHCHATDOCUMENT_h__ // End of File