openvg/openvgrefimplementation/sfopenvg/test/src/tigerApp.cpp
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 * Implementation of CTigerApp
       
    15 */
       
    16 
       
    17 // INCLUDE FILES
       
    18 #include    <eikstart.h>
       
    19 #include    "TigerApp.h"
       
    20 #include    "TigerDocument.h"
       
    21 
       
    22 // ================= MEMBER FUNCTIONS =======================
       
    23 
       
    24 // ---------------------------------------------------------
       
    25 // CTigerApp::AppDllUid()
       
    26 // Returns application UID
       
    27 // ---------------------------------------------------------
       
    28 //
       
    29 TUid CTigerApp::AppDllUid() const
       
    30     {
       
    31     return KUidTiger;
       
    32     }
       
    33 
       
    34 
       
    35 // ---------------------------------------------------------
       
    36 // CTigerApp::CreateDocumentL()
       
    37 // Creates CTigerDocument object
       
    38 // ---------------------------------------------------------
       
    39 //
       
    40 CApaDocument* CTigerApp::CreateDocumentL()
       
    41     {
       
    42     return CTigerDocument::NewL( *this );
       
    43     }
       
    44 
       
    45 
       
    46 // ================= OTHER EXPORTED FUNCTIONS ==============
       
    47 
       
    48 
       
    49 CApaApplication* NewApplication()
       
    50     {
       
    51     return new CTigerApp;
       
    52     }
       
    53 
       
    54 TInt E32Main()
       
    55     {
       
    56     return EikStart::RunApplication(NewApplication);
       
    57     }
       
    58 
       
    59 // End of File
       
    60