www.pudn.com > ExampleBluetoothChat.rar > BluetoothChatApplication.cpp
/**
*
* @brief Definition of CBluetoothChatApplication
*
* Copyright (c) EMCC Software Ltd 2003
* @version 1.0
*/
// INCLUDE FILES
#include "BluetoothChatApplication.h"
#include "BluetoothChatDocument.h"
// ================= MEMBER FUNCTIONS =======================
/**
* @brief From CApaApplication, returns the application's UID (KUidBluetoothChat).
* @param none
* @return The value of KUidBluetoothChat.
*/
TUid CBluetoothChatApplication::AppDllUid() const
{
return KUidBluetoothChat;
}
/**
* @brief From CApaApplication, creates a CBluetoothChatDocument object.
* @param none
* @return A pointer to the created document object.
*/
CApaDocument* CBluetoothChatApplication::CreateDocumentL()
{
return CBluetoothChatDocument::NewL(*this);
}
// ================= OTHER EXPORTED FUNCTIONS ==============
/**
* Constructs a CBluetoothChatApplication.
* @param none
* @return A pointer to the application object.
*/
EXPORT_C CApaApplication* NewApplication()
{
return new(ELeave) CBluetoothChatApplication;
}
/**
* @brief This is the entry point function for this Series 60 App
* @return KErrNone No error
*/
GLDEF_C TInt E32Dll(TDllReason)
{
return KErrNone;
}
// End of File