hotspotfw/hsbrowser/src/hsbrowserapp.cpp
branchRCL_3
changeset 55 f28ada11abbf
parent 0 56b72877c1cb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hotspotfw/hsbrowser/src/hsbrowserapp.cpp	Wed Sep 01 12:20:32 2010 +0100
@@ -0,0 +1,84 @@
+/*
+* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:   Implements the main application class.
+*
+*/
+
+
+
+// INCLUDE FILES
+#include <eikstart.h>
+
+#include "hsbrowserapp.h"
+#include "hsbrowserdocument.h"
+#include "hsbrowsercommon.h"
+#include "am_debug.h"
+
+// ================= MEMBER FUNCTIONS =======================
+
+// ---------------------------------------------------------
+// CHsBrowserApp::AppDllUid()
+// Returns application UID
+// ---------------------------------------------------------
+//
+TUid CHsBrowserApp::AppDllUid() const
+    {
+    return KUidHsBrowserApp;
+    }
+
+// ---------------------------------------------------------
+// CDictionaryStore* CHsBrowserApp::OpenIniFileLC(RFs& aFs) const
+// overrides CAknApplication::OpenIniFileLC to enable INI file support
+// ---------------------------------------------------------
+//
+CDictionaryStore* CHsBrowserApp::OpenIniFileLC( RFs& aFs ) const
+    {
+    return CEikApplication::OpenIniFileLC( aFs );
+    }
+   
+// ---------------------------------------------------------
+// CHsBrowserApp::CreateDocumentL()
+// Creates CHsBrowserAppDocument object
+// ---------------------------------------------------------
+//
+CApaDocument* CHsBrowserApp::CreateDocumentL()
+    {
+    return CHsBrowserDocument::NewL( *this );
+    }
+
+// ================= OTHER EXPORTED FUNCTIONS ==============
+//
+// ---------------------------------------------------------
+// NewApplication() 
+// Constructs CHsBrowserApp
+// Returns: created application object
+// ---------------------------------------------------------
+//
+LOCAL_C CApaApplication* NewApplication( )
+	{
+    return new CHsBrowserApp;
+    }
+    
+// ---------------------------------------------------------
+//    E32Main
+//    Main function for Symbian OS v9 EXE application
+//    Returns: TInt
+// ---------------------------------------------------------
+GLDEF_C TInt E32Main()
+    {
+	DEBUG( "***** Starting Hotspot Browser Logon Application..." );
+    return EikStart::RunApplication( NewApplication );
+    }
+
+// End of File