⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 noughtsandcrossesapp.cpp

📁 Symbian智能手机操作系统源代码值的参考_界面
💻 CPP
字号:
/* 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -