addressbookapp.cpp

来自「symbian v9.1 下的地址本程序」· C++ 代码 · 共 67 行

CPP
67
字号
/*
* ==============================================================================
*  Name        : AddressBookApp.cpp
*  Part of     : AddressBook
*  Interface   : 
*  Description : An application class, CAddressBookApp 
*				 - starting point of the program
*  Version     : 
*
*  Copyright (c) 2002-2006 Nokia Corporation.
*  This material, including documentation and any related 
*  computer programs, is protected by copyright controlled by 
*  Nokia Corporation.
* ==============================================================================
*/

// INCLUDES
#include "AddressBookApp.h"
#include "AddressBookDocument.h"
#include <eikstart.h>

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

// ----------------------------------------------------------------------------
// CAddressBookApp::CreateDocumentL()
// Creates CAddressBookDocument object and return a pointer to it 
// ----------------------------------------------------------------------------
//
CApaDocument* CAddressBookApp::CreateDocumentL()
    {  
    	return (static_cast<CApaDocument*>(CAddressBookDocument::NewL(*this))); 
    }

// ----------------------------------------------------------------------------
// AddressBookApp::AppDllUid()
// Returns application UID
// ----------------------------------------------------------------------------
//
TUid CAddressBookApp::AppDllUid() const
    {
        return KUidAddressBookApp;
    }

// ----------------------------------------------------------------------------
// NewApplication()
// Constructs CAddressBookApp
// Returns: created application object
// ----------------------------------------------------------------------------
//
LOCAL_C CApaApplication* NewApplication() 
{
    return (static_cast<CApaApplication*>(new CAddressBookApp));
}

// ----------------------------------------------------------------------------
// E32Main 
// Executable entry point
// ----------------------------------------------------------------------------
//
GLDEF_C TInt E32Main()
{
    return EikStart::RunApplication(NewApplication);
}

// End of File

⌨️ 快捷键说明

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