|
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_CPHCLTUSSDNOTECONTROLLER_H |
|
19 #define UT_CPHCLTUSSDNOTECONTROLLER_H |
|
20 |
|
21 |
|
22 #include <QtTest/QtTest> |
|
23 #include <QObject> |
|
24 #include "MPhCltUssdNoteControllerCallBack.h" |
|
25 |
|
26 |
|
27 |
|
28 // Class forwards |
|
29 class CPhCltUssdNoteController; |
|
30 |
|
31 /** |
|
32 * Satapp unit test class. |
|
33 * |
|
34 * @since S60 <TB10.1> |
|
35 */ |
|
36 class Ut_CphCltUssdNoteController : public QObject, |
|
37 public MPhCltUssdNoteControllerCallBack |
|
38 { |
|
39 Q_OBJECT |
|
40 |
|
41 public: |
|
42 |
|
43 Ut_CphCltUssdNoteController(QObject *parent = 0); |
|
44 |
|
45 virtual ~Ut_CphCltUssdNoteController(); |
|
46 |
|
47 /** |
|
48 * From MPhCltUssdNoteControllerCallBack. |
|
49 * |
|
50 */ |
|
51 void GlobalWaitNoteHidden(); |
|
52 |
|
53 private slots: |
|
54 /** |
|
55 * Called before the first testfunction is executed. |
|
56 */ |
|
57 void initTestCase(); |
|
58 |
|
59 /** |
|
60 * Called after the last testfunction has been executed. |
|
61 * |
|
62 */ |
|
63 void cleanupTestCase(); |
|
64 |
|
65 /** |
|
66 * Test CPhCltUssdNoteController's constructor. |
|
67 * |
|
68 */ |
|
69 void testCreateMainHandler(); |
|
70 |
|
71 /** |
|
72 * Test CPhCltUssdNoteController's testShowGlobalInformationNote param list. |
|
73 * |
|
74 */ |
|
75 void testShowGlobalInformationNote_data(); |
|
76 |
|
77 /** |
|
78 * Test CPhCltUssdNoteController's ShowGlobalInformationNoteL. |
|
79 * |
|
80 */ |
|
81 void testShowGlobalInformationNote(); |
|
82 |
|
83 /** |
|
84 * Test CPhCltUssdNoteController's ShowGlobalWaitNoteL. |
|
85 * |
|
86 */ |
|
87 void testShowGlobalWaitNote(); |
|
88 |
|
89 /** |
|
90 * Test CPhCltUssdNoteController's DestroyGlobalWaitNote. |
|
91 * |
|
92 */ |
|
93 void testDestroyGlobalWaitNote(); |
|
94 |
|
95 /** |
|
96 * Test CPhCltUssdNoteController's cancel GlobalWaitNote. |
|
97 * |
|
98 */ |
|
99 void testCancelGlobalWaitNote(); |
|
100 |
|
101 private: |
|
102 |
|
103 /** |
|
104 * Own. |
|
105 */ |
|
106 CPhCltUssdNoteController *mNoteController; |
|
107 |
|
108 }; |
|
109 |
|
110 #endif // UT_CPHCLTUSSDNOTECONTROLLER_H |