|
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 #ifndef UT_BARRINGPLUGINGROUP_H |
|
19 #define UT_BARRINGPLUGINGROUP_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 #include <mockservice.h> |
|
23 |
|
24 class CpBarringPluginGroup; |
|
25 class PSetCallBarringWrapper; |
|
26 class HbDataFormModel; |
|
27 |
|
28 class UT_CpBarringPluginGroup : public QObject, MockService |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 |
|
34 UT_CpBarringPluginGroup(); |
|
35 ~UT_CpBarringPluginGroup(); |
|
36 |
|
37 private slots: |
|
38 |
|
39 void init(); |
|
40 void cleanup(); |
|
41 |
|
42 void t_memleak(); |
|
43 void t_itemShownNotBarringItem(); |
|
44 void t_itemShownBarringStatusRequestOngoing(); |
|
45 void t_barringStatusRequestCompletedForUpdateInquiry(); |
|
46 void t_barringStatusRequestCompletedWithAnError(); |
|
47 void t_getBarringStatuses(); |
|
48 void t_enableBarringRequestCompleted(); |
|
49 void t_enableBarringRequestCompletedUnknownBarring(); |
|
50 void t_enableBAOCRequestCompletedStatusUpdate(); |
|
51 void t_enableBOICRequestCompletedStatusUpdate(); |
|
52 void t_enableBOICexHCRequestCompletedStatusUpdate(); |
|
53 void t_enableBAICRequestCompletedStatusUpdate(); |
|
54 void t_enableBICRoamRequestCompletedStatusUpdate(); |
|
55 void t_disableBarringRequestCompleted(); |
|
56 void t_barringPasswordChangeRequestCompleted(); |
|
57 void t_changeBarringStateRequested(); |
|
58 void t_changeBarringPasswordRequested(); |
|
59 |
|
60 signals: |
|
61 void simulateCheckStateChange(int checkState); |
|
62 void simulateEditPasswordButtonClicked(bool checked); |
|
63 |
|
64 private: |
|
65 |
|
66 CpBarringPluginGroup *m_barringpluginGroup; |
|
67 PSetCallBarringWrapper *m_barringWrapperMock; |
|
68 |
|
69 /** Now own. Data form model. */ |
|
70 HbDataFormModel *m_dataFormModel; |
|
71 }; |
|
72 |
|
73 #endif // UT_BARRINGPLUGINGROUP_H |