appinstaller/AppMngr2/src/appmngr2app.cpp
changeset 80 9dcba1ee99f7
parent 77 d1838696558c
equal deleted inserted replaced
77:d1838696558c 80:9dcba1ee99f7
     1 /*
       
     2 * Copyright (c) 2008 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:   Implementation of CAppMngr2App class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <eikstart.h>                   // EikStart
       
    20 #include "appmngr2app.h"                // CAppMngr2App
       
    21 #include "appmngr2document.h"           // CAppMngr2Document
       
    22 #include <appmngr2common.hrh>           // KAppMngr2AppUidValue
       
    23 
       
    24 const TUid KAppMngr2AppUid = { KAppMngr2AppUidValue };
       
    25 
       
    26 
       
    27 // ======== MEMBER FUNCTIONS ========
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // CAppMngr2App::AppDllUid()
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 TUid CAppMngr2App::AppDllUid() const
       
    34     {
       
    35     return KAppMngr2AppUid;
       
    36     }
       
    37 
       
    38    
       
    39 // ---------------------------------------------------------------------------
       
    40 // CAppMngrApp::CreateDocumentL()
       
    41 // ---------------------------------------------------------------------------
       
    42 //
       
    43 CApaDocument* CAppMngr2App::CreateDocumentL()
       
    44     {
       
    45     return CAppMngr2Document::NewL( *this );
       
    46     }
       
    47 
       
    48 
       
    49 // ======== GLOBAL FUNCTIONS ========
       
    50 
       
    51 // ---------------------------------------------------------------------------
       
    52 // Constructs and returns an application object.
       
    53 // ---------------------------------------------------------------------------
       
    54 //
       
    55 EXPORT_C CApaApplication* NewApplication()
       
    56     {
       
    57     return new CAppMngr2App;
       
    58     }
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // Main function of the application executable.
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 GLDEF_C TInt E32Main()
       
    65     {
       
    66     return EikStart::RunApplication( NewApplication );
       
    67     }
       
    68