|
1 /* |
|
2 * Copyright (c) 2002 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: Declaration of CPhoneSettingsTestCallWaiting class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef PHONESETTINGSTESTCALLWAITING_H |
|
21 #define PHONESETTINGSTESTCALLWAITING_H |
|
22 |
|
23 #include <e32base.h> |
|
24 #include "PhoneSettingsTestParser.h" |
|
25 |
|
26 // Forward declarations |
|
27 class CPsetCallWaiting; |
|
28 class CPhoneSettingsTestCallWaitingObserver; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 NONSHARABLE_CLASS(CPhoneSettingsTestCallWaiting) : public CBase |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * Two-phased constructor. |
|
38 */ |
|
39 static CPhoneSettingsTestCallWaiting* NewL( |
|
40 CPhoneSettingsTestParser& aPhoneSettingsTestParser, |
|
41 MPhoneSettingsTestMessageHandler& aPhoneSettingsTestMessageHandler); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CPhoneSettingsTestCallWaiting(); |
|
47 |
|
48 private: |
|
49 |
|
50 /** |
|
51 * C++ default constructor. |
|
52 */ |
|
53 CPhoneSettingsTestCallWaiting( |
|
54 CPhoneSettingsTestParser& aPhoneSettingsTestParser, |
|
55 MPhoneSettingsTestMessageHandler& aPhoneSettingsTestMessageHandler); |
|
56 |
|
57 /** |
|
58 * By default Symbian 2nd phase constructor is private. |
|
59 */ |
|
60 void ConstructL(); |
|
61 |
|
62 private: // Functions for handling CActiveSchedulerWait |
|
63 |
|
64 /** |
|
65 * CActiveSchedulerWait callback function |
|
66 */ |
|
67 static TInt DoCallBackL(TAny* aAny); |
|
68 |
|
69 /** |
|
70 * CActiveSchedulerWait wait function |
|
71 */ |
|
72 void WaitTimer(TInt aWaitTime); |
|
73 |
|
74 /** |
|
75 * CActiveSchedulerWait stop function |
|
76 */ |
|
77 void Stop(); |
|
78 |
|
79 public: // Test functions |
|
80 |
|
81 /** |
|
82 * SetupL |
|
83 * Set up tester |
|
84 */ |
|
85 void SetupL(); |
|
86 |
|
87 /** |
|
88 * TearDownL |
|
89 * Cleanup tester |
|
90 */ |
|
91 void TearDownL(); |
|
92 |
|
93 /** |
|
94 * Test CPsetCallWaiting construction and destruction |
|
95 * Function type: Library |
|
96 */ |
|
97 TInt TestCPsetCallWaitingConstructAndDestructL(TTestResult& aResult); |
|
98 |
|
99 /** |
|
100 * Test CPsetCallWaiting::SetCallWaitingL |
|
101 * Function type: Library |
|
102 */ |
|
103 TInt TestSetCallWaitingL(TTestResult& aResult); |
|
104 |
|
105 /** |
|
106 * Test CPsetCallWaiting::GetCallWaitingStatusL |
|
107 * Function type: Library |
|
108 */ |
|
109 TInt TestGetCallWaitingStatusL(TTestResult& aResult); |
|
110 |
|
111 /** |
|
112 * Test CPsetCallWaiting::CancelProcess |
|
113 * Function type: Library |
|
114 */ |
|
115 TInt TestCancelProcess(TTestResult& aResult); |
|
116 |
|
117 /** |
|
118 * Test CPsetCallWaiting::SetRequestObserver |
|
119 * Function type: Library |
|
120 */ |
|
121 TInt TestSetRequestObserver(TTestResult& aResult); |
|
122 |
|
123 /** |
|
124 * Test CPsetCallWaiting::PhoneSettingChanged |
|
125 * Function type: Library |
|
126 */ |
|
127 TInt TestPhoneSettingChanged(TTestResult& aResult); |
|
128 |
|
129 private: // Data |
|
130 |
|
131 // Reference to test data parsing interface object |
|
132 CPhoneSettingsTestParser& iTestParser; |
|
133 |
|
134 // Reference to logging message interface object |
|
135 MPhoneSettingsTestMessageHandler& iTestMessageHandler; |
|
136 |
|
137 // Pointer to Phone Settings Call Waiting object |
|
138 CPsetCallWaiting* iPsetCallWaiting; |
|
139 |
|
140 // Pointer to Phone Settings Container object |
|
141 CPsetContainer* iPsetContainer; |
|
142 |
|
143 // Pointer to Phone Settings Call Waiting Observer object |
|
144 CPhoneSettingsTestCallWaitingObserver* iPhoneSettingsTestCallWaitingObserver; |
|
145 |
|
146 // Pointer to Phone Settings Request Observer object |
|
147 CPhoneSettingsTestPsetRequestObserver* iPhoneSettingsTestPsetRequestObserver; |
|
148 |
|
149 // RMobilePhone object |
|
150 RMobilePhone iPhone; |
|
151 |
|
152 // RTelServer object |
|
153 RTelServer iTelServer; |
|
154 |
|
155 // RMobileLine object |
|
156 RMobileLine iLine; |
|
157 |
|
158 // Instance of scheduler wait class |
|
159 CActiveSchedulerWait iWaitTimer; |
|
160 }; |
|
161 |
|
162 #endif // PHONESETTINGSTESTCALLWAITING_H |
|
163 |
|
164 // End of File |