phonebookui/Phonebook2/ServerApplication/src/CPbk2ServerApplication.cpp
branchRCL_3
changeset 20 f4a778e096c2
parent 0 e686773b3f54
equal deleted inserted replaced
19:5b6f26637ad3 20:f4a778e096c2
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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:  Phonebook 2 application server application class. 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "CPbk2ServerApplication.h"
       
    20 
       
    21 // Phonebook 2
       
    22 #include "CPbk2ServerApp.h"
       
    23 #include "CPbk2ServerAppDocument.h"
       
    24 #include <Pbk2InternalUID.h>
       
    25 
       
    26 // System includes
       
    27 #include <eikstart.h>
       
    28 
       
    29 // --------------------------------------------------------------------------
       
    30 // CPbk2ServerApplication::CreateDocumentL
       
    31 // --------------------------------------------------------------------------
       
    32 //
       
    33 CApaDocument* CPbk2ServerApplication::CreateDocumentL()
       
    34     {
       
    35     return CPbk2ServerAppDocument::NewL( *this );
       
    36     }
       
    37 
       
    38 // --------------------------------------------------------------------------
       
    39 // CPbk2ServerApplication::AppDllUid
       
    40 // --------------------------------------------------------------------------
       
    41 //    
       
    42 TUid CPbk2ServerApplication::AppDllUid() const
       
    43     {
       
    44     return TUid::Uid( KPbk2ServerAppUID3 );
       
    45     }
       
    46 
       
    47 // --------------------------------------------------------------------------
       
    48 // CPbk2ServerApplication::NewAppServerL
       
    49 // --------------------------------------------------------------------------
       
    50 //    
       
    51 void CPbk2ServerApplication::NewAppServerL( CApaAppServer*& aAppServer )
       
    52     {
       
    53     aAppServer = CPbk2ServerApp::NewL();
       
    54     }
       
    55 
       
    56 // --------------------------------------------------------------------------
       
    57 // NewApplication()
       
    58 // --------------------------------------------------------------------------
       
    59 //    
       
    60 EXPORT_C CApaApplication* NewApplication()
       
    61     {
       
    62 	return new CPbk2ServerApplication;
       
    63     }
       
    64 
       
    65 // --------------------------------------------------------------------------
       
    66 // E32Main()
       
    67 // --------------------------------------------------------------------------
       
    68 //    
       
    69 GLDEF_C TInt E32Main()
       
    70     {
       
    71     return EikStart::RunApplication( NewApplication );
       
    72     }
       
    73             
       
    74 // End of File