diff -r 753e33780645 -r 453d490c84a5 testconnuis/htiui/HtiAdminQt/main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testconnuis/htiui/HtiAdminQt/main.cpp Fri Sep 17 08:58:49 2010 +0300 @@ -0,0 +1,63 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Implementation of HtiAdmin main. +* +*/ + +#include +//#include +#include +#include + + +#include "mainview.h" +#include "htienginewrapper.h" + + + + + +int main(int argc, char *argv[]) +{ + // Initialization + HbApplication app(argc, argv); + + // Create HtiEngineWrapper + HtiEngineWrapper engineWrapper; + + if (!engineWrapper.init()) { + return EXIT_FAILURE; + } + + // Main window widget. + // Includes decorators such as signal strength and battery life indicator. + HbMainWindow mainWindow; + + //Create main view + MainView* view = new MainView(mainWindow, engineWrapper); + + //initialize main view + view->init(app); + + // Add View to main window and reveal it. + mainWindow.addView(view); + + // Show widget + //mainWindow.show(); + mainWindow.showFullScreen(); + + int result = app.exec(); + + return result; +}