equal
deleted
inserted
replaced
|
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: Screensaver application. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <hbapplication.h> |
|
19 |
|
20 #include "snsrscreensaver.h" |
|
21 #include "snsrtest_global.h" |
|
22 |
|
23 int main(int argc, char *argv[]) |
|
24 { |
|
25 SCREENSAVER_TEST_FUNC_ENTRY("main") |
|
26 |
|
27 HbApplication scsrApp(argc, argv); |
|
28 scsrApp.setApplicationName("Screensaver"); |
|
29 SnsrScreensaver scsr; |
|
30 QObject::connect(&scsrApp, SIGNAL(aboutToQuit()), &scsr, SLOT(stop())); |
|
31 QObject::connect(&scsr, SIGNAL(exit()), &scsrApp, SLOT(quit()), Qt::QueuedConnection); |
|
32 scsr.start(); |
|
33 int ret = scsrApp.exec(); |
|
34 |
|
35 SCREENSAVER_TEST_FUNC_EXIT("main") |
|
36 return ret; |
|
37 } |