filelistapp.cpp

来自「Symbian中如何显示其系统文件列表的一个范例」· C++ 代码 · 共 85 行

CPP
85
字号
/*
* ============================================================================
*  Name     : CFileListApp from FileListApp.cpp
*  Part of  : FileList
*  Created  : 04.11.2006 by Forum Nokia
*  Implementation notes:
*
*     Initial content was generated by Nokia Series 60 AppWizard.
*  Version  : 2.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

// INCLUDE FILES
#include    "FileListApp.h"
#include    "FileListDocument.h"
#if defined __SERIES60_3X__
#include <eikstart.h>
#endif

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

// ---------------------------------------------------------
// CFileListApp::AppDllUid()
// Returns application UID
// ---------------------------------------------------------
//
TUid CFileListApp::AppDllUid() const
    {
    return KUidFileList;
    }

   
// ---------------------------------------------------------
// CFileListApp::CreateDocumentL()
// Creates CFileListDocument object
// ---------------------------------------------------------
//
CApaDocument* CFileListApp::CreateDocumentL()
    {
    return CFileListDocument::NewL( *this );
    }

// ================= OTHER EXPORTED FUNCTIONS ==============
//
// ---------------------------------------------------------
// NewApplication() 
// Constructs CFileListApp
// Returns: created application object
// ---------------------------------------------------------
//
EXPORT_C CApaApplication* NewApplication()
    {
    return new CFileListApp;
    }

#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 + -
显示快捷键?