startupservices/Startup/src/StartupApplication.cpp
changeset 0 2e3d3ce01487
child 9 332e7bf3b42f
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2006 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:  
       
    15 *     This module implements the application core i.e. application
       
    16 *     class and standard exported functions
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include "StartupApplication.h"
       
    23 #include "StartupDocument.h"
       
    24 
       
    25 // ========================= MEMBER FUNCTIONS ================================
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CStartupApplication::AppDllUid()
       
    29 // Returns application UID
       
    30 // ---------------------------------------------------------------------------
       
    31 TUid CStartupApplication::AppDllUid() const
       
    32     {
       
    33     return KUidStartUp;
       
    34     }
       
    35 
       
    36 // ---------------------------------------------------------------------------
       
    37 // CStartupApplication::CreateDocumentL()
       
    38 // Creates CStartupDocument object
       
    39 //
       
    40 // ---------------------------------------------------------------------------
       
    41 CApaDocument* CStartupApplication::CreateDocumentL()
       
    42     {
       
    43     return CStartupDocument::NewL(*this);
       
    44     }
       
    45 
       
    46 // ===================== OTHER EXPORTED FUNCTIONS ============================
       
    47 #include <eikstart.h>
       
    48 
       
    49 LOCAL_C CApaApplication* NewApplication()
       
    50     {
       
    51     return new CStartupApplication;
       
    52     }
       
    53 
       
    54 GLDEF_C TInt E32Main()
       
    55     {
       
    56     return EikStart::RunApplication(NewApplication);
       
    57     }
       
    58 
       
    59 #if defined(__WINS__) && !defined(EKA2)
       
    60 GLDEF_C TInt E32Dll(TDllReason)
       
    61     {
       
    62     return KErrNone;
       
    63     }
       
    64 
       
    65 EXPORT_C TInt WinsMain(TDesC* aCmdLine)
       
    66     {
       
    67     return EikStart::RunApplication(NewApplication, aCmdLine);
       
    68     }
       
    69 #endif
       
    70 // End of file