connectionmonitoring/connectionmonitorui/src/ConnectionMonitorUiApp.cpp
branchRCL_3
changeset 58 83ca720e2b9a
parent 0 5a93021fdf25
equal deleted inserted replaced
57:05bc53fe583b 58:83ca720e2b9a
       
     1 /*
       
     2 * Copyright (c) 2002 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:  CConnectionMonitorUiApp application class
       
    15 *     
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include    <eikstart.h>
       
    22 #include    "ConnectionMonitorUiApp.h"
       
    23 #include    "ConnectionMonitorUiDocument.h"
       
    24 
       
    25 // ---------------------------------------------------------
       
    26 // Panic
       
    27 // ---------------------------------------------------------
       
    28 //
       
    29 void Panic( TInt aReason )
       
    30     {
       
    31     _LIT( KAppName, "Conn. Monitor" );
       
    32     User::Panic( KAppName, aReason );
       
    33     }
       
    34 
       
    35 // ================= MEMBER FUNCTIONS =======================
       
    36 
       
    37 // ---------------------------------------------------------
       
    38 // CConnectionMonitorUiApp::AppDllUid()
       
    39 // Returns application UID
       
    40 // ---------------------------------------------------------
       
    41 //
       
    42 TUid CConnectionMonitorUiApp::AppDllUid() const
       
    43     {
       
    44     return KUidConnectionMonitorUi;
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------
       
    48 // CConnectionMonitorUiApp::CreateDocumentL()
       
    49 // Creates CConnectionMonitorUiDocument object
       
    50 // ---------------------------------------------------------
       
    51 //
       
    52 CApaDocument* CConnectionMonitorUiApp::CreateDocumentL()
       
    53     {
       
    54     return CConnectionMonitorUiDocument::NewL( *this );
       
    55     }
       
    56 
       
    57 // ================= OTHER EXPORTED FUNCTIONS ==============
       
    58 
       
    59 
       
    60 LOCAL_C CApaApplication* NewApplication()
       
    61     {
       
    62     return new CConnectionMonitorUiApp;
       
    63     }
       
    64 
       
    65 GLDEF_C TInt E32Main()
       
    66     {
       
    67     return EikStart::RunApplication( NewApplication );
       
    68     }
       
    69 
       
    70 
       
    71 // End of File  
       
    72