usbuis/usbui/src/USBClassChangeUIApp.cpp
branchRCL_3
changeset 24 e02eb84a14d2
parent 0 1e05558e2206
equal deleted inserted replaced
23:25fce757be94 24:e02eb84a14d2
       
     1 /*
       
     2 * Copyright (c) 2005, 2006 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 is the implementation of application class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    "USBClassChangeUIApp.h"
       
    21 #include    "USBClassChangeUIDocument.h"
       
    22 #include    <eikstart.h>
       
    23 
       
    24 
       
    25 // ================= MEMBER FUNCTIONS =========================================
       
    26 
       
    27 // ----------------------------------------------------------------------------
       
    28 // CUSBClassChangeUIApp::AppDllUid()
       
    29 // Returns application UID
       
    30 // ----------------------------------------------------------------------------
       
    31 //
       
    32 TUid CUSBClassChangeUIApp::AppDllUid() const
       
    33     {
       
    34     return KUidUSBClassChangeUI;
       
    35     }
       
    36    
       
    37 // ----------------------------------------------------------------------------
       
    38 // CUSBClassChangeUIApp::CreateDocumentL()
       
    39 // Creates CUSBClassChangeUIDocument object
       
    40 // ----------------------------------------------------------------------------
       
    41 //
       
    42 CApaDocument* CUSBClassChangeUIApp::CreateDocumentL()
       
    43     {
       
    44     CUSBClassChangeUIDocument* doc = 
       
    45         new ( ELeave ) CUSBClassChangeUIDocument( *this );
       
    46     return doc; 
       
    47     
       
    48     }
       
    49     
       
    50 // ================= OTHER EXPORTED FUNCTIONS =================================   
       
    51 
       
    52 LOCAL_C CApaApplication* NewApplication()
       
    53     {
       
    54     return new CUSBClassChangeUIApp;
       
    55     }
       
    56 
       
    57 GLDEF_C TInt E32Main()
       
    58     {
       
    59     return EikStart::RunApplication( NewApplication );
       
    60     }
       
    61 
       
    62 // End of File