gssettingsuis/Gs/GSApplication/Src/GSApp.cpp
branchRCL_3
changeset 24 8ee96d21d9bf
parent 23 8bda91a87a00
child 25 7e0eff37aedb
equal deleted inserted replaced
23:8bda91a87a00 24:8ee96d21d9bf
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  General Settings Application
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include    <eikstart.h>
       
    21 #include    "GSApp.h"
       
    22 #include    "GSDocument.h"
       
    23 #include    <gsfwviewuids.h>
       
    24 
       
    25 // ========================= MEMBER FUNCTIONS ================================
       
    26 
       
    27 
       
    28 // ---------------------------------------------------------------------------
       
    29 // CGSApp::AppDllUid()
       
    30 // Returns application UID
       
    31 //
       
    32 // ---------------------------------------------------------------------------
       
    33 TUid CGSApp::AppDllUid() const
       
    34     {
       
    35     return KUidGS;
       
    36     }
       
    37 
       
    38 
       
    39 // ---------------------------------------------------------------------------
       
    40 // CGSApp::CreateDocumentL()
       
    41 // Creates CGSDocument object
       
    42 //
       
    43 // ---------------------------------------------------------------------------
       
    44 CApaDocument* CGSApp::CreateDocumentL()
       
    45     {
       
    46     return CGSDocument::NewL(*this);
       
    47     }
       
    48 
       
    49 
       
    50 // ===================== OTHER EXPORTED FUNCTIONS ============================
       
    51 //
       
    52 
       
    53 
       
    54 // ---------------------------------------------------------------------------
       
    55 // NewApplication()
       
    56 // constructs CGSApp
       
    57 // Returns: CApaDocument*: created application object
       
    58 //
       
    59 // ---------------------------------------------------------------------------
       
    60 LOCAL_C CApaApplication* NewApplication()
       
    61     {
       
    62     return new CGSApp;
       
    63     }
       
    64 
       
    65 
       
    66 // ---------------------------------------------------------------------------
       
    67 // E32Main()
       
    68 //
       
    69 // ---------------------------------------------------------------------------
       
    70 GLDEF_C TInt E32Main()
       
    71     {
       
    72     return EikStart::RunApplication( NewApplication );
       
    73     }
       
    74 
       
    75 
       
    76 // End of File