|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : aknexqueryapp.cpp 00004 * Part of : Query example 00005 * Interface : 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright (c) 2004 - 2006 Nokia Corporation. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia Corporation. 00013 * ============================================================================== 00014 */ 00015 00016 // INCLUDE FILES 00017 #include <eikstart.h> 00018 00019 #include "AknExQueryApp.h" 00020 #include "AknExQueryDocument.h" 00021 00022 // ---------------------------------------------------------------------------- 00023 // CAknExQueryApp::CreateDocumentL() 00024 // Creates CAknExQueryDocument object 00025 // ---------------------------------------------------------------------------- 00026 // 00027 CApaDocument* CAknExQueryApp::CreateDocumentL() 00028 { 00029 return CAknExQueryDocument::NewL( *this ); 00030 } 00031 00032 // ---------------------------------------------------------------------------- 00033 // CAknExQueryApp::AppDllUid() 00034 // Returns application UID 00035 // ---------------------------------------------------------------------------- 00036 // 00037 TUid CAknExQueryApp::AppDllUid() const 00038 { 00039 return KUidAknExQuery; 00040 } 00041 00042 // ================= OTHER EXPORTED FUNCTIONS ================================= 00043 // 00044 // ---------------------------------------------------------------------------- 00045 // NewApplication() 00046 // Constructs CAknExQueryApp 00047 // Returns: CApaDocument*: created application object 00048 // ---------------------------------------------------------------------------- 00049 // 00050 EXPORT_C CApaApplication* NewApplication() 00051 { 00052 return new CAknExQueryApp; 00053 } 00054 00055 // ---------------------------------------------------------------------------- 00056 // TInt E32Main() 00057 // Entry point function for EPOC Apps. 00058 // Returns: TInt: Error if starting the app through framework wasn't succesful 00059 // ---------------------------------------------------------------------------- 00060 // 00061 GLDEF_C TInt E32Main() 00062 { 00063 return EikStart::RunApplication( NewApplication ); 00064 } 00065 00066 // End of File
|
© Nokia 2009 |