vtuis/videotelui/src/CVtUiApp.cpp
branchRCL_3
changeset 25 779871d1e4f4
parent 0 ed9695c8bcbe
equal deleted inserted replaced
24:f15ac8e65a02 25:779871d1e4f4
       
     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 "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 the CVtUiApp application class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include    "CVtUiApp.h"
       
    22 #include    "CVtUiDoc.h"
       
    23 #include    "videotelui.hrh"
       
    24 
       
    25 #include    <eikstart.h>
       
    26 
       
    27 // CONSTANTS
       
    28 
       
    29 // UID of Video Telephone application.
       
    30 const TUid KVtUiAppUid = { KVtUiAppUidValue };
       
    31 
       
    32 // ============================ MEMBER FUNCTIONS ===============================
       
    33 
       
    34 // -----------------------------------------------------------------------------
       
    35 // CVtUiApp::CVtUiApp
       
    36 // C++ default constructor can NOT contain any code, that
       
    37 // might leave.
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 CVtUiApp::CVtUiApp()
       
    41     {
       
    42     }
       
    43 
       
    44 // -----------------------------------------------------------------------------
       
    45 // CVtUiApp::CreateDocumentL
       
    46 // Creates CVtUiDoc instance.
       
    47 // -----------------------------------------------------------------------------
       
    48 //
       
    49 CApaDocument* CVtUiApp::CreateDocumentL()
       
    50     {
       
    51     return new ( ELeave ) CVtUiDoc( *this );
       
    52     }
       
    53 
       
    54 // -----------------------------------------------------------------------------
       
    55 // CVtUiApp::AppDllUid
       
    56 // Returns application uid.
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 TUid CVtUiApp::AppDllUid() const
       
    60     {
       
    61     return KVtUiAppUid;
       
    62     }
       
    63 
       
    64 // ========================== OTHER EXPORTED FUNCTIONS =========================
       
    65 
       
    66 // ---------------------------------------------------------
       
    67 // NewApplication implements
       
    68 // 
       
    69 // Creates an instance of application.
       
    70 //
       
    71 // Returns: an instance of CVtUiApp
       
    72 // ---------------------------------------------------------
       
    73 //
       
    74 LOCAL_C CApaApplication* NewApplication()
       
    75     {
       
    76     return new CVtUiApp;
       
    77     }
       
    78 
       
    79 // ---------------------------------------------------------
       
    80 // E32Main implements
       
    81 // 
       
    82 // It is called when executable is started. 
       
    83 //
       
    84 // Returns: error code.
       
    85 // ---------------------------------------------------------
       
    86 //
       
    87 GLDEF_C TInt E32Main()
       
    88     {
       
    89     return EikStart::RunApplication( NewApplication );
       
    90     }
       
    91 
       
    92 //  End of File