|
1 /* |
|
2 * Copyright (c) 2009 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: main.cpp |
|
15 * |
|
16 */ |
|
17 #include <hbapplication.h> |
|
18 #include <hbstyleloader.h> |
|
19 #include <hbtranslator.h> |
|
20 #include <QLocale> |
|
21 #include "cpservicemainwindow.h" |
|
22 #include "cpsplogger.h" |
|
23 |
|
24 int main(int argc, char **argv) |
|
25 { |
|
26 HbApplication app(argc,argv ); |
|
27 |
|
28 #ifdef ENABLE_CPSP_LOG |
|
29 INIT_LOGGER(CPSP_LOGGER_NAME,CPSP_LOGGER_CONFIG_PATH) |
|
30 #endif |
|
31 |
|
32 CPSP_LOG("Entering CpServiceProvider.exe..."); |
|
33 |
|
34 HbTranslator translator("control_panel"); |
|
35 translator.loadCommon(); |
|
36 |
|
37 HbStyleLoader::registerFilePath(":/widgetml/cpdataformlistentryviewitem.css"); |
|
38 HbStyleLoader::registerFilePath(":/widgetml/cpdataformlistentryviewitem_color.css"); |
|
39 HbStyleLoader::registerFilePath(":/widgetml/cpdataformlistentryviewitem.widgetml"); |
|
40 |
|
41 CpServiceMainWindow wnd; |
|
42 /* |
|
43 DON'T call wnd.show(), |
|
44 it will cause deadlock problem if cpserviceprovider is launched from an indicator plugin. |
|
45 */ |
|
46 |
|
47 int ret = app.exec(); |
|
48 |
|
49 CPSP_LOG("Exiting CpServiceProvider.exe."); |
|
50 |
|
51 return ret; |
|
52 } |
|
53 |
|
54 //End of File |