author | mikaruus <mika.a.ruuskanen@nokia.com> |
Wed, 21 Apr 2010 14:29:55 +0300 | |
changeset 8 | 6295dc2169f3 |
parent 0 | 63b37f68c1ce |
child 9 | 8486d82aef45 |
permissions | -rw-r--r-- |
0 | 1 |
/* |
8
6295dc2169f3
New release based on our 2010wk15 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
2 |
* Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies). |
0 | 3 |
* All rights reserved. |
4 |
* This component and the accompanying materials are made available |
|
5 |
* under the terms of the License "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 |
||
19 |
||
20 |
#ifndef CMMPACKETCONTEXTMESSHANDLERLIST_H |
|
21 |
#define CMMPACKETCONTEXTMESSHANDLERLIST_H |
|
22 |
||
23 |
// INCLUDES |
|
24 |
#include <etelpckt.h> |
|
25 |
#include <ctsy/serviceapi/mmtsy_defaults.h> |
|
26 |
#include "iscapi.h" |
|
27 |
||
28 |
// CONSTANTS |
|
29 |
_LIT(KStringExternal, "External"); // First external context |
|
30 |
_LIT(KStringExternal2, "External2"); // Second external context |
|
31 |
||
32 |
const TUint8 KTUint8NotDefined = 0xFF; |
|
33 |
const TInt KTIntNotDefined = 0xFF; |
|
34 |
||
35 |
// MACROS |
|
36 |
// None |
|
37 |
||
38 |
// DATA TYPES |
|
39 |
// Context Info List contains TMmContextInfo elements. |
|
40 |
class TMmContextInfo |
|
41 |
{ |
|
42 |
public: |
|
43 |
TUint8 iContextId; |
|
44 |
TUint8 iChannelId; |
|
45 |
TUint8 iObjectId; |
|
46 |
||
47 |
TInfoName iContextName; |
|
48 |
TInfoName iHostContextName; |
|
49 |
||
50 |
TUint8 iPipeHandle; |
|
51 |
TInt iPipeStatus; |
|
52 |
||
53 |
TUint8 iContextType; |
|
54 |
||
55 |
TUint8 iCreateContextIdTransId; |
|
56 |
TUint8 iPipeCreateTransId; |
|
57 |
TUint8 iGpdsLlConfigureTraId; |
|
58 |
TUint8 iRemovePipeTraId; |
|
59 |
||
60 |
TBool iInitialiseStarted; |
|
61 |
||
62 |
TInt iContextConfigurationType; |
|
63 |
||
64 |
RPacketContext::TContextConfigGPRS iConfig; |
|
65 |
RPacketContext::TContextConfigR99_R4 iConfig99; |
|
66 |
||
67 |
TUint8 iActivationTraId; |
|
68 |
TUint8 iPipeResetTraId; |
|
69 |
TUint8 iDeleteTraId; |
|
70 |
||
71 |
TBool iAddDNSAddress; |
|
72 |
TBool iAddPCSCFAddress; |
|
73 |
||
74 |
RIscApi iIscApi; |
|
75 |
TBool iChannelOpened; |
|
76 |
}; |
|
77 |
||
78 |
// FUNCTION PROTOTYPES |
|
79 |
// None |
|
80 |
||
81 |
// FORWARD DECLARATIONS |
|
82 |
// None |
|
83 |
||
84 |
// CLASS DECLARATION |
|
85 |
/** |
|
86 |
* Contains information list for Packet Context DOS TSY context objects. |
|
87 |
* This class provides the methods for the Packet Context Message Handler |
|
88 |
* List object (CMmPacketContextList class) to keep track of opened contexts. |
|
89 |
* When a Context object is opened it should be put on the Service's Context |
|
90 |
* List. |
|
91 |
*/ |
|
92 |
class CMmPacketContextMesshandlerList : public CBase |
|
93 |
{ |
|
94 |
public: // Constructors and destructor |
|
95 |
||
96 |
/** |
|
97 |
* Two-phased constructor. |
|
98 |
* @return CMmPacketContextMesshandlerList*: pointer to the packet |
|
99 |
* context message handler list |
|
100 |
*/ |
|
101 |
static CMmPacketContextMesshandlerList* NewL(); |
|
102 |
||
103 |
/** |
|
104 |
* Destructor. |
|
105 |
*/ |
|
106 |
~CMmPacketContextMesshandlerList(); |
|
107 |
||
108 |
public: // New functions |
|
109 |
||
110 |
/** |
|
111 |
* Adds context info to the context info list. |
|
112 |
* @param aObjectId: object id |
|
113 |
* @param aChannelId: channel id (proxy id) |
|
114 |
* @param aContextName: name of the context |
|
115 |
* @param aHostContextName: name of the host context |
|
116 |
* @return TInt: KErrNone or error code |
|
117 |
* (KErrArgument: Maximum number of contexts already |
|
118 |
* created or channel id not found from the proxy id list) |
|
119 |
*/ |
|
120 |
TInt AddObject( |
|
121 |
const TInt aObjectId, |
|
122 |
const TUint8 aChannelId, |
|
123 |
const TInfoName& aContextName, |
|
124 |
const TInfoName& aHostContextName ); |
|
125 |
||
126 |
/** |
|
127 |
* Removes context info from the context info list. |
|
128 |
* @param aContextId: context id to find information to be removed. |
|
129 |
* @return TInt: KErrNone or error code |
|
130 |
* (KErrArgument: Context not in context info list or |
|
131 |
* channel id not found from the proxy id list) |
|
132 |
*/ |
|
133 |
TInt RemoveObject( |
|
134 |
TUint8 aContextId ); |
|
135 |
||
136 |
/** |
|
137 |
* Returns number of created contexts. |
|
138 |
* @return TInt: number of created contexts in the context info list |
|
139 |
*/ |
|
140 |
TInt NumberOfContexts() const; |
|
141 |
||
142 |
/** |
|
143 |
* Sets context id to the context info list. |
|
144 |
* @param aContextId: context id |
|
145 |
* @param aTransactionId: transaction id |
|
146 |
* @return TInt: KErrNone or error code |
|
147 |
(KErrNotFound: context not found from the list) |
|
148 |
*/ |
|
149 |
TInt SetContextId( |
|
150 |
const TUint8 aContextId, |
|
151 |
const TUint8 aTransactionId ); |
|
152 |
||
153 |
/** |
|
154 |
* Gets context type by context name. |
|
155 |
* @param aContextName: name of the context |
|
156 |
* @return TUint8: context type |
|
157 |
*/ |
|
158 |
TUint8 GetContextTypeByName( |
|
159 |
const TInfoName* const aContextName ); |
|
160 |
||
161 |
/** |
|
162 |
* Gets context name by context id. |
|
163 |
* @param aContextId: context id |
|
164 |
* @param aContextName: name of the context |
|
165 |
* @return TInt: KErrNone or error code |
|
166 |
* (KErrArgument: context not found, invalid context id) |
|
167 |
*/ |
|
168 |
TInt GetContextNameByContextId( |
|
169 |
const TUint8 aContextId, |
|
170 |
TInfoName& aContextName ); |
|
171 |
||
172 |
/** |
|
173 |
* Gets host context name by context name. |
|
174 |
* @param aContextName: name of the context |
|
175 |
* @return TInfoName: name of the host context |
|
176 |
*/ |
|
177 |
TInfoName GetHostCidName( |
|
178 |
TInfoName* aContextName ) const; |
|
179 |
||
180 |
/** |
|
181 |
* Gets pipehandle by context name. |
|
182 |
* @param aContextName: name of the context |
|
183 |
* @return TUint8: pipe handle |
|
184 |
* (KInvalidPipeHandle if not found) |
|
185 |
*/ |
|
186 |
TUint8 PipeHandleByContextName( |
|
187 |
const TInfoName* aContextName ); |
|
188 |
||
189 |
/** |
|
190 |
* Gets proxy id by context name. |
|
191 |
* @param aContextName: name of the context |
|
192 |
* @return TUint8: proxy id (channel id) |
|
193 |
*/ |
|
194 |
TUint8 ProxyIdByContextName( |
|
195 |
const TInfoName* aContextName ); |
|
196 |
||
197 |
/** |
|
198 |
* Gets proxyid by pipehandle. |
|
199 |
* @param aPipeHandle: pipe handle |
|
200 |
* @return TUint8: proxy id (channel id) |
|
201 |
*/ |
|
202 |
TUint8 ProxyIdByPipeHandle( TUint8 aPipeHandle ); |
|
203 |
||
204 |
/** |
|
205 |
* Opens channel with the specified id. |
|
206 |
* @param aChannelId channel ID |
|
207 |
* @return TInt KErrNone or system-wide error code |
|
208 |
*/ |
|
209 |
TInt OpenChannel( TUint8 aChannelId ); |
|
210 |
||
211 |
/** |
|
212 |
* Closes channel with the specified id. |
|
213 |
* @param aChannelId channel ID |
|
214 |
* @return TInt KErrNone or system-wide error code |
|
215 |
*/ |
|
216 |
TInt CloseChannel( TUint8 aChannelId ); |
|
217 |
||
218 |
/* |
|
219 |
* Get context name by proxy id. |
|
220 |
* @param aProxyId: proxy id (channel id) |
|
221 |
* @param aContextName: name of the context |
|
222 |
* @return TInt: KErrNone or error code |
|
223 |
* (KErrArgument: context not found, invalid proxy id) |
|
224 |
*/ |
|
225 |
TInt ContextNameByProxyId( |
|
226 |
const TUint8 aProxyId, |
|
227 |
TInfoName& aContextName ); |
|
228 |
||
229 |
/** |
|
230 |
* Sets iCreateContextIdTransId of the specified context by context name. |
|
231 |
* @param aTransactionId: transaction id |
|
232 |
* @param aContextName: name of the context |
|
233 |
* @return TInt: KErrNone or error code |
|
234 |
* (KErrNotFound: context not found) |
|
235 |
*/ |
|
236 |
TInt SetCreateContextIdTransId( |
|
237 |
const TUint8 aTransactionId, |
|
238 |
const TInfoName* aContextName ); |
|
239 |
||
240 |
/** |
|
241 |
* Sets iPipeCreateTransId of the specified context by context name. |
|
242 |
* @param aTransactionId: transaction id |
|
243 |
* @param aContextName: name of the context |
|
244 |
* @return TInt: KErrNone or error code |
|
245 |
* (KErrNotFound: context not found) |
|
246 |
*/ |
|
247 |
TInt SetPipeCreateTransId( |
|
248 |
const TUint8 aTransactionId, |
|
249 |
const TInfoName* aContextName ); |
|
250 |
||
251 |
/** |
|
252 |
* Sets iGpdsLlConfigureTraId (Local Link) of the specified context |
|
253 |
* by context id. |
|
254 |
* @param aTransactionId: transaction id |
|
255 |
* @param aContextId: context id |
|
256 |
* @return TInt: KErrNone or error code |
|
257 |
* (KErrNotFound: context not found) |
|
258 |
*/ |
|
259 |
TInt SetGpdsLlConfigureTraId( |
|
260 |
const TUint8 aTransactionId, |
|
261 |
const TUint8 aContextId ); |
|
262 |
||
263 |
/** |
|
264 |
* Sets the iPipeRemoveTraId specified by pipe handle. |
|
265 |
* @param aTransactionId: transaction id |
|
266 |
* @param aPipeHandle: pipe handle |
|
267 |
* @return TInt: KErrNone or error code |
|
268 |
* (KErrNotFound: context not found) |
|
269 |
*/ |
|
270 |
TInt SetRemovePipeTraId( |
|
271 |
const TUint8 aTransactionId, |
|
272 |
const TInt aPipeHandle ); |
|
273 |
||
274 |
/** |
|
275 |
* Sets the iActivationTraId specified by context id. |
|
276 |
* @param aContextId: context id |
|
277 |
* @param aTransactionId: transaction id |
|
278 |
* @return TInt: KErrNone or error code |
|
279 |
* (KErrNotFound: context not found) |
|
280 |
*/ |
|
281 |
TInt SetActivationTraId( |
|
282 |
const TUint8 aContextId, |
|
283 |
const TUint8 aTransactionId ); |
|
284 |
||
285 |
/** |
|
286 |
* Gets and resets transaction used in activation |
|
287 |
* @param aContextId: context id |
|
288 |
* @return TUint8: activation transaction id |
|
289 |
* (KUInt8NotDefined if not found) |
|
290 |
*/ |
|
291 |
TUint8 GetAndResetActivationTraId( |
|
292 |
const TUint8 aContextId ); |
|
293 |
||
294 |
/** |
|
295 |
* Sets the iDeleteTraId specified by context id. |
|
296 |
* @param aContextId: context id |
|
297 |
* @param aTransactionId: transaction id |
|
298 |
* @return TInt: KErrNone or error code |
|
299 |
* (KErrNotFound: context not found) |
|
300 |
*/ |
|
301 |
TInt SetDeletionTraId( |
|
302 |
const TUint8 aContextId, |
|
303 |
const TUint8 aTransactionId ); |
|
304 |
||
305 |
/** |
|
306 |
* Gets and resets transaction used in deletion |
|
307 |
* @param aContextId: context id |
|
308 |
* @return TUint8: delete transaction id |
|
309 |
* (KUInt8NotDefined if not found) |
|
310 |
*/ |
|
311 |
TUint8 GetAndResetDeletionTraId( |
|
312 |
const TUint8 aContextId ); |
|
313 |
||
314 |
/** |
|
315 |
* Sets pipe reset transaction id for specific context by context id. |
|
316 |
* @param aContextId: context id |
|
317 |
* @param aTransId: transaction id |
|
318 |
* @return TInt: KErrNone or error code |
|
319 |
* (KErrNotFound: context not found) |
|
320 |
*/ |
|
321 |
TInt SetPipeResetTraId( |
|
322 |
const TUint8 aContextId, |
|
323 |
const TUint8 aTransId ); |
|
324 |
||
325 |
/** |
|
326 |
* Checks and resets transaction id used in pipe reset |
|
327 |
* @param aTransId: transaction id |
|
328 |
* @return TInt: KErrNone or error code |
|
329 |
* (KErrNotFound: context not found) |
|
330 |
*/ |
|
331 |
TInt CheckAndResetPipeResetTraId( |
|
332 |
const TUint8 aTransId ); |
|
333 |
||
334 |
/** |
|
335 |
* Gets CreateContextId TransActionId of the specified context by |
|
336 |
* pipe handle |
|
337 |
* @param aPipeHandle: pipe handle |
|
338 |
* @return TUint8: create context id transaction id |
|
339 |
* (KUInt8NotDefined if not found) |
|
340 |
*/ |
|
341 |
TUint8 CreateContextIdTransIdByPipeHandle( |
|
342 |
const TInt aPipeHandle ); |
|
343 |
||
344 |
/** |
|
345 |
* Gets CreateContextIdTransId of the specified context by ContextId |
|
346 |
* @param aContextId: context id |
|
347 |
* @return TUint8: create context id transaction id |
|
348 |
* (KUInt8NotDefined if not found) |
|
349 |
*/ |
|
350 |
TUint8 CreateContextIdTraIdByContextId( |
|
351 |
const TUint8 aContextId ); |
|
352 |
||
353 |
/** |
|
354 |
* Gets Pipehandle of the specified context by context id |
|
355 |
* @param aContextId: context id |
|
356 |
* @return TUint8: pipe handle |
|
357 |
* (KInvalidPipeHandle if not found) |
|
358 |
*/ |
|
359 |
TUint8 PipeHandleByContextId( |
|
360 |
const TUint8 aContextId ); |
|
361 |
||
362 |
/** |
|
363 |
* Checks if transaction id created early match with given. |
|
364 |
* @param aTransId: transaction id |
|
365 |
* @return TInt: KErrNone or error code |
|
366 |
* (KErrNotFound: if not found) |
|
367 |
*/ |
|
368 |
TInt PipeCreateTransIdOkByTransId( |
|
369 |
const TUint8 aTransId ); |
|
370 |
||
371 |
/** |
|
372 |
* Checks if transaction id created early match with given. |
|
373 |
* @param aTransId: transaction id |
|
374 |
* @return TInt: KErrNone or error code |
|
375 |
* (KErrNotFound: if not found) |
|
376 |
*/ |
|
377 |
TInt CreateContextIdTraIdOK( |
|
378 |
const TUint8 aTransId); |
|
379 |
||
380 |
/** |
|
381 |
* Checks if transaction id created early match with given. |
|
382 |
* @param aTransId: transaction id |
|
383 |
* @return TInt: KErrNone or error code |
|
384 |
* (KErrNotFound: if not found) |
|
385 |
*/ |
|
386 |
TInt GpdsLlConfigureTraIdOK( |
|
387 |
const TUint8 aTransId ); |
|
388 |
||
389 |
/** |
|
390 |
* Sets pipehandle specified by pipe create transaction Id. |
|
391 |
* @param aTransactionId: transaction id |
|
392 |
* @param aPipeHandle: pipe handle |
|
393 |
* @return TInt: KErrNone or error code |
|
394 |
* (KErrNotFound: context not found) |
|
395 |
*/ |
|
396 |
TInt SetPipeHandle( |
|
397 |
const TUint8 aTransactionId, |
|
398 |
const TUint8 aPipeHandle ); |
|
399 |
||
400 |
/** |
|
401 |
* Gets context Id specified by context name. |
|
402 |
* @param aContextName: context name |
|
403 |
* @return TUint8: context id |
|
404 |
* (GPDS_CID_VOID: context not found) |
|
405 |
*/ |
|
406 |
TUint8 GetContextIdByContextName( |
|
407 |
TInfoName* const aContextName ); |
|
408 |
||
409 |
/** |
|
410 |
* Reset pipe handle and status by pipehandle. |
|
411 |
* @param aPipeHandle: pipe handle |
|
412 |
* @return TInt: KErrNone or error code |
|
413 |
* (KErrNotFound: context not found) |
|
414 |
*/ |
|
415 |
TInt ResetPipeHandleAndStatus( |
|
416 |
const TUint8 aPipeHandle ); |
|
417 |
||
418 |
/** |
|
419 |
* Sets initialisation member for specific context by context Id. |
|
420 |
* @param aContextId: context id |
|
421 |
* @param aFlag: initialisation member value flag |
|
422 |
* @return TBool: ETrue if set, EFalse if context not found |
|
423 |
*/ |
|
424 |
TBool SetInitialiseMember( |
|
425 |
const TUint8 aContextId, |
|
426 |
const TBool aFlag ); |
|
427 |
||
428 |
/** |
|
429 |
* Gets initialisation member for specific context by pipehandle. |
|
430 |
* @param aPipeHandle: pipe handle |
|
431 |
* @return TBool: initialisation member value |
|
432 |
* (EFalse also if context not found) |
|
433 |
*/ |
|
434 |
TBool GetInitialiseMember( |
|
435 |
const TInt aPipeHandle ); |
|
436 |
||
437 |
/** |
|
438 |
* Gets contextId of the specified context by Pipehandle. |
|
439 |
* @param aPipeHandle: pipe handle |
|
440 |
* @return TUint8: context id |
|
441 |
* (GPDS_CID_VOID: context not found) |
|
442 |
*/ |
|
443 |
TUint8 ContextIdByPipeHandle( |
|
444 |
const TInt aPipeHandle ); |
|
445 |
||
446 |
/** |
|
447 |
* Reset Context id to GPDS_CID_VOID. |
|
448 |
* @param aContextId: context id |
|
449 |
* @return TInt: KErrNone or error code |
|
450 |
* (KErrNotFound: context not found) |
|
451 |
*/ |
|
452 |
TInt RemoveContextId( |
|
453 |
const TUint8 aContextId ); |
|
454 |
||
455 |
/** |
|
456 |
* Sets configuration type by contextId. |
|
457 |
* @param aContextId: context id |
|
458 |
* @param aConfigType: context configuration type |
|
459 |
* @return TBool: ETrue if set, EFalse if context not found |
|
460 |
*/ |
|
461 |
TBool SetContextConfigurationType( |
|
462 |
const TUint8 aContextId, |
|
463 |
const TInt aConfigType ); |
|
464 |
||
465 |
/** |
|
466 |
* Gets configuration type by contextId. |
|
467 |
* @param aContextId: context id |
|
468 |
* @return TInt: context configuration type |
|
469 |
*/ |
|
470 |
TInt GetContextConfigurationType( |
|
471 |
const TUint8 aContextId ); |
|
472 |
||
473 |
/** |
|
474 |
* Saves configuration for specific context. |
|
475 |
* @param aContextId: context id |
|
476 |
* @param aConfigurationType: context configuration type |
|
477 |
* @param aConfig: TPacketDataConfigBase::KConfigGPRS configuration |
|
478 |
* @param aConfig99: TPacketDataConfigBase::KConfigRel99Rel4 configuration |
|
479 |
* @return TInt: KErrNone or error code |
|
480 |
* (KErrArgument: context not found, invalid context id |
|
481 |
* or confguration type not supported) |
|
482 |
*/ |
|
483 |
TInt SaveConfig( |
|
484 |
const TUint8 aContextId, |
|
485 |
const TInt aConfigurationType, |
|
486 |
RPacketContext::TContextConfigGPRS* aConfig, |
|
487 |
RPacketContext::TContextConfigR99_R4* aConfig99 ); |
|
488 |
||
489 |
/** |
|
490 |
* Get configuration for context by context Id and configuration type. |
|
491 |
* @param aContextId: context id |
|
492 |
* @param aConfigurationType: context configuration type |
|
493 |
* @return TPacketDataConfigBase*: pointer to the configuration |
|
494 |
* (TPacketDataConfigBase::KConfigGPRS or |
|
495 |
* RPacketContext::TContextConfigR99_R4) |
|
496 |
*/ |
|
497 |
TPacketDataConfigBase* GetConfig( |
|
498 |
const TUint8 aContextId, |
|
499 |
const TInt aConfigurationType ); |
|
500 |
||
501 |
/** |
|
502 |
* Sets pipe status specified by pipe handle. |
|
503 |
* @param aPipeHandle: pipe handle |
|
504 |
* @param aPipeStatus: pipe status |
|
505 |
* @return TBool: ETrue if set, EFalse if context not found |
|
506 |
*/ |
|
507 |
TBool SetPipeStatus( |
|
508 |
const TUint8 aPipeHandle, |
|
509 |
const TInt aPipeStatus ); |
|
510 |
||
511 |
/** |
|
512 |
* Gets pipe status specified by context Id. |
|
513 |
* @param aContextId: context id |
|
514 |
* @return TInt: pipe status |
|
515 |
* (PN_PIPE_DISABLE also if context not found) |
|
516 |
*/ |
|
517 |
TInt GetPipeStatus( |
|
518 |
const TUint8 aContextId ); |
|
519 |
||
520 |
/** |
|
521 |
* Gets proxy Id specified by context Id. |
|
522 |
* @param aContextId: context id |
|
523 |
* @return TUint8: proxy id (channel id) |
|
524 |
* (GPDS_CID_VOID also if context not found) |
|
525 |
*/ |
|
526 |
TUint8 ProxyIdByContextId( |
|
527 |
const TUint8 aContextId ); |
|
528 |
||
529 |
/** |
|
530 |
* Sets context Id and name for dial-up context. |
|
531 |
* @param aContextId: context id |
|
532 |
*/ |
|
533 |
void SetDialUpContextId( |
|
534 |
const TUint8 aContextId ); |
|
535 |
||
536 |
/** |
|
537 |
* Gets context Id for dial-up context. |
|
538 |
* @return TUint8: dial-up context id |
|
539 |
*/ |
|
540 |
TUint8 GetDialUpContextId(); |
|
541 |
||
542 |
/** |
|
543 |
* Gets dial-up context name specified by context Id. |
|
544 |
* @param aContextId: context id |
|
545 |
* @param aContextName: context name |
|
546 |
* @return TInt: KErrNone or error code |
|
547 |
* (KErrNotFound: context not found) |
|
548 |
*/ |
|
549 |
TInt DialUpContextName( |
|
550 |
const TUint8 aContextId, |
|
551 |
TInfoName& aContextName ); |
|
552 |
||
553 |
/** |
|
554 |
* Gets dial-up context id specified by context name. |
|
555 |
* @param aContextName: context name |
|
556 |
* @return TUint8: context id |
|
557 |
* (GPDS_CID_VOID also if context name is invalid) |
|
558 |
*/ |
|
559 |
TUint8 GetDialUpContextIdByName( |
|
560 |
TInfoName* const aContextName ); |
|
561 |
||
562 |
/** |
|
563 |
* Removes buffered information of the context specified by name. |
|
564 |
* @param aContextName: context name |
|
565 |
*/ |
|
566 |
void RemoveObjectByName( |
|
567 |
TInfoName* aContextName ); |
|
568 |
||
569 |
/** |
|
570 |
* Adds information to specified context about DNS |
|
571 |
* @param aContextId: context id |
|
572 |
* @return TInt: KErrNone or error code |
|
573 |
* (KErrNotFound: context not found) |
|
574 |
*/ |
|
575 |
TInt SetDNSAddressInfoToContextInfo( |
|
576 |
TUint8 aContextId ); |
|
577 |
||
578 |
/** |
|
579 |
* Gets information to specified context about DNS |
|
580 |
* @param aContextId: context id |
|
581 |
* @return TBool: DNS related information value |
|
582 |
* (EFalse also if context not found) |
|
583 |
*/ |
|
584 |
TBool GetDNSAddressInfoToContextInfo( |
|
585 |
TUint8 aContextId ); |
|
586 |
||
587 |
/** |
|
588 |
* Adds information to specified context about PCSCF |
|
589 |
* @param aContextId: context id |
|
590 |
* @return TInt: KErrNone or error code |
|
591 |
* (KErrNotFound: context not found) |
|
592 |
*/ |
|
593 |
TInt SetPCSCFAddressInfoToContextInfo( |
|
594 |
TUint8 aContextId ); |
|
595 |
||
596 |
/** |
|
597 |
* Gets information to specified context about PCSCF |
|
598 |
* @param aContextId: context id |
|
599 |
* @return TBool: PCSCF related information value |
|
600 |
* (EFalse also if context not found) |
|
601 |
*/ |
|
602 |
TBool GetPCSCFAddressInfoToContextInfo( |
|
603 |
TUint8 aContextId ); |
|
604 |
||
605 |
/** |
|
606 |
* Gets context Id specified by context list index. |
|
607 |
* @param aListIndex: list index |
|
608 |
* @return TUint8: context id (GPDS_CID_VOID if context not found) |
|
609 |
*/ |
|
610 |
TUint8 ContextIdByListIndex( const TInt aListIndex ); |
|
611 |
||
612 |
/** |
|
613 |
* Gets context type by context id. |
|
614 |
* @param aContextId: id of the context |
|
615 |
* @return TUint8: context type |
|
616 |
*/ |
|
617 |
TUint8 GetContextTypeById( const TUint8 aContextId ); |
|
618 |
||
8
6295dc2169f3
New release based on our 2010wk15 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
619 |
/** |
6295dc2169f3
New release based on our 2010wk15 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
620 |
* Initialize context info list |
6295dc2169f3
New release based on our 2010wk15 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
621 |
* @param aContextId: id of the context |
6295dc2169f3
New release based on our 2010wk15 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
622 |
* @return none |
6295dc2169f3
New release based on our 2010wk15 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
623 |
*/ |
6295dc2169f3
New release based on our 2010wk15 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
624 |
void InitializeContextInfoList( const TUint8 aContextId ); |
6295dc2169f3
New release based on our 2010wk15 release
mikaruus <mika.a.ruuskanen@nokia.com>
parents:
0
diff
changeset
|
625 |
|
0 | 626 |
public: // Functions from base classes |
627 |
// None |
|
628 |
||
629 |
protected: // New functions |
|
630 |
// None |
|
631 |
||
632 |
protected: // Functions from base classes |
|
633 |
// None |
|
634 |
||
635 |
private: // New functions |
|
636 |
||
637 |
/** |
|
638 |
* C++ default constructor. |
|
639 |
*/ |
|
640 |
CMmPacketContextMesshandlerList(); |
|
641 |
||
642 |
/** |
|
643 |
* By default Symbian 2nd phase constructor is private. |
|
644 |
*/ |
|
645 |
void ConstructL(); |
|
646 |
||
647 |
/** |
|
648 |
* Initialize used lists and attributes. |
|
649 |
*/ |
|
650 |
void InitAttributesAndLists(); |
|
651 |
||
652 |
public: // Data |
|
653 |
// None |
|
654 |
||
655 |
protected: // Data |
|
656 |
// None |
|
657 |
||
658 |
private: // Data |
|
659 |
||
660 |
// A context info list. |
|
661 |
TMmContextInfo iContextInfoArray[KMmMaxNumberOfContexts]; |
|
662 |
||
663 |
// Number of created contexts in context info list. |
|
664 |
TInt iNumberOfCreatedContexts; |
|
665 |
||
666 |
// Dial-up context Id |
|
667 |
TUint8 iDialUpContextId; |
|
668 |
||
669 |
// Dial-up context Name |
|
670 |
TInfoName iDialUpContextName; |
|
671 |
||
672 |
// Secondary Dial-up context Id |
|
673 |
TUint8 iSecondaryDialUpContextId; |
|
674 |
||
675 |
// Secondary Dial-up context Name |
|
676 |
TInfoName iSecondaryDialUpContextName; |
|
677 |
||
678 |
public: // Friend classes |
|
679 |
// None |
|
680 |
||
681 |
protected: // Friend classes |
|
682 |
// None |
|
683 |
||
684 |
private: // Friend classes |
|
685 |
// None |
|
686 |
||
687 |
}; |
|
688 |
||
689 |
#endif // CMMPACKETCONTEXTLIST_H |
|
690 |
||
691 |
// End of file |