landmarksui/app/src/CLmkApp.cpp
branchRCL_3
changeset 17 1fc85118c3ae
parent 16 8173571d354e
child 18 870918037e16
equal deleted inserted replaced
16:8173571d354e 17:1fc85118c3ae
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   	LandmarksUi Content File
       
    15 *				Provides LM Application class methods.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 
       
    24 
       
    25 // INCLUDE FILES
       
    26 #include "CLmkApp.h"
       
    27 #include "CLmkDocument.h"
       
    28 #include "LmkUID.h"
       
    29 #include <eikstart.h>
       
    30 // ================= MEMBER FUNCTIONS =======================
       
    31 
       
    32 // ---------------------------------------------------------
       
    33 // CLmkApp::AppDllUid()
       
    34 // Returns application UID
       
    35 // ---------------------------------------------------------
       
    36 //
       
    37 TUid CLmkApp::AppDllUid() const
       
    38     {
       
    39     return TUid::Uid( KLmkAppUID3 );
       
    40     }
       
    41 
       
    42 // ---------------------------------------------------------
       
    43 // CLocApp::CreateDocumentL()
       
    44 // Creates CLmkDocument object
       
    45 // ---------------------------------------------------------
       
    46 //
       
    47 CApaDocument* CLmkApp::CreateDocumentL()
       
    48     {
       
    49     return CLmkDocument::NewL( *this );
       
    50     }
       
    51 
       
    52 // ================= OTHER EXPORTED FUNCTIONS ==============
       
    53 
       
    54 LOCAL_C CApaApplication* NewApplication()
       
    55     {
       
    56     return new CLmkApp;
       
    57     }
       
    58 
       
    59 GLDEF_C TInt E32Main()
       
    60     {
       
    61     return EikStart::RunApplication( NewApplication );
       
    62     }
       
    63 
       
    64 #if defined (__WINS__)
       
    65 EXPORT_C TInt WinsMain( TDesC* /*aCmdLine*/ )
       
    66     {
       
    67     //return EikStart::RunApplication( NewApplication, aCmdLine );
       
    68     return EikStart::RunApplication( NewApplication);
       
    69     }
       
    70 #endif // defined (__WINS__)
       
    71 
       
    72 // End of File