controlpanelui/src/cpserviceprovider/src/main.cpp
changeset 12 624337f114fe
child 14 23411a3be0db
equal deleted inserted replaced
11:10d0dd0e43f1 12:624337f114fe
       
     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 "cpservicemainwindow.h"
       
    19 #include "cpsplogger.h"
       
    20 
       
    21 int main(int argc, char **argv)
       
    22 {
       
    23     HbApplication app(argc,argv ); 
       
    24     
       
    25     Logger::instance(CPSP_LOGGER_NAME)->configure(
       
    26             CPSP_LOGGER_CONFIG_PATH,QSettings::IniFormat);
       
    27     CPSP_LOG("Entering CpServiceProvider.exe...");
       
    28     
       
    29     CpServiceMainWindow wnd;
       
    30     wnd.show();
       
    31     
       
    32     int ret = app.exec();
       
    33     
       
    34     CPSP_LOG("Exiting CpServiceProvider.exe.");
       
    35 
       
    36     Logger::closeAll();
       
    37     
       
    38     return ret;     
       
    39 }
       
    40 
       
    41 //End of File