codhandler/roapapp/src/RoapApp.cpp
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 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 the License "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 *      Implementation of class CRoapApp.   
       
    16 *      
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 
       
    23 #include "RoapApp.h"
       
    24 #include "RoapAppDocument.h"
       
    25 #include <eikstart.h>
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 /// UID of the application.
       
    30 LOCAL_D const TUid KRoapAppUid = { 0x10008d64 };
       
    31 
       
    32 // ================= MEMBER FUNCTIONS =======================
       
    33 
       
    34 // ---------------------------------------------------------
       
    35 // CRoapApp::CreateDocumentL()
       
    36 // ---------------------------------------------------------
       
    37 //
       
    38 CApaDocument* CRoapApp::CreateDocumentL()
       
    39     {
       
    40     return CRoapAppDocument::NewL( *this );
       
    41     }
       
    42 
       
    43 
       
    44 // ---------------------------------------------------------
       
    45 // CRoapApp::AppDllUid()
       
    46 // ---------------------------------------------------------
       
    47 //
       
    48 TUid CRoapApp::AppDllUid() const
       
    49     {
       
    50     return KRoapAppUid;
       
    51     }
       
    52 
       
    53 // ================= OTHER FUNCTIONS ==============
       
    54 
       
    55 /**
       
    56 * Create application object.
       
    57 * @return The created application object.
       
    58 */
       
    59 LOCAL_C CApaApplication* NewApplication()
       
    60     {
       
    61     return new CRoapApp;
       
    62     }
       
    63 
       
    64 /**
       
    65 * Executable entry point.
       
    66 * @return Error code.
       
    67 */
       
    68 GLDEF_C TInt E32Main()
       
    69     {
       
    70     return EikStart::RunApplication( NewApplication );
       
    71     }