www.pudn.com > Example_BluetoothChat.rar > BluetoothChatDocument.cpp


/** 
* 
* @brief Definition of CBluetoothChatDocument 
* 
* Copyright (c) EMCC Software Ltd 2003 
* @version 1.0 
*/ 
 
 
// INCLUDE FILES 
// Class include 
#include "BluetoothChatDocument.h" 
// User includes 
#include "BluetoothChatAppUi.h"	// CBluetoothChatAppUi 
 
// ================= MEMBER FUNCTIONS ======================= 
 
/** 
* Constructs the document for aApp. 
* Private constructor 
* @see NewL 
* @param aApp for which the document is constructed 
* @return none 
*/ 
CBluetoothChatDocument::CBluetoothChatDocument(CEikApplication& aApp) 
: CAknDocument(aApp) 
	{ 
	} 
 
/** 
* Symbian OS 2nd phase constructor. 
* This is an empty implementation. 
* @see NewL 
* @param none 
* @return none 
*/ 
void CBluetoothChatDocument::ConstructL() 
	{ 
	} 
 
/** 
* Symbian OS 2 phase constructor. 
* Constructs the CBluetoothChatDocument using the constructor and the ConstructL 
* method. 
* @param aApp for which the CBluetoothChatDocument is constructed 
* @return The newly constructed CBluetoothChatDocument 
*/ 
CBluetoothChatDocument* CBluetoothChatDocument::NewL(CEikApplication& aApp) 
	{ 
	CBluetoothChatDocument* self = new (ELeave) CBluetoothChatDocument(aApp); 
	CleanupStack::PushL(self); 
	self->ConstructL(); 
	CleanupStack::Pop(self); 
	return self; 
	} 
 
/** 
* Creates the AppUi for this document. 
* @param none 
* @return The newly constructed AppUi 
*/ 
CEikAppUi* CBluetoothChatDocument::CreateAppUiL() 
	{ 
	return new (ELeave) CBluetoothChatAppUi; 
	} 
 
// End of File