|
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: TestVideoSettingsGroup class definition |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TESTVIDEOSETTINGSGROUP_H |
|
19 #define TESTVIDEOSETTINGSGROUP_H |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <qobject.h> |
|
24 #include <qabstractitemmodel.h> |
|
25 |
|
26 class CpItemDataHelper; |
|
27 class VideoSettingsGroup; |
|
28 |
|
29 class TestVideoSettingsGroup : public QObject |
|
30 { |
|
31 |
|
32 Q_OBJECT |
|
33 |
|
34 signals: |
|
35 |
|
36 void testTextSignal(); |
|
37 void testIntSignal(int); |
|
38 void testShownSignal(const QModelIndex&); |
|
39 |
|
40 private slots: |
|
41 |
|
42 /** |
|
43 * called at the very beginning of the test |
|
44 */ |
|
45 void initTestCase(); |
|
46 |
|
47 /** |
|
48 * called at the very end of the test |
|
49 */ |
|
50 void cleanupTestCase(); |
|
51 |
|
52 /** |
|
53 * called at the start of every test. |
|
54 */ |
|
55 void init(); |
|
56 |
|
57 /** |
|
58 * called at the end of every test. |
|
59 */ |
|
60 void cleanup(); |
|
61 |
|
62 /** |
|
63 * tests mSettingsModel construction. |
|
64 */ |
|
65 void testSettingsConstruction(); |
|
66 |
|
67 /** |
|
68 * tests mAccessPointItem construction. |
|
69 */ |
|
70 void testAccessPointConstruction(); |
|
71 |
|
72 /** |
|
73 * tests mLowestUDPPortItem construction. |
|
74 */ |
|
75 void testLowestUdpPortConstruction(); |
|
76 |
|
77 /** |
|
78 * tests mHighestUDPPortItem construction. |
|
79 */ |
|
80 void testHighestUdpPortConstruction(); |
|
81 |
|
82 /** |
|
83 * tests mUseProxyItem construction. |
|
84 */ |
|
85 void testUseProxyConstruction(); |
|
86 |
|
87 /** |
|
88 * tests mProxyServerItem construction. |
|
89 */ |
|
90 void testProxyServerConstruction(); |
|
91 |
|
92 /** |
|
93 * tests mProxyPortItem construction. |
|
94 */ |
|
95 void testProxyPortConstruction(); |
|
96 |
|
97 /** |
|
98 * tests destructor |
|
99 */ |
|
100 void testDestructor(); |
|
101 |
|
102 /** |
|
103 * tests getAccessPointId |
|
104 */ |
|
105 void testGetAccessPointId(); |
|
106 |
|
107 /** |
|
108 * tests setAccessPointId |
|
109 */ |
|
110 void testSetAccessPointId(); |
|
111 |
|
112 /** |
|
113 * tests lowestUdpPortEditingFinished |
|
114 */ |
|
115 void testLowestUdpPortEditingFinished(); |
|
116 |
|
117 /** |
|
118 * tests highestUdpPortEditingFinished |
|
119 */ |
|
120 void testHighestUdpPortEditingFinished(); |
|
121 |
|
122 /** |
|
123 * tests useProxyToggled |
|
124 */ |
|
125 void testUseProxyToggled(); |
|
126 |
|
127 /** |
|
128 * tests proxyServerEditingFinished |
|
129 */ |
|
130 void testProxyServerEditingFinished(); |
|
131 |
|
132 /** |
|
133 * tests proxyPortEditingFinished |
|
134 */ |
|
135 void testProxyPortEditingFinished(); |
|
136 |
|
137 /** |
|
138 * tests itemShown |
|
139 */ |
|
140 void testItemShown(); |
|
141 |
|
142 private: |
|
143 |
|
144 CpItemDataHelper* mItemHelper; |
|
145 |
|
146 VideoSettingsGroup* mTestObject; |
|
147 |
|
148 }; |
|
149 |
|
150 #endif // TESTVIDEOSETTINGSGROUP_H |
|
151 |
|
152 // End of File |