24
|
1 |
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
/**
|
|
17 |
@file
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
#ifndef __TE_ETELISVNOTIFIERS_H_
|
|
22 |
#define __TE_ETELISVNOTIFIERS_H_
|
|
23 |
|
|
24 |
#include <etel3rdparty.h>
|
|
25 |
#include "TE_EtelIsvCallFunc.h"
|
|
26 |
|
|
27 |
|
|
28 |
/**
|
|
29 |
* This class implements a state machine that executes a series of asynchronous
|
|
30 |
* requests.
|
|
31 |
*/
|
|
32 |
class CTestNotifyChange : public CEtelIsvTestStep
|
|
33 |
{
|
|
34 |
public:
|
|
35 |
CTestNotifyChange() ;
|
|
36 |
~CTestNotifyChange(){} ;
|
|
37 |
virtual enum TVerdict doTestStepL();
|
|
38 |
private:
|
|
39 |
TPckgBuf<CTelephony::TFlightModeV1> iNotifierStatusBuff;
|
|
40 |
TPckgBuf<CTelephony::TFlightModeV1> iFmNotifierStatusBuff;
|
|
41 |
TPckgBuf<CTelephony::TIndicatorV1> iIndNotifierStatusBuff;
|
|
42 |
TPckgBuf<CTelephony::TBatteryInfoV1> iBatNotifierStatusBuff;
|
|
43 |
TPckgBuf<CTelephony::TSignalStrengthV1> iSigNotifierStatusBuff;
|
|
44 |
TPckgBuf<CTelephony::TIccLockInfoV1> iLocNotifierStatusBuff;
|
|
45 |
TPckgBuf<CTelephony::TCallStatusV1> iLinNotifierStatusBuff;
|
|
46 |
TPckgBuf<CTelephony::TCallStatusV1> iFaxDataLinExpNotifierStatusBuff;
|
|
47 |
TPckgBuf<CTelephony::TCallStatusV1> iCalNotifierStatusBuff;
|
|
48 |
TPckgBuf<CTelephony::TRemotePartyInfoV1> iRemNotifierStatusBuff;
|
|
49 |
TPckgBuf<CTelephony::TNetworkRegistrationV1> iRegNotifierStatusBuff;
|
|
50 |
TPckgBuf<CTelephony::TNetworkInfoV1> iNetNotifierStatusBuff;
|
|
51 |
TPckgBuf<CTelephony::TNetworkInfoV2> iNetNotifierStatusBuffV2;
|
|
52 |
};
|
|
53 |
|
|
54 |
class CTestNotifyChangeCancel : public CEtelIsvTestStep
|
|
55 |
{
|
|
56 |
public:
|
|
57 |
CTestNotifyChangeCancel() ;
|
|
58 |
~CTestNotifyChangeCancel(){} ;
|
|
59 |
virtual enum TVerdict doTestStepL();
|
|
60 |
};
|
|
61 |
|
|
62 |
class CTestCallAndNotify : public CEtelIsvTestStep
|
|
63 |
{
|
|
64 |
public:
|
|
65 |
CTestCallAndNotify() ;
|
|
66 |
~CTestCallAndNotify(){} ;
|
|
67 |
virtual enum TVerdict doTestStepL();
|
|
68 |
};
|
|
69 |
|
|
70 |
class CTestRegisterNotifierAct : public CEtelIsvActBase, public MActionParent
|
|
71 |
{
|
|
72 |
public: // functions
|
|
73 |
static CTestRegisterNotifierAct* NewLC(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TInt& iNumberNotifierTestsActive, CTelephony::TNotificationEvent aEvent);
|
|
74 |
void ConstructL();
|
|
75 |
~CTestRegisterNotifierAct();
|
|
76 |
void StartNotifier(TDes8& aNotifierData, TRequestStatus aExpStat, TBool aCheckConcurrency = EFalse);
|
|
77 |
void DoCancel();
|
|
78 |
void RunL();
|
|
79 |
void MakeCallL();
|
|
80 |
|
|
81 |
void SetNetworkInfoVersion(TInt aVersion);
|
|
82 |
|
|
83 |
protected:
|
|
84 |
CTestRegisterNotifierAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, TInt& aNumberNotifierTestsActive, CTelephony::TNotificationEvent aEvent);
|
|
85 |
void SendNotifyRequest(TBool aCheckConcurrency = EFalse);
|
|
86 |
void ProcessFlightModeChangeNotification();
|
|
87 |
void ProcessIndicatorNotification();
|
|
88 |
void ProcessBatteryInfoNotification();
|
|
89 |
void ProcessSignalStrengthNotification();
|
|
90 |
void ProcessLockInfoNotification();
|
|
91 |
void ProcessLineStatusNotification();
|
|
92 |
void ProcessCallStatusNotification();
|
|
93 |
void ProcessRemotePartyInfoNotification();
|
|
94 |
void ProcessNetworkRegistrationStatusNotification();
|
|
95 |
void ProcessCurrentNetworkInfoNotification();
|
|
96 |
void InvokeNotifyConditionL();
|
|
97 |
void HangupCallL();
|
|
98 |
void ActionParent(const TRequestStatus aCallStatus, const TActionEvent aEvent); //from MActionParent
|
|
99 |
public:
|
|
100 |
RArray<TPtr8> iExpNotificationCompleteList;
|
|
101 |
private: // data
|
|
102 |
TDes8* iNotifierData;
|
|
103 |
CTelephony::TNotificationEvent iEvent;
|
|
104 |
TInt& iNumberNotifierTestsActive;
|
|
105 |
TInt iNotificationCount;
|
|
106 |
TInt iNumberNotificationsBeforeFinish;
|
|
107 |
CTestDialNewCallAct* iDialNewCallAct;
|
|
108 |
CTestHangupAct* iHangupAct;
|
|
109 |
CTelephony::TCallParamsV1 iCallParams;
|
|
110 |
TTestCallParams iTestCallParams;
|
|
111 |
CTelephony::TCallParamsV1Pckg iCallParamsPckg;
|
|
112 |
TBool iCallsActive;
|
|
113 |
/**
|
|
114 |
Version of TNetworkInfo being tested.
|
|
115 |
*/
|
|
116 |
TInt iNetworkInfoVersion;
|
|
117 |
};
|
|
118 |
|
|
119 |
class CTestCancelRegisterNotifierAct : public CEtelIsvActBase
|
|
120 |
{
|
|
121 |
public: // functions
|
|
122 |
static CTestCancelRegisterNotifierAct* NewLC(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, CTelephony::TNotificationEvent aEvent);
|
|
123 |
void ConstructL();
|
|
124 |
~CTestCancelRegisterNotifierAct();
|
|
125 |
void StartNotifier(TDes8& aNotifierPckg, TRequestStatus aExpStat);
|
|
126 |
void DoCancel();
|
|
127 |
void RunL();
|
|
128 |
protected:
|
|
129 |
CTestCancelRegisterNotifierAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, CTelephony::TNotificationEvent aEvent);
|
|
130 |
public:
|
|
131 |
RArray<TPtr8> iExpNotificationCompleteList;
|
|
132 |
private:
|
|
133 |
TDes8* iNotifierPckg;
|
|
134 |
CTelephony::TNotificationEvent iEvent;
|
|
135 |
CTelephony::TCallParamsV1 iCallParams;
|
|
136 |
TTestCallParams iTestCallParams;
|
|
137 |
CTelephony::TCallParamsV1Pckg iCallParamsPckg;
|
|
138 |
};
|
|
139 |
|
|
140 |
class CTestNotifyCallClosureAct : public CEtelIsvActBase, public MActionParent
|
|
141 |
{
|
|
142 |
public: // functions
|
|
143 |
static CTestNotifyCallClosureAct* NewLC(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, CTelephony::TNotificationEvent aEvent);
|
|
144 |
void ConstructL();
|
|
145 |
~CTestNotifyCallClosureAct();
|
|
146 |
void StartNotifier(TDes8& aNotifierPckg, TRequestStatus aExpStat);
|
|
147 |
void DoCancel();
|
|
148 |
void RunL();
|
|
149 |
void MakeCallL();
|
|
150 |
protected:
|
|
151 |
CTestNotifyCallClosureAct(CEtelIsvTestStep* aTestStep, CTelephony* aTelephony, CTelephony::TNotificationEvent aEvent);
|
|
152 |
void SendNotifyRequest();
|
|
153 |
void InvokeNotifyCondition();
|
|
154 |
void HangupCallL();
|
|
155 |
void ActionParent(const TRequestStatus aCallStatus, const TActionEvent aEvent); //from MActionParent
|
|
156 |
public:
|
|
157 |
RArray<TPtr8> iExpNotificationCompleteList;
|
|
158 |
private: // data
|
|
159 |
TDes8* iNotifierPckg;
|
|
160 |
CTelephony::TNotificationEvent iEvent;
|
|
161 |
TInt iNotificationCount;
|
|
162 |
TInt iNumberNotificationsBeforeFinish;
|
|
163 |
CTestDialNewCallAct* iDialNewCallAct;
|
|
164 |
CTestHangupAct* iHangupAct;
|
|
165 |
CTelephony::TCallParamsV1 iCallParams;
|
|
166 |
TTestCallParams iTestCallParams;
|
|
167 |
CTelephony::TCallParamsV1Pckg iCallParamsPckg;
|
|
168 |
TBool iCallsActive;
|
|
169 |
};
|
|
170 |
|
|
171 |
#endif // __TE_ETELISVNOTIFIERS_H_
|