controlpanelui/examples/pluginlauncherclient/src/main.cpp
changeset 19 36aa4756ee82
child 22 a5692c68d772
equal deleted inserted replaced
12:624337f114fe 19:36aa4756ee82
       
     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:  
       
    15 *
       
    16 */
       
    17 
       
    18 #include <hbapplication.h>
       
    19 #include <QDir>
       
    20 #include <hbmainwindow.h>
       
    21 #include <hbstyleloader.h>
       
    22 #include <cpbasepath.h>
       
    23 #include "mainview.h"
       
    24 
       
    25 int main(int argc, char **argv)
       
    26 {
       
    27     HbApplication app(argc, argv);
       
    28     
       
    29     HbStyleLoader::registerFilePath(CP_RESOURCE_PATH + QDir::separator() + WIDGETML_SUB_PATH);
       
    30     
       
    31     HbMainWindow mainWindow;
       
    32     MainView *mainView = new MainView();
       
    33     mainWindow.addView(mainView);
       
    34     mainWindow.show();
       
    35     
       
    36     return app.exec();
       
    37 }
       
    38 
       
    39 //End of File
       
    40