uitestapplication.cpp
来自「Symbian S60 UI training example」· C++ 代码 · 共 79 行
CPP
79 行
/*
========================================================================
Name : UiTestApplication.cpp
Author : Andreas Jakl
Copyright : 2007, Mopius
Description :
========================================================================
*/
// [[[ begin generated region: do not modify [Generated System Includes]
// ]]] end generated region [Generated System Includes]
// [[[ begin generated region: do not modify [Generated Includes]
#include "UiTestApplication.h"
#include "UiTestDocument.h"
#ifdef __SERIES60_3X__
#include <eikstart.h>
#endif
// ]]] end generated region [Generated Includes]
/**
* @brief Returns the application's UID (override from CApaApplication::AppDllUid())
* @return UID for this application (KUidUiTestApplication)
*/
TUid CUiTestApplication::AppDllUid() const
{
return KUidUiTestApplication;
}
/**
* @brief Creates the application's document (override from CApaApplication::CreateDocumentL())
* @return Pointer to the created document object (CUiTestDocument)
*/
CApaDocument* CUiTestApplication::CreateDocumentL()
{
return CUiTestDocument::NewL(*this);
}
#ifdef __SERIES60_3X__
/**
* @brief Called by the application framework to construct the application object
* @return The application (CUiTestApplication)
*/
LOCAL_C CApaApplication* NewApplication()
{
return new CUiTestApplication;
}
/**
* @brief This standard export is the entry point for all Series 60 applications
* @return error code
*/
GLDEF_C TInt E32Main()
{
return EikStart::RunApplication( NewApplication );
}
#else // Series 60 2.x main DLL program code
/**
* @brief This standard export constructs the application object.
* @return The application (CUiTestApplication)
*/
EXPORT_C CApaApplication* NewApplication()
{
return new CUiTestApplication;
}
/**
* @brief This standard export is the entry point for all Series 60 applications
* @return error code
*/
GLDEF_C TInt E32Dll(TDllReason /*reason*/)
{
return KErrNone;
}
#endif // __SERIES60_3X__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?