|
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 #ifndef UT_SATAPPEVENTPROVIDER_H |
|
19 #define UT_SATAPPEVENTPROVIDER_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 #include <QObject> |
|
23 #include <hbview.h> |
|
24 |
|
25 // Class forwards |
|
26 class HbMainWindow; |
|
27 class HbView; |
|
28 class SatAppEventProvider; |
|
29 |
|
30 /** |
|
31 * Satapp unit test class. |
|
32 * |
|
33 * @since S60 <TB10.1> |
|
34 */ |
|
35 class Ut_SatAppEventProvider : public QObject |
|
36 { |
|
37 Q_OBJECT |
|
38 |
|
39 public: |
|
40 |
|
41 Ut_SatAppEventProvider(QObject *parent = 0); |
|
42 |
|
43 |
|
44 virtual ~Ut_SatAppEventProvider(); |
|
45 |
|
46 private slots: |
|
47 /** |
|
48 * Called before the first testfunction is executed. |
|
49 * Handles the SetUpMenu command. |
|
50 */ |
|
51 void initTestCase(); |
|
52 |
|
53 /** |
|
54 * Called after the last testfunction has been executed. |
|
55 * |
|
56 */ |
|
57 void cleanupTestCase(); |
|
58 |
|
59 /** |
|
60 * Test SatAppEventProvider's constructor. |
|
61 * |
|
62 */ |
|
63 void testCreateEventHandler(); |
|
64 |
|
65 /** |
|
66 * Test SatAppEventProvider's testShowSsWaitNote param list. |
|
67 * |
|
68 */ |
|
69 void testShowSsWaitNote_data(); |
|
70 |
|
71 /** |
|
72 * Test SatAppEventProvider's showSsWaitNote. |
|
73 * |
|
74 */ |
|
75 void testShowSsWaitNote(); |
|
76 |
|
77 /** |
|
78 * Test SatAppEventProvider's StopShowWaitNote. |
|
79 * |
|
80 */ |
|
81 void testStopShowWaitNote(); |
|
82 |
|
83 /** |
|
84 * Test SatAppEventProvider's ShowWaitNoteWithoutDelayL. |
|
85 * |
|
86 */ |
|
87 void testShowWaitNoteWithoutDelay(); |
|
88 |
|
89 /** |
|
90 * Test SatAppEventProvider's ShowSsErrorNoteL. |
|
91 * |
|
92 */ |
|
93 void testShowSsErrorNote(); |
|
94 |
|
95 private: |
|
96 /** |
|
97 * Own. |
|
98 */ |
|
99 SatAppEventProvider *mEventHandler; |
|
100 |
|
101 /** |
|
102 * Own. |
|
103 */ |
|
104 HbMainWindow *mWindow; |
|
105 |
|
106 |
|
107 }; |
|
108 |
|
109 #endif // UT_SATAPPEVENTPROVIDER_H |