controlpanelui/src/cpserviceprovider/src/main.cpp
changeset 19 36aa4756ee82
parent 12 624337f114fe
child 17 4a9568303383
equal deleted inserted replaced
12:624337f114fe 19:36aa4756ee82
    13 *
    13 *
    14 * Description:  main.cpp
    14 * Description:  main.cpp
    15 *
    15 *
    16 */
    16 */
    17 #include <hbapplication.h>
    17 #include <hbapplication.h>
       
    18 #include <hbstyleloader.h>
       
    19 #include <QDir>
       
    20 #include <cpbasepath.h>
    18 #include "cpservicemainwindow.h"
    21 #include "cpservicemainwindow.h"
    19 #include "cpsplogger.h"
    22 #include "cpsplogger.h"
    20 
    23 
    21 int main(int argc, char **argv)
    24 int main(int argc, char **argv)
    22 {
    25 {
    23     HbApplication app(argc,argv ); 
    26     HbApplication app(argc,argv ); 
    24     
    27     
    25     Logger::instance(CPSP_LOGGER_NAME)->configure(
    28     Logger::instance(CPSP_LOGGER_NAME)->configure(
    26             CPSP_LOGGER_CONFIG_PATH,QSettings::IniFormat);
    29             CPSP_LOGGER_CONFIG_PATH,QSettings::IniFormat);
    27     CPSP_LOG("Entering CpServiceProvider.exe...");
    30     CPSP_LOG("Entering CpServiceProvider.exe...");
       
    31     
       
    32     HbStyleLoader::registerFilePath(CP_RESOURCE_PATH + QDir::separator() + WIDGETML_SUB_PATH);
    28     
    33     
    29     CpServiceMainWindow wnd;
    34     CpServiceMainWindow wnd;
    30     wnd.show();
    35     wnd.show();
    31     
    36     
    32     int ret = app.exec();
    37     int ret = app.exec();