organizer_plat/clock_settingsview_plugin_api/tsrc/unittest_clocksettingsviewplugin/src/main.cpp
changeset 45 b6db4fd4947b
equal deleted inserted replaced
23:fd30d51f876b 45:b6db4fd4947b
       
     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 // System includes
       
    19 #include <QTest>
       
    20 #include <HbApplication>
       
    21 
       
    22 // User includes
       
    23 #include "unittest_clocksettingsviewplugin.h"
       
    24 
       
    25 int main(int argc, char *argv[])
       
    26 {
       
    27 	HbApplication app(argc, argv);
       
    28 	TestClockSettingsViewPlugin tc;
       
    29 	
       
    30 	char *inParam[3];
       
    31 	inParam[0] = argv[0];
       
    32 	inParam[1] = "-o";
       
    33 	inParam[2] = "c:\\data\\TestClockSettingsViewPlugin.txt";
       
    34 	
       
    35 	int ret = QTest::qExec(&tc, 3, inParam);
       
    36 	// Core dump if HbIconLoader instance is not destroyed before the
       
    37 	// application instance. HbIconLoader uses QCoreApplication::aboutToQuit()
       
    38 	// signal to destroy itself. app.exec() where the signal is normally emitted
       
    39 	// is not called here. So, invoking the signal explicitly.
       
    40 	QMetaObject::invokeMethod(&app, "aboutToQuit", Qt::DirectConnection);
       
    41 	return ret;
       
    42 }
       
    43 
       
    44 // End of file	--Don't remove this.