S60 3rd Edition SDK for Symbian OS
Example Applications Guide

SimpleCubeApp.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : SimpleCubeApp.h
00004 *  Part of     : OpenGLEx / SimpleCube
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 #ifndef SIMPLECUBEAPP_H
00017 #define SIMPLECUBEAPP_H
00018 
00019 // INCLUDES
00020 #include <aknapp.h>
00021 
00022 // CONSTANTS
00023 /** UID of the application. */
00024 const TUid KUidSimpleCube = { 0xA000021A };
00025 
00026 // CLASS DECLARATION
00027 
00028 /**
00029  * Application class. Provides factory method to create a concrete document object.
00030  */
00031 class CSimpleCubeApp : public CAknApplication
00032     {
00033     private: // Functions from base classes
00034 
00035         /**
00036          * From CApaApplication, creates and returns CSimpleCubeDocument document object.
00037          * @return Pointer to the created document object.
00038          */
00039         CApaDocument* CreateDocumentL();
00040         
00041         /**
00042          * From CApaApplication, returns application's UID (KUidSimpleCube).
00043          * @return Value of KUidSimpleCube.
00044          */
00045         TUid AppDllUid() const;
00046     };
00047 
00048 
00049 // ================= OTHER EXPORTED FUNCTIONS ==============
00050     
00051     /**
00052      * Factory method used by the E32Main method to create a new application instance.
00053      */
00054     LOCAL_C CApaApplication* NewApplication();
00055 
00056     /**
00057      * Entry point to the EXE application. Creates new application instance and
00058      * runs it by giving it as parameter to EikStart::RunApplication() method.
00059      */
00060     GLDEF_C TInt E32Main();
00061 
00062 #endif
00063 
00064 // End of File
00065 

© Nokia 2006

Back to top