logsui/tsrc/callservicesimulation2/src/main.cpp
changeset 0 4a5361db8937
equal deleted inserted replaced
-1:000000000000 0:4a5361db8937
       
     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 <hblineedit.h>
       
    20 #include <hbmainwindow.h>
       
    21 #include <QDebug>
       
    22 #include "serviceapp.h"
       
    23 
       
    24 int main(int argc, char **argv)
       
    25 {
       
    26         
       
    27     qDebug() << "ServiceApp::main ->";
       
    28     
       
    29     
       
    30     HbApplication app(argc, argv);
       
    31 
       
    32     HbMainWindow mainWindow;
       
    33     
       
    34      DialerService* dialer = new DialerService();
       
    35     ServiceApp serviceApp(dialer);
       
    36     mainWindow.addView(&serviceApp);
       
    37     
       
    38     // Show widget
       
    39     mainWindow.show();
       
    40     
       
    41     // Enter event loop
       
    42     int err = app.exec();
       
    43     qDebug() << "ServiceApp::main <-";
       
    44     return err;
       
    45 }
       
    46