perfmon/ui/hb/app/src/main.cpp
branchRCL_3
changeset 21 b3cee849fa46
equal deleted inserted replaced
20:48060abbbeaf 21:b3cee849fa46
       
     1 /*
       
     2 * Copyright (c) 2010 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 <QMessageBox>
       
    19 
       
    20 #include "application.h"
       
    21 #include "enginewrapper.h"
       
    22 #include "mainwindow.h"
       
    23 #include "datapopup.h"
       
    24 
       
    25 int main(int argc, char *argv[])
       
    26 {
       
    27     Application app(argc, argv);
       
    28 	
       
    29     EngineWrapper engine;
       
    30     if (!engine.initialize())
       
    31     {
       
    32         QMessageBox::critical(0, QObject::tr("Error"), QObject::tr("Unable to initialize engine. Application will now quit."));
       
    33         return 1;
       
    34     }
       
    35 
       
    36     MainWindow window(engine);
       
    37 	window.show();
       
    38 
       
    39 //    DataPopup dataPopup(engine);
       
    40 
       
    41 //    QObject::connect(&app, SIGNAL(foregroundEvent(bool)),
       
    42 //                     &dataPopup, SLOT(updateVisibility(bool)));
       
    43 
       
    44     // TODO: pass false if run in background
       
    45 //    dataPopup.updateVisibility(true);
       
    46 
       
    47     return app.exec();
       
    48 }