diff -r 3fec62e6e7fc -r 90fe62538f66 controlpanelui/src/cpserviceprovider/src/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/controlpanelui/src/cpserviceprovider/src/main.cpp Tue Aug 31 15:15:28 2010 +0300 @@ -0,0 +1,54 @@ +/* +* 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 +#include +#include +#include +#include "cpservicemainwindow.h" +#include "cpsplogger.h" + +int main(int argc, char **argv) +{ + HbApplication app(argc,argv ); + +#ifdef ENABLE_CPSP_LOG + INIT_LOGGER(CPSP_LOGGER_NAME,CPSP_LOGGER_CONFIG_PATH) +#endif + + CPSP_LOG("Entering CpServiceProvider.exe..."); + + HbTranslator translator("control_panel"); + translator.loadCommon(); + + HbStyleLoader::registerFilePath(":/widgetml/cpdataformlistentryviewitem.css"); + HbStyleLoader::registerFilePath(":/widgetml/cpdataformlistentryviewitem_color.css"); + HbStyleLoader::registerFilePath(":/widgetml/cpdataformlistentryviewitem.widgetml"); + + CpServiceMainWindow wnd; + /* + DON'T call wnd.show(), + it will cause deadlock problem if cpserviceprovider is launched from an indicator plugin. + */ + + int ret = app.exec(); + + CPSP_LOG("Exiting CpServiceProvider.exe."); + + return ret; +} + +//End of File