hotspotfw/hsbrowser/src/hsbrowserapp.cpp
branchRCL_3
changeset 24 63be7eb3fc78
parent 23 b852595f5cbe
child 25 f28ada11abbf
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
     1 /*
       
     2 * Copyright (c) 2007 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:   Implements the main application class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <eikstart.h>
       
    22 
       
    23 #include "hsbrowserapp.h"
       
    24 #include "hsbrowserdocument.h"
       
    25 #include "hsbrowsercommon.h"
       
    26 #include "am_debug.h"
       
    27 
       
    28 // ================= MEMBER FUNCTIONS =======================
       
    29 
       
    30 // ---------------------------------------------------------
       
    31 // CHsBrowserApp::AppDllUid()
       
    32 // Returns application UID
       
    33 // ---------------------------------------------------------
       
    34 //
       
    35 TUid CHsBrowserApp::AppDllUid() const
       
    36     {
       
    37     return KUidHsBrowserApp;
       
    38     }
       
    39 
       
    40 // ---------------------------------------------------------
       
    41 // CDictionaryStore* CHsBrowserApp::OpenIniFileLC(RFs& aFs) const
       
    42 // overrides CAknApplication::OpenIniFileLC to enable INI file support
       
    43 // ---------------------------------------------------------
       
    44 //
       
    45 CDictionaryStore* CHsBrowserApp::OpenIniFileLC( RFs& aFs ) const
       
    46     {
       
    47     return CEikApplication::OpenIniFileLC( aFs );
       
    48     }
       
    49    
       
    50 // ---------------------------------------------------------
       
    51 // CHsBrowserApp::CreateDocumentL()
       
    52 // Creates CHsBrowserAppDocument object
       
    53 // ---------------------------------------------------------
       
    54 //
       
    55 CApaDocument* CHsBrowserApp::CreateDocumentL()
       
    56     {
       
    57     return CHsBrowserDocument::NewL( *this );
       
    58     }
       
    59 
       
    60 // ================= OTHER EXPORTED FUNCTIONS ==============
       
    61 //
       
    62 // ---------------------------------------------------------
       
    63 // NewApplication() 
       
    64 // Constructs CHsBrowserApp
       
    65 // Returns: created application object
       
    66 // ---------------------------------------------------------
       
    67 //
       
    68 LOCAL_C CApaApplication* NewApplication( )
       
    69 	{
       
    70     return new CHsBrowserApp;
       
    71     }
       
    72     
       
    73 // ---------------------------------------------------------
       
    74 //    E32Main
       
    75 //    Main function for Symbian OS v9 EXE application
       
    76 //    Returns: TInt
       
    77 // ---------------------------------------------------------
       
    78 GLDEF_C TInt E32Main()
       
    79     {
       
    80 	DEBUG( "***** Starting Hotspot Browser Logon Application..." );
       
    81     return EikStart::RunApplication( NewApplication );
       
    82     }
       
    83 
       
    84 // End of File