appinstaller/AppinstUi/Server/Src/SWInstApplication.cpp
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:   This file contains the implementation of CSWInstApplication 
       
    15 *                class member functions.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 #include "SWInstApplication.h"
       
    23 #include "SWInstDocument.h"
       
    24 #include "SWInstCommon.h"
       
    25 #include "SWInstServer.h"
       
    26 
       
    27 using namespace SwiUI;
       
    28 
       
    29 // ============================ MEMBER FUNCTIONS ===============================
       
    30 
       
    31 // -----------------------------------------------------------------------------
       
    32 // CSWInstApplication::AppDllUid
       
    33 // Creates CSWInstApplication document object.
       
    34 // (other items were commented in a header).
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 CApaDocument* CSWInstApplication::CreateDocumentL()
       
    38     {
       
    39     return CSWInstDocument::NewL( *this );
       
    40     }
       
    41 
       
    42 // -----------------------------------------------------------------------------
       
    43 // CSWInstApplication::AppDllUid
       
    44 // Returns application's UID
       
    45 // (other items were commented in a header).
       
    46 // -----------------------------------------------------------------------------
       
    47 //
       
    48 TUid CSWInstApplication::AppDllUid() const
       
    49     {
       
    50     return KUidSWInstSvr;
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 // CSWInstApplication::NewAppServerL
       
    55 // Creates application server.
       
    56 // (other items were commented in a header).
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 void CSWInstApplication::NewAppServerL( CApaAppServer*& aAppServer )
       
    60     {
       
    61     aAppServer = CSWInstServer::NewL();    
       
    62     }
       
    63 
       
    64 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
    65 
       
    66 #include <eikstart.h>
       
    67 
       
    68 LOCAL_C CApaApplication* NewApplication()
       
    69     {
       
    70     return new CSWInstApplication;
       
    71     }
       
    72 
       
    73 GLDEF_C TInt E32Main()
       
    74     {
       
    75     return EikStart::RunApplication( NewApplication );
       
    76     }
       
    77 
       
    78 //  End of File