bluetoothchatapplication.cpp

来自「symbianOS第三版开发与实用教程部分源码和部分试验」· C++ 代码 · 共 44 行

CPP
44
字号
/*
============================================================================
 Name        : BluetoothChatApplication.cpp
 Author      : Lion
 Copyright   : Your copyright notice
 Description : Main application class
============================================================================
*/

// INCLUDE FILES
#include "BluetoothChatDocument.h"
#include "BluetoothChatApplication.h"

// ============================ MEMBER FUNCTIONS ===============================

// UID for the application;
// this should correspond to the uid defined in the mmp file
//const TUid KUidBluetoothChatApp = { 0x04D4C971 };

// -----------------------------------------------------------------------------
// CBluetoothChatApplication::CreateDocumentL()
// Creates CApaDocument object
// -----------------------------------------------------------------------------
//
CApaDocument* CBluetoothChatApplication::CreateDocumentL()
    {
    // Create an BluetoothChat document, and return a pointer to it
    return (static_cast<CApaDocument*>
                    ( CBluetoothChatDocument::NewL( *this ) ) );
    }

// -----------------------------------------------------------------------------
// CBluetoothChatApplication::AppDllUid()
// Returns application UID
// -----------------------------------------------------------------------------
//
TUid CBluetoothChatApplication::AppDllUid() const
    {
    // Return the UID for the BluetoothChat application
    return KUidBluetoothChatApp;
    }

// End of File

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?