controlpanelui/src/cpserviceprovider/src/main.cpp
changeset 12 624337f114fe
child 14 23411a3be0db
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/controlpanelui/src/cpserviceprovider/src/main.cpp	Mon May 03 12:32:06 2010 +0300
@@ -0,0 +1,41 @@
+/*
+* Copyright (c) 2009 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:  main.cpp
+*
+*/
+#include <hbapplication.h>
+#include "cpservicemainwindow.h"
+#include "cpsplogger.h"
+
+int main(int argc, char **argv)
+{
+    HbApplication app(argc,argv ); 
+    
+    Logger::instance(CPSP_LOGGER_NAME)->configure(
+            CPSP_LOGGER_CONFIG_PATH,QSettings::IniFormat);
+    CPSP_LOG("Entering CpServiceProvider.exe...");
+    
+    CpServiceMainWindow wnd;
+    wnd.show();
+    
+    int ret = app.exec();
+    
+    CPSP_LOG("Exiting CpServiceProvider.exe.");
+
+    Logger::closeAll();
+    
+    return ret;     
+}
+
+//End of File