24
|
1 |
// Copyright (c) 2007-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 |
#ifndef TPACKETSERVICETSYTESTHELPER_H
|
|
17 |
#define TPACKETSERVICETSYTESTHELPER_H
|
|
18 |
|
|
19 |
|
|
20 |
#include "ttsytesthelperbase.h"
|
|
21 |
|
|
22 |
class TPacketServiceTsyTestHelper : public TTsyTestHelperBase
|
|
23 |
{
|
|
24 |
public:
|
|
25 |
TPacketServiceTsyTestHelper(CCTSYIntegrationTestSuiteStepBase& aTestStep);
|
|
26 |
|
|
27 |
void WaitForPacketContextNotifyConnectionSpeedChange(
|
|
28 |
RPacketContext& aPacketContext,
|
|
29 |
TEtelRequestBase& aRequestStatus,
|
|
30 |
TUint& aRate,
|
|
31 |
TUint aExpectedRate,
|
|
32 |
TInt aWantedStatus );
|
|
33 |
|
|
34 |
void WaitForPacketContextNotifyStatusChange(
|
|
35 |
RPacketContext& aPacketContext,
|
|
36 |
TEtelRequestBase& aRequestStatus,
|
|
37 |
RPacketContext::TContextStatus& aContextStatus,
|
|
38 |
RPacketContext::TContextStatus aExpectedContextStatus,
|
|
39 |
TInt aWantedStatus );
|
|
40 |
|
|
41 |
void WaitForPacketContextNotifyConfigChanged(
|
|
42 |
RPacketContext& aPacketContext,
|
|
43 |
TEtelRequestBase& aRequestStatus,
|
|
44 |
TCmpBase<RPacketContext::TContextConfigGPRS> &aContextConfigGPRS,
|
|
45 |
TInt aWantedStatus );
|
|
46 |
|
|
47 |
void WaitForPacketContextNotifyConfigChanged(
|
|
48 |
RPacketContext& aPacketContext,
|
|
49 |
TEtelRequestBase& aRequestStatus,
|
|
50 |
TCmpBase<RPacketContext::TContextConfigR99_R4> &aContextConfigR99_R4,
|
|
51 |
TInt aWantedStatus );
|
|
52 |
|
|
53 |
void WaitForPacketContextNotifyConfigChanged(
|
|
54 |
RPacketContext& aPacketContext,
|
|
55 |
TEtelRequestBase& aRequestStatus,
|
|
56 |
TCmpBase<RPacketContext::TContextConfig_R5> &aContextConfig_R5,
|
|
57 |
TInt aWantedStatus );
|
|
58 |
|
|
59 |
void WaitForPacketContextNotifyDataTransferred(
|
|
60 |
RPacketContext& aPacketContext,
|
|
61 |
TEtelRequestBase& aRequestStatus,
|
|
62 |
RPacketContext::TDataVolume& aVolume,
|
|
63 |
RPacketContext::TDataVolume& aExpectedVolume,
|
|
64 |
TUint &aRcvdGranularity,
|
|
65 |
TUint &aSentGranularity,
|
|
66 |
TInt aWantedStatus );
|
|
67 |
|
|
68 |
void WaitForPacketQoSNotifyProfileChanged(
|
|
69 |
RPacketQoS& aPacketQoS,
|
|
70 |
TEtelRequestBase& aRequestStatus,
|
|
71 |
TCmpBase<RPacketQoS::TQoSGPRSNegotiated> &aQoSGPRSNegotiated,
|
|
72 |
TInt aWantedStatus );
|
|
73 |
|
|
74 |
void WaitForPacketQoSNotifyProfileChanged(
|
|
75 |
RPacketQoS& aPacketQoS,
|
|
76 |
TEtelRequestBase& aRequestStatus,
|
|
77 |
TCmpBase<RPacketQoS::TQoSR99_R4Negotiated> &aQoSR99_R4Negotiated,
|
|
78 |
TInt aWantedStatus );
|
|
79 |
|
|
80 |
void WaitForPacketQoSNotifyProfileChanged(
|
|
81 |
RPacketQoS& aPacketQoS,
|
|
82 |
TEtelRequestBase& aRequestStatus,
|
|
83 |
TCmpBase<RPacketQoS::TQoSR5Negotiated> &aQoSR5Negotiated,
|
|
84 |
TInt aWantedStatus );
|
|
85 |
|
|
86 |
void WaitForPacketServiceNotifyAttachModeChange(
|
|
87 |
RPacketService& aPacketService,
|
|
88 |
TEtelRequestBase& aRequestStatus,
|
|
89 |
RPacketService::TAttachMode& aMode,
|
|
90 |
RPacketService::TAttachMode aExpectedMode,
|
|
91 |
TInt aWantedStatus );
|
|
92 |
|
|
93 |
void WaitForPacketServiceNotifyChangeOfNtwkRegStatus(
|
|
94 |
RPacketService& aPacketService,
|
|
95 |
TEtelRequestBase& aRequestStatus,
|
|
96 |
RPacketService::TRegistrationStatus& aRegistrationStatus,
|
|
97 |
RPacketService::TRegistrationStatus aExpectedRegistrationStatus,
|
|
98 |
TInt aWantedStatus );
|
|
99 |
|
|
100 |
void WaitForPacketServiceNotifyContextActivationRequested(
|
|
101 |
RPacketService& aPacketService,
|
|
102 |
TEtelRequestBase& aRequestStatus,
|
|
103 |
TPckg<RPacketContext::TContextConfigGPRS> &aContextConfigGPRS,
|
|
104 |
TInt aWantedStatus );
|
|
105 |
|
|
106 |
void WaitForPacketServiceNotifyContextActivationRequested(
|
|
107 |
RPacketService& aPacketService,
|
|
108 |
TEtelRequestBase& aRequestStatus,
|
|
109 |
TCmpBase<RPacketContext::TContextConfigR99_R4> &aContextConfigR99_R4,
|
|
110 |
TInt aWantedStatus );
|
|
111 |
|
|
112 |
void WaitForPacketServiceNotifyContextActivationRequested(
|
|
113 |
RPacketService& aPacketService,
|
|
114 |
TEtelRequestBase& aRequestStatus,
|
|
115 |
TCmpBase<RPacketContext::TContextConfig_R5> &aContextConfig_R5,
|
|
116 |
TInt aWantedStatus );
|
|
117 |
|
|
118 |
void WaitForPacketServiceNotifyContextAdded(
|
|
119 |
RPacketService& aPacketService,
|
|
120 |
TEtelRequestBase& aRequestStatus,
|
|
121 |
TDes& aContextId,
|
|
122 |
TDes aExpectedContextId,
|
|
123 |
TInt aWantedStatus );
|
|
124 |
|
|
125 |
void WaitForPacketServiceNotifyDynamicCapsChange(
|
|
126 |
RPacketService& aPacketService,
|
|
127 |
TEtelRequestBase& aRequestStatus,
|
|
128 |
RPacketService::TDynamicCapsFlags& aCaps,
|
|
129 |
RPacketService::TDynamicCapsFlags aWantedCaps,
|
|
130 |
RPacketService::TDynamicCapsFlags aUnwantedCaps,
|
|
131 |
TInt aWantedStatus );
|
|
132 |
|
|
133 |
void WaitForPacketServiceNotifyMSClassChange(
|
|
134 |
RPacketService& aPacketService,
|
|
135 |
TEtelRequestBase& aRequestStatus,
|
|
136 |
RPacketService::TMSClass& aNewClass,
|
|
137 |
RPacketService::TMSClass aExpectedNewClass,
|
|
138 |
TInt aWantedStatus );
|
|
139 |
|
|
140 |
void WaitForPacketServiceNotifyReleaseModeChange(
|
|
141 |
RPacketService& aPacketService,
|
|
142 |
TEtelRequestBase& aRequestStatus,
|
|
143 |
RPacketService::TPacketReleaseMode& aReleaseMode,
|
|
144 |
RPacketService::TPacketReleaseMode aExpectedReleaseMode,
|
|
145 |
TInt aWantedStatus );
|
|
146 |
|
|
147 |
void WaitForPacketServiceNotifyStatusChange(
|
|
148 |
RPacketService& aPacketService,
|
|
149 |
TEtelRequestBase& aRequestStatus,
|
|
150 |
RPacketService::TStatus& aPacketStatus,
|
|
151 |
RPacketService::TStatus aExpectedPacketStatus,
|
|
152 |
TInt aWantedStatus );
|
|
153 |
|
|
154 |
void GetGprsSettings(
|
|
155 |
RMobilePhone::TMobilePhoneNetworkInfoV1 info,
|
|
156 |
TPtrC& aAccessPoint,
|
|
157 |
TPtrC& aUser,
|
|
158 |
TPtrC& aPassword,
|
|
159 |
TUint aNumber=1);
|
|
160 |
|
|
161 |
void ActivatePrimaryPacketContextL(RMobilePhone& aMobilePhone,
|
|
162 |
RPacketContext& aPacketContext,
|
|
163 |
TInt aNum = 1);
|
|
164 |
}; // class TPacketServiceTsyTestHelper
|
|
165 |
|
|
166 |
#endif
|