openvg/openvgrefimplementation/sfopenvg/test/inc/tigerApp.h
changeset 43 7579f232bae7
equal deleted inserted replaced
36:01a6848ebfd7 43:7579f232bae7
       
     1 /*
       
     2 * Copyright (c) 2009 Symbian Foundation Ltd
       
     3 * This component and the accompanying materials are made available
       
     4 * under the terms of the License "Eclipse Public License v1.0"
       
     5 * which accompanies this distribution, and is available
       
     6 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 *
       
     8 * Initial Contributors:
       
     9 * Symbian Foundation Ltd - initial contribution.
       
    10 * 
       
    11 * Contributors:
       
    12 *
       
    13 * Description:
       
    14 * Tiger app main class declaration
       
    15 */
       
    16 
       
    17 #ifndef TIGERAPP_H
       
    18 #define TIGERAPP_H
       
    19 
       
    20 // INCLUDES
       
    21 #include <aknapp.h>
       
    22 
       
    23 // CONSTANTS
       
    24 /** UID of the application. */
       
    25 const TUid KUidTiger = { 0xA000024A };
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  * Application class. Provides factory method to create a concrete document object.
       
    31  */
       
    32 class CTigerApp : public CAknApplication
       
    33     {
       
    34     private: // Functions from base classes
       
    35 
       
    36         /**
       
    37          * From CApaApplication, creates and returns CTigerDocument document object.
       
    38          * @return Pointer to the created document object.
       
    39          */
       
    40         CApaDocument* CreateDocumentL();
       
    41 
       
    42         /**
       
    43          * From CApaApplication, returns application's UID (KUidTiger).
       
    44          * @return Value of KUidTiger.
       
    45          */
       
    46         TUid AppDllUid() const;
       
    47     };
       
    48 
       
    49 // OTHER EXPORTED FUNCTIONS
       
    50 
       
    51 /**
       
    52  * Factory method used by the E32Main method to create a new application instance.
       
    53  */
       
    54 LOCAL_C CApaApplication* NewApplication();
       
    55 
       
    56 /**
       
    57  * Entry point to the EXE application. Creates new application instance and
       
    58  * runs it by giving it as parameter to EikStart::RunApplication() method.
       
    59  */
       
    60 GLDEF_C TInt E32Main();
       
    61 
       
    62 #endif
       
    63 
       
    64 // End of File