usbuis/usbui/src/USBClassChangeUIApp.cpp
changeset 38 218231f2b3b3
parent 35 9d8b04ca6939
child 42 3f0f275e5729
child 56 f45583a69686
equal deleted inserted replaced
35:9d8b04ca6939 38:218231f2b3b3
     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