|
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_INFOWIDGETNETWORKHANDLER_H |
|
19 #define UT_INFOWIDGETNETWORKHANDLER_H |
|
20 |
|
21 #include <QtTest/QtTest> |
|
22 #include <mockservice.h> |
|
23 |
|
24 class MNWMessageObserver; |
|
25 class InfoWidgetNetworkHandler; |
|
26 class TNWInfo; |
|
27 |
|
28 class UT_InfoWidgetNetworkHandler : public QObject, public MockService |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 |
|
34 UT_InfoWidgetNetworkHandler(); |
|
35 ~UT_InfoWidgetNetworkHandler(); |
|
36 |
|
37 public slots: |
|
38 void generateException(); |
|
39 void doLeaveL(); |
|
40 |
|
41 private slots: |
|
42 |
|
43 void init(); |
|
44 void cleanup(); |
|
45 |
|
46 void t_homeZoneTextTag(); |
|
47 void t_homeZoneIndicatorType(); |
|
48 void t_mcnName(); |
|
49 void t_mcnIndicatorType(); |
|
50 void t_isOnline(); |
|
51 void t_networkRegistrationStatus(); |
|
52 void t_HandleNetworkMessage(); |
|
53 void t_HandleNetworkMessageExceptionWhileEmittingSignal(); |
|
54 void t_HandleNetworkError(); |
|
55 void t_HandleNetworkErrorExceptionWhileEmittingSignal(); |
|
56 void t_resume(); |
|
57 void t_suspend(); |
|
58 void t_serviceProviderName(); |
|
59 void t_serviceProviderNameDisplayRequired(); |
|
60 void t_logCurrentInfo(); |
|
61 void t_createLeave(); |
|
62 |
|
63 private: |
|
64 |
|
65 void initializeNetworkInfo( |
|
66 MNWMessageObserver& aMessage, |
|
67 TNWInfo& aTNWInfo); |
|
68 |
|
69 private: |
|
70 |
|
71 InfoWidgetNetworkHandler *m_networkHandler; |
|
72 |
|
73 }; |
|
74 |
|
75 #endif // UT_INFOWIDGETNETWORKHANDLER_H |