Nokia N97 SDK
Example Applications Guide

RainApp.cpp

00001 /*
00002  * ==============================================================================
00003  *  Name        : RainApp.cpp
00004  *  Part of     : OpenGLEx / Rain
00005  *
00006  *  Copyright (c) 2005-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 // INCLUDE FILES
00014 #include    <eikstart.h>
00015 #include    "RainApp.h"
00016 #include    "RainDocument.h"
00017 
00018 // ================= MEMBER FUNCTIONS =======================
00019 
00020 // ---------------------------------------------------------
00021 // CRainApp::AppDllUid()
00022 // Returns application UID
00023 // ---------------------------------------------------------
00024 //
00025 TUid CRainApp::AppDllUid() const
00026     {
00027     return KUidRain;
00028     }
00029 
00030 
00031 // ---------------------------------------------------------
00032 // CRainApp::CreateDocumentL()
00033 // Creates CRainDocument object
00034 // ---------------------------------------------------------
00035 //
00036 CApaDocument* CRainApp::CreateDocumentL()
00037     {
00038     return CRainDocument::NewL( *this );
00039     }
00040 
00041 // ================= OTHER EXPORTED FUNCTIONS ==============
00042 
00043 // ---------------------------------------------------------
00044 // NewApplication()
00045 // Creates and returns the CRainApp object
00046 // ---------------------------------------------------------
00047 //
00048 CApaApplication* NewApplication()
00049     {
00050     return new CRainApp;
00051     }
00052 
00053 // ---------------------------------------------------------
00054 // E32Main()
00055 // Main entry point for exe application. Creates and starts
00056 // the rest of the application.
00057 // ---------------------------------------------------------
00058 //
00059 TInt E32Main()
00060     {
00061     return EikStart::RunApplication(NewApplication);
00062     }
00063 
00064 // End of File

© Nokia 2009

Back to top