Nokia N97 SDK
Example Applications Guide

HierarchyApp.cpp

00001 /*
00002  * ==============================================================================
00003  *  Name        : HierarchyApp.cpp
00004  *  Part of     : OpenGLEx / Hierarchy
00005  *
00006  *  Copyright (c) 2004-2006 Nokia Corporation.
00007  *  This material, including documentation and any related
00008  *  computer programs, is protected by copyright controlled by
00009  *  Nokia Corporation.
00010  * ==============================================================================
00011  */
00012 
00013 
00014 // INCLUDE FILES
00015 #include    <eikstart.h>
00016 #include    "HierarchyApp.h"
00017 #include    "HierarchyDocument.h"
00018 
00019 // ================= MEMBER FUNCTIONS =======================
00020 
00021 // ---------------------------------------------------------
00022 // CHierarchyApp::AppDllUid()
00023 // Returns application UID
00024 // ---------------------------------------------------------
00025 //
00026 TUid CHierarchyApp::AppDllUid() const
00027     {
00028     return KUidHierarchy;
00029     }
00030 
00031 
00032 // ---------------------------------------------------------
00033 // CHierarchyApp::CreateDocumentL()
00034 // Creates CHierarchyDocument object
00035 // ---------------------------------------------------------
00036 //
00037 CApaDocument* CHierarchyApp::CreateDocumentL()
00038     {
00039     return CHierarchyDocument::NewL( *this );
00040     }
00041 
00042 // ================= OTHER EXPORTED FUNCTIONS ==============
00043 CApaApplication* NewApplication()
00044     {
00045     return new CHierarchyApp;
00046     }
00047 
00048 TInt E32Main()
00049     {
00050         return EikStart::RunApplication(NewApplication);
00051     }
00052 
00053 // End of File
00054 

© Nokia 2009

Back to top