noughtsandcrossesapp.cpp

来自「symbian s60 3rd 一个电脑作图」· C++ 代码 · 共 91 行

CPP
91
字号
/* Copyright (c) 2005, Nokia. All rights reserved */


// INCLUDE FILES
#include <eikenv.h>
#include "noughtsandcrossesapp.h"
#include "noughtsandcrossesdocument.h"

#ifdef __SERIES60_3X__
#include <eikstart.h>
#endif

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

// UID for the application;
// this should correspond to the uid defined in the mmp file
#ifdef __SERIES60_3X__
const TUid KUidNac = { 0xE6F18BAE };
#else
const TUid KUidNac = { 0x06F18BAE };
#endif

// -----------------------------------------------------------------------------
// CNoughtsAndCrossesApp::OpenIniFileLC(RFs& aFs)
// Returns the .ini file associated with the application.
// -----------------------------------------------------------------------------
//
CDictionaryStore* CNoughtsAndCrossesApp::OpenIniFileLC(RFs& aFs) const
    {
    return CEikApplication::OpenIniFileLC(aFs);
    }

// -----------------------------------------------------------------------------
// CNoughtsAndCrossesApp::AppDllUid()
// Returns application UID.
// -----------------------------------------------------------------------------
//
TUid CNoughtsAndCrossesApp::AppDllUid() const
    {
    return KUidNac;
    }

// -----------------------------------------------------------------------------
// CNoughtsAndCrossesApp::CreateDocumentL()
// Creates CApaDocument object.
// -----------------------------------------------------------------------------
//
CApaDocument* CNoughtsAndCrossesApp::CreateDocumentL()
    {
    return CNoughtsAndCrossesDocument::NewL (*this);
    }

// ========================== OTHER EXPORTED FUNCTIONS =========================

// -----------------------------------------------------------------------------
// NewApplication()
// Constructs CNoughtsAndCrossesApp.
// -----------------------------------------------------------------------------
//
// Create an application, and return a pointer to it
EXPORT_C CApaApplication* NewApplication()
    {
    return new CNoughtsAndCrossesApp;
    }

#ifndef __SERIES60_3X__
// ---------------------------------------------------------
// E32Dll(TDllReason) 
// Entry point function for EPOC Apps
// Returns: KErrNone: No error
// ---------------------------------------------------------
//
GLDEF_C TInt E32Dll( TDllReason )
{
    return KErrNone;
}
#else
// ---------------------------------------------------------
// E32Main()
// Entry point function for new (>= 9.0) EPOC Apps (exe)
// Returns: Sistem Wide error codes or KErrNone if all goes well
// ---------------------------------------------------------
//
GLDEF_C TInt E32Main()
{
	return EikStart::RunApplication( NewApplication );
}
#endif

// End of File

⌨️ 快捷键说明

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