1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
17 |
17 |
18 /** |
18 /** |
19 @file |
19 @file |
20 */ |
20 */ |
21 |
21 |
22 |
22 #include "OstTraceDefinitions.h" |
|
23 #ifdef OST_TRACE_COMPILER_IN_USE |
|
24 #include "cpdpfsminterfaceTraces.h" |
|
25 #endif |
23 |
26 |
24 |
27 |
25 #include "CPdpFsmInterface.h" |
28 #include "CPdpFsmInterface.h" |
26 #include "cpdpfsmfactory.h" |
29 #include "cpdpfsmfactory.h" |
27 #include "spudfsmdebuglogger.h" |
|
28 |
30 |
29 //-========================================================= |
31 //-========================================================= |
30 // Custom methods |
32 // Custom methods |
31 //-========================================================= |
33 //-========================================================= |
32 CPdpFsmInterface::CPdpFsmInterface() |
34 CPdpFsmInterface::CPdpFsmInterface() |
33 :iPdpFsmFactory(NULL), |
35 :iPdpFsmFactory(NULL), |
34 iNetworkStatus(RPacketService::EStatusUnattached), |
36 iNetworkStatus(RPacketService::EStatusUnattached), |
35 iUmtsRelease(TPacketDataConfigBase::KConfigGPRS) |
37 iUmtsRelease(TPacketDataConfigBase::KConfigGPRS) |
36 |
38 |
37 { |
39 { |
38 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::()"); |
40 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_CTOR_1, ">>CPdpFsmInterface::()"); |
|
41 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_CTOR_2, "<<CPdpFsmInterface::()"); |
39 } |
42 } |
40 |
43 |
41 CPdpFsmInterface::~CPdpFsmInterface() |
44 CPdpFsmInterface::~CPdpFsmInterface() |
42 { |
45 { |
43 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::()"); |
46 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_DTOR_1, ">>CPdpFsmInterface::()"); |
44 |
47 |
45 CPdpFsmInterface::Close(); |
48 CPdpFsmInterface::Close(); |
46 delete iPdpFsmFactory; |
49 delete iPdpFsmFactory; |
|
50 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_DTOR_2, "<<CPdpFsmInterface::()"); |
47 } |
51 } |
48 |
52 |
49 //-========================================================= |
53 //-========================================================= |
50 // MPdpFsmInterface methods |
54 // MPdpFsmInterface methods |
51 //-========================================================= |
55 //-========================================================= |
53 |
57 |
54 @param aSpudManInterface reference to SpudMan interface |
58 @param aSpudManInterface reference to SpudMan interface |
55 */ |
59 */ |
56 void CPdpFsmInterface::OpenL(TName& aTsyName, TInt aUmtsRelease) |
60 void CPdpFsmInterface::OpenL(TName& aTsyName, TInt aUmtsRelease) |
57 { |
61 { |
58 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::OpenL()"); |
62 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_OPEN_1, ">>CPdpFsmInterface::OpenL()"); |
59 |
63 |
60 iUmtsRelease = aUmtsRelease; |
64 iUmtsRelease = aUmtsRelease; |
61 iPdpFsmFactory = CPdpFsmFactory::NewL(); |
65 iPdpFsmFactory = CPdpFsmFactory::NewL(); |
62 iPdpFsmFactory->InitL(aTsyName, this); |
66 iPdpFsmFactory->InitL(aTsyName, this); |
|
67 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_OPEN_2, "<<CPdpFsmInterface::OpenL()"); |
63 } |
68 } |
64 |
69 |
65 /** closes the FSM and frees underlying resources |
70 /** closes the FSM and frees underlying resources |
66 */ |
71 */ |
67 void CPdpFsmInterface::Close() |
72 void CPdpFsmInterface::Close() |
68 { |
73 { |
69 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Close()"); |
74 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_CLOSE_1, ">>CPdpFsmInterface::Close()"); |
70 |
75 |
71 if (iPdpFsmFactory) |
76 if (iPdpFsmFactory) |
72 { |
77 { |
73 iPdpFsmFactory->Close(); |
78 iPdpFsmFactory->Close(); |
74 } |
79 } |
|
80 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_CLOSE_2, "<<CPdpFsmInterface::Close()"); |
75 } |
81 } |
76 |
82 |
77 |
83 |
78 TContextId CPdpFsmInterface::NewFsmContextL(MPdpFsmEventHandler& aPdpFsmEventHandler,SpudMan::TPdpContextType aContextType) |
84 TContextId CPdpFsmInterface::NewFsmContextL(MPdpFsmEventHandler& aPdpFsmEventHandler,SpudMan::TPdpContextType aContextType) |
79 { |
85 { |
80 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::NewFsmContext()"); |
86 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_NEWFSMCONTESTL_1, ">>CPdpFsmInterface::NewFsmContext()"); |
81 |
87 |
82 ASSERT(iPdpFsmFactory); |
88 ASSERT(iPdpFsmFactory); |
83 |
89 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_NEWFSMCONTESTL_2, "<<CPdpFsmInterface::NewFsmContext()"); |
84 return iPdpFsmFactory->NewFsmContextL(aPdpFsmEventHandler,aContextType); |
90 return iPdpFsmFactory->NewFsmContextL(aPdpFsmEventHandler,aContextType); |
85 } |
91 } |
86 |
92 |
87 |
93 |
88 /** |
94 /** |
96 */ |
102 */ |
97 TInt CPdpFsmInterface::Input(const TContextId aPdpId, const TInt aOperation, const TInt aParam) |
103 TInt CPdpFsmInterface::Input(const TContextId aPdpId, const TInt aOperation, const TInt aParam) |
98 { |
104 { |
99 TInt ret = KErrNone; |
105 TInt ret = KErrNone; |
100 |
106 |
101 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Input(aParam)"); |
107 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_INPUT_1, ">>CPdpFsmInterface::Input(aParam)"); |
102 |
108 |
103 ASSERT(iPdpFsmFactory); |
109 ASSERT(iPdpFsmFactory); |
104 |
110 |
105 |
111 |
106 // Control structure is in order of the most frequent operation first (hopefully) |
112 // Control structure is in order of the most frequent operation first (hopefully) |
169 @param aParam - RPacketQoS::TQoSR5Requested data to set |
175 @param aParam - RPacketQoS::TQoSR5Requested data to set |
170 @return - KErrBadHandle or KErrNone |
176 @return - KErrBadHandle or KErrNone |
171 */ |
177 */ |
172 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketQoS::TQoSR5Requested& aParam) |
178 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketQoS::TQoSR5Requested& aParam) |
173 { |
179 { |
174 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketQoS::TQoSR5Requested)"); |
180 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_1, ">>CPdpFsmInterface::Set(RPacketQoS::TQoSR5Requested)"); |
175 |
181 |
176 ASSERT(iPdpFsmFactory); |
182 ASSERT(iPdpFsmFactory); |
177 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
183 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
178 |
184 |
179 // TInt ret; |
185 // TInt ret; |
194 @param aParam - RPacketQoS::TQoSR5Negotiated data to set |
201 @param aParam - RPacketQoS::TQoSR5Negotiated data to set |
195 @return - KErrBadHandle or KErrNone |
202 @return - KErrBadHandle or KErrNone |
196 */ |
203 */ |
197 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketQoS::TQoSR5Negotiated& aParam) |
204 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketQoS::TQoSR5Negotiated& aParam) |
198 { |
205 { |
199 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketQoS::TQoSR5Negotiated)"); |
206 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_1_1, ">>CPdpFsmInterface::Set(RPacketQoS::TQoSR5Negotiated)"); |
200 |
207 |
201 ASSERT(iPdpFsmFactory); |
208 ASSERT(iPdpFsmFactory); |
202 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
209 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
203 // TInt ret; |
210 // TInt ret; |
204 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
211 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
223 @param aParam - RPacketQoS::TQoSR99_R4Requested data to set |
231 @param aParam - RPacketQoS::TQoSR99_R4Requested data to set |
224 @return - KErrBadHandle or KErrNone |
232 @return - KErrBadHandle or KErrNone |
225 */ |
233 */ |
226 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketQoS::TQoSR99_R4Requested& aParam) |
234 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketQoS::TQoSR99_R4Requested& aParam) |
227 { |
235 { |
228 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketQoS::TQoSR99_R4Requested)"); |
236 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_2_1, ">>CPdpFsmInterface::Set(RPacketQoS::TQoSR99_R4Requested)"); |
229 |
237 |
230 ASSERT(iPdpFsmFactory); |
238 ASSERT(iPdpFsmFactory); |
231 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
239 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
232 |
240 |
233 // TInt ret; |
241 // TInt ret; |
249 @param aParam - RPacketQoS::TQoSR99_R4Negotiated data to set |
258 @param aParam - RPacketQoS::TQoSR99_R4Negotiated data to set |
250 @return - KErrBadHandle or KErrNone |
259 @return - KErrBadHandle or KErrNone |
251 */ |
260 */ |
252 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketQoS::TQoSR99_R4Negotiated& aParam) |
261 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketQoS::TQoSR99_R4Negotiated& aParam) |
253 { |
262 { |
254 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketQoS::TQoSR99_R4Negotiated)"); |
263 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_3_1, ">>CPdpFsmInterface::Set(RPacketQoS::TQoSR99_R4Negotiated)"); |
255 |
264 |
256 ASSERT(iPdpFsmFactory); |
265 ASSERT(iPdpFsmFactory); |
257 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
266 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
258 |
267 |
259 // TInt ret; |
268 // TInt ret; |
260 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
269 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
261 // { |
270 // { |
262 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
271 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
263 // { |
272 // { |
264 // return ret; |
273 // return ret; |
265 // } |
274 // } |
266 // } |
275 // } |
267 |
276 |
268 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
277 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
269 |
278 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_3_2, "<<CPdpFsmInterface::Set(RPacketQoS::TQoSR99_R4Negotiated)"); |
270 return KErrNone; |
279 return KErrNone; |
271 } |
280 } |
272 |
281 |
273 |
282 |
274 |
283 |
285 @param aParam - TFTInfo data to set |
294 @param aParam - TFTInfo data to set |
286 @return - KErrBadHandle or KErrNone |
295 @return - KErrBadHandle or KErrNone |
287 */ |
296 */ |
288 TInt CPdpFsmInterface::Set(TContextId aPdpId, const TTFTInfo& aParam) |
297 TInt CPdpFsmInterface::Set(TContextId aPdpId, const TTFTInfo& aParam) |
289 { |
298 { |
290 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(TFTInfo)"); |
299 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_4_1, ">>CPdpFsmInterface::Set(TFTInfo)"); |
291 |
300 |
292 ASSERT(iPdpFsmFactory); |
301 ASSERT(iPdpFsmFactory); |
293 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
302 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
294 |
303 |
295 // TInt ret; |
304 // TInt ret; |
296 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
305 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
297 // { |
306 // { |
298 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
307 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
299 // { |
308 // { |
300 // return ret; |
309 // return ret; |
301 // } |
310 // } |
302 // } |
311 // } |
303 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
312 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
|
313 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_4_2, "<<CPdpFsmInterface::Set(TFTInfo)"); |
304 return KErrNone; |
314 return KErrNone; |
305 } |
315 } |
306 |
316 |
307 /** Set context parameters |
317 /** Set context parameters |
308 |
318 |
310 @param aParam - TFTOperationCode to set to go with the data |
320 @param aParam - TFTOperationCode to set to go with the data |
311 @return - KErrBadHandle or KErrNone |
321 @return - KErrBadHandle or KErrNone |
312 */ |
322 */ |
313 TInt CPdpFsmInterface::Set(TContextId aPdpId, const TTFTOperationCode& aParam) |
323 TInt CPdpFsmInterface::Set(TContextId aPdpId, const TTFTOperationCode& aParam) |
314 { |
324 { |
315 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(TTFTOperationCode)"); |
325 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_5_1, ">>CPdpFsmInterface::Set(TTFTOperationCode)"); |
316 |
326 |
317 ASSERT(iPdpFsmFactory); |
327 ASSERT(iPdpFsmFactory); |
318 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
328 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
319 |
329 |
320 // TInt ret; |
330 // TInt ret; |
321 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
331 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
322 // { |
332 // { |
323 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
333 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
324 // { |
334 // { |
325 // return ret; |
335 // return ret; |
326 // } |
336 // } |
327 // } |
337 // } |
328 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
338 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
|
339 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_5_2, "<<CPdpFsmInterface::Set(TTFTOperationCode)"); |
329 return KErrNone; |
340 return KErrNone; |
330 } |
341 } |
331 |
342 |
332 /** Set context parameters |
343 /** Set context parameters |
333 |
344 |
335 @param aParam - RPacketContext::TDataChannelV2 data to set |
346 @param aParam - RPacketContext::TDataChannelV2 data to set |
336 @return - KErrBadHandle or KErrNone |
347 @return - KErrBadHandle or KErrNone |
337 */ |
348 */ |
338 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketContext::TDataChannelV2& aParam) |
349 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketContext::TDataChannelV2& aParam) |
339 { |
350 { |
340 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketContext::TDataChannelV2)"); |
351 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_6_1, ">>CPdpFsmInterface::Set(RPacketContext::TDataChannelV2)"); |
341 |
352 |
342 ASSERT(iPdpFsmFactory); |
353 ASSERT(iPdpFsmFactory); |
343 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
354 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
344 |
355 |
345 // TInt ret; |
356 // TInt ret; |
346 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
357 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
347 // { |
358 // { |
348 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
359 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
349 // { |
360 // { |
350 // return ret; |
361 // return ret; |
351 // } |
362 // } |
352 // } |
363 // } |
353 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
364 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
|
365 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_6_2, "<<CPdpFsmInterface::Set(RPacketContext::TDataChannelV2)"); |
354 return KErrNone; |
366 return KErrNone; |
355 } |
367 } |
356 |
368 |
357 |
369 |
358 /** Set context parameters |
370 /** Set context parameters |
361 @param aParam - RPacketContext::TContextStatus data to set |
373 @param aParam - RPacketContext::TContextStatus data to set |
362 @return - KErrBadHandle or KErrNone |
374 @return - KErrBadHandle or KErrNone |
363 */ |
375 */ |
364 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketContext::TContextStatus& aParam) |
376 TInt CPdpFsmInterface::Set(TContextId aPdpId, const RPacketContext::TContextStatus& aParam) |
365 { |
377 { |
366 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketContext::TContextStatus)"); |
378 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_7_1, ">>CPdpFsmInterface::Set(RPacketContext::TContextStatus)"); |
367 |
379 |
368 ASSERT(iPdpFsmFactory); |
380 ASSERT(iPdpFsmFactory); |
369 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
381 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
370 |
382 |
371 // TInt ret; |
383 // TInt ret; |
372 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
384 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
373 // { |
385 // { |
374 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
386 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
375 // { |
387 // { |
376 // return ret; |
388 // return ret; |
377 // } |
389 // } |
378 // } |
390 // } |
379 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
391 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
|
392 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_7_2, "<<CPdpFsmInterface::Set(RPacketContext::TContextStatus)"); |
380 return KErrNone; |
393 return KErrNone; |
381 } |
394 } |
382 |
395 |
383 /** Set context parameters |
396 /** Set context parameters |
384 |
397 |
386 @param aParam - RPacketContext::TContextConfigGPRS& data to set |
399 @param aParam - RPacketContext::TContextConfigGPRS& data to set |
387 @return - KErrBadHandle or KErrNone |
400 @return - KErrBadHandle or KErrNone |
388 */ |
401 */ |
389 TInt CPdpFsmInterface::Set(TContextId aPdpId, const TPacketDataConfigBase& aParam) |
402 TInt CPdpFsmInterface::Set(TContextId aPdpId, const TPacketDataConfigBase& aParam) |
390 { |
403 { |
391 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketContext::TContextConfigGPRS)"); |
404 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACESET_8_1, ">>CPdpFsmInterface::Set(RPacketContext::TContextConfigGPRS)"); |
392 |
405 |
393 ASSERT(iPdpFsmFactory); |
406 ASSERT(iPdpFsmFactory); |
394 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
407 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
395 |
408 |
396 // TInt ret; |
409 // TInt ret; |
400 // { |
413 // { |
401 // return ret; |
414 // return ret; |
402 // } |
415 // } |
403 // } |
416 // } |
404 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
417 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
|
418 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACESET_8_2, "<<CPdpFsmInterface::Set(RPacketContext::TContextConfigGPRS)"); |
405 return KErrNone; |
419 return KErrNone; |
406 } |
420 } |
407 |
421 |
408 /** Set network status |
422 /** Set network status |
409 |
423 |
410 @param aParam - RPacketService::TStatus data to set |
424 @param aParam - RPacketService::TStatus data to set |
411 */ |
425 */ |
412 void CPdpFsmInterface::Set(const RPacketService::TStatus aParam) |
426 void CPdpFsmInterface::Set(const RPacketService::TStatus aParam) |
413 { |
427 { |
414 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketService::TStatus)"); |
428 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_9_1, ">>CPdpFsmInterface::Set(RPacketService::TStatus)"); |
415 |
429 |
416 ASSERT(iPdpFsmFactory); |
430 ASSERT(iPdpFsmFactory); |
417 |
431 |
418 iNetworkStatus = aParam; |
432 iNetworkStatus = aParam; |
|
433 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_9_2, "<<CPdpFsmInterface::Set(RPacketService::TStatus)"); |
419 } |
434 } |
420 |
435 |
421 |
436 |
422 |
437 |
423 |
438 |
429 @param aParam - RPacketQoS::TQoSR5Requested data to get |
444 @param aParam - RPacketQoS::TQoSR5Requested data to get |
430 @return - KErrBadHandle or KErrNone |
445 @return - KErrBadHandle or KErrNone |
431 */ |
446 */ |
432 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketQoS::TQoSR5Requested& aParam) const |
447 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketQoS::TQoSR5Requested& aParam) const |
433 { |
448 { |
434 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Get(RPacketQos::TQoSR5Requested)"); |
449 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_1, ">>CPdpFsmInterface::Get(RPacketQos::TQoSR5Requested)"); |
435 |
450 |
436 ASSERT(iPdpFsmFactory); |
451 ASSERT(iPdpFsmFactory); |
437 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
452 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
438 |
453 |
439 // TInt ret; |
454 // TInt ret; |
454 @param aParam - RPacketQoS::TQoSR5Negotiated data to get |
470 @param aParam - RPacketQoS::TQoSR5Negotiated data to get |
455 @return - KErrBadHandle or KErrNone |
471 @return - KErrBadHandle or KErrNone |
456 */ |
472 */ |
457 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketQoS::TQoSR5Negotiated& aParam) const |
473 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketQoS::TQoSR5Negotiated& aParam) const |
458 { |
474 { |
459 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Get(RPacketQoS::TQoSR5Negotiated)"); |
475 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_1_1, ">>CPdpFsmInterface::Get(RPacketQoS::TQoSR5Negotiated)"); |
460 |
476 |
461 ASSERT(iPdpFsmFactory); |
477 ASSERT(iPdpFsmFactory); |
462 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
478 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
463 |
479 |
464 // TInt ret; |
480 // TInt ret; |
482 @param aParam - RPacketQoS::TQoSR99_R4Requested data to get |
499 @param aParam - RPacketQoS::TQoSR99_R4Requested data to get |
483 @return - KErrBadHandle or KErrNone |
500 @return - KErrBadHandle or KErrNone |
484 */ |
501 */ |
485 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketQoS::TQoSR99_R4Requested& aParam) const |
502 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketQoS::TQoSR99_R4Requested& aParam) const |
486 { |
503 { |
487 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Get(RPacketQos::TQoSRequestedR99_R4)"); |
504 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_2_1, ">>CPdpFsmInterface::Get(RPacketQos::TQoSRequestedR99_R4)"); |
488 |
505 |
489 ASSERT(iPdpFsmFactory); |
506 ASSERT(iPdpFsmFactory); |
490 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
507 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
491 |
508 |
492 // TInt ret; |
509 // TInt ret; |
493 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
510 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
494 // { |
511 // { |
495 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
512 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
496 // { |
513 // { |
497 // return ret; |
514 // return ret; |
498 // } |
515 // } |
499 // } |
516 // } |
500 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
517 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
|
518 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_2_2, "<<CPdpFsmInterface::Get(RPacketQos::TQoSRequestedR99_R4)"); |
501 return KErrNone; |
519 return KErrNone; |
502 } |
520 } |
503 |
521 |
504 /** Get context parameters |
522 /** Get context parameters |
505 |
523 |
507 @param aParam - RPacketQoS::TQoSR99_R4Negotiated data to get |
525 @param aParam - RPacketQoS::TQoSR99_R4Negotiated data to get |
508 @return - KErrBadHandle or KErrNone |
526 @return - KErrBadHandle or KErrNone |
509 */ |
527 */ |
510 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketQoS::TQoSR99_R4Negotiated& aParam) const |
528 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketQoS::TQoSR99_R4Negotiated& aParam) const |
511 { |
529 { |
512 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Get(RPacketQoS::TQoSR99_R4Negotiated)"); |
530 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_3_1, ">>CPdpFsmInterface::Get(RPacketQoS::TQoSR99_R4Negotiated)"); |
513 |
531 |
514 ASSERT(iPdpFsmFactory); |
532 ASSERT(iPdpFsmFactory); |
515 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
533 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
516 |
534 |
517 // TInt ret; |
535 // TInt ret; |
518 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
536 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
519 // { |
537 // { |
520 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
538 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
521 // { |
539 // { |
522 // return ret; |
540 // return ret; |
523 // } |
541 // } |
524 // } |
542 // } |
525 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
543 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
|
544 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_3_2, "<<CPdpFsmInterface::Get(RPacketQoS::TQoSR99_R4Negotiated)"); |
526 return KErrNone; |
545 return KErrNone; |
527 } |
546 } |
528 |
547 |
529 |
548 |
530 #endif |
549 #endif |
539 @param aParam - TTFTInfo data to get |
558 @param aParam - TTFTInfo data to get |
540 @return - KErrBadHandle or KErrNone |
559 @return - KErrBadHandle or KErrNone |
541 */ |
560 */ |
542 TInt CPdpFsmInterface::Get(TContextId aPdpId, TTFTInfo& aParam) const |
561 TInt CPdpFsmInterface::Get(TContextId aPdpId, TTFTInfo& aParam) const |
543 { |
562 { |
544 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Get(TFTInfo)"); |
563 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_4_1, ">>CPdpFsmInterface::Get(TFTInfo)"); |
545 |
564 |
546 ASSERT(iPdpFsmFactory); |
565 ASSERT(iPdpFsmFactory); |
547 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
566 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
548 |
567 |
549 // TInt ret; |
568 // TInt ret; |
550 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
569 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
551 // { |
570 // { |
552 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
571 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
553 // { |
572 // { |
554 // return ret; |
573 // return ret; |
555 // } |
574 // } |
556 // } |
575 // } |
557 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
576 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
|
577 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_4_2, "<<CPdpFsmInterface::Get(TFTInfo)"); |
558 return KErrNone; |
578 return KErrNone; |
559 } |
579 } |
560 |
580 |
561 /** Get context parameters |
581 /** Get context parameters |
562 |
582 |
564 @param aParam - TTFTOperationCode for the TFT data |
584 @param aParam - TTFTOperationCode for the TFT data |
565 @return - KErrBadHandle or KErrNone |
585 @return - KErrBadHandle or KErrNone |
566 */ |
586 */ |
567 TInt CPdpFsmInterface::Get(TContextId aPdpId, TTFTOperationCode& aParam) const |
587 TInt CPdpFsmInterface::Get(TContextId aPdpId, TTFTOperationCode& aParam) const |
568 { |
588 { |
569 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Get(TFTInfo)"); |
589 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_5_1, ">>CPdpFsmInterface::Get(TFTInfo)"); |
570 |
590 |
571 ASSERT(iPdpFsmFactory); |
591 ASSERT(iPdpFsmFactory); |
572 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
592 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
573 |
593 |
574 // TInt ret; |
594 // TInt ret; |
575 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
595 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
576 // { |
596 // { |
577 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
597 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
578 // { |
598 // { |
579 // return ret; |
599 // return ret; |
580 // } |
600 // } |
581 // } |
601 // } |
582 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
602 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
|
603 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_5_2, "<<CPdpFsmInterface::Get(TFTInfo)"); |
583 return KErrNone; |
604 return KErrNone; |
584 } |
605 } |
585 |
606 |
586 |
607 |
587 /** Get context parameters |
608 /** Get context parameters |
590 @param aParam - RPacketContext::TDataChannelV2 data to set |
611 @param aParam - RPacketContext::TDataChannelV2 data to set |
591 @return - KErrBadHandle or KErrNone |
612 @return - KErrBadHandle or KErrNone |
592 */ |
613 */ |
593 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketContext::TDataChannelV2& aParam) const |
614 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketContext::TDataChannelV2& aParam) const |
594 { |
615 { |
595 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Get(RPacketContext::TDataChannelV2)"); |
616 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_6_1, ">>CPdpFsmInterface::Get(RPacketContext::TDataChannelV2)"); |
596 |
617 |
597 ASSERT(iPdpFsmFactory); |
618 ASSERT(iPdpFsmFactory); |
598 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
619 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
599 |
620 |
600 // TInt ret; |
621 // TInt ret; |
601 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
622 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
602 // { |
623 // { |
603 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
624 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
604 // { |
625 // { |
605 // return ret; |
626 // return ret; |
606 // } |
627 // } |
607 // } |
628 // } |
608 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
629 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
|
630 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_6_2, "<<CPdpFsmInterface::Get(RPacketContext::TDataChannelV2)"); |
609 return KErrNone; |
631 return KErrNone; |
610 } |
632 } |
611 |
633 |
612 /** Get context parameters |
634 /** Get context parameters |
613 |
635 |
615 @param aParam - RPacketContext::TContextConfigGPRS data to set |
637 @param aParam - RPacketContext::TContextConfigGPRS data to set |
616 @return - KErrBadHandle or KErrNone |
638 @return - KErrBadHandle or KErrNone |
617 */ |
639 */ |
618 TInt CPdpFsmInterface::Get(TContextId aPdpId, TPacketDataConfigBase& aParam) const |
640 TInt CPdpFsmInterface::Get(TContextId aPdpId, TPacketDataConfigBase& aParam) const |
619 { |
641 { |
620 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Get(RPacketContext::TContextConfigGPRS)"); |
642 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_7_1, ">>CPdpFsmInterface::Get(RPacketContext::TContextConfigGPRS)"); |
621 |
643 |
622 ASSERT( aParam.ExtensionId() == TPacketDataConfigBase::KConfigGPRS || |
644 ASSERT( aParam.ExtensionId() == TPacketDataConfigBase::KConfigGPRS || |
623 aParam.ExtensionId() == TPacketDataConfigBase::KConfigRel99Rel4 || |
645 aParam.ExtensionId() == TPacketDataConfigBase::KConfigRel99Rel4 || |
624 aParam.ExtensionId() == TPacketDataConfigBase::KConfigRel5 ); |
646 aParam.ExtensionId() == TPacketDataConfigBase::KConfigRel5 ); |
625 |
647 |
644 @param aParam - RPacketContext::TContextStatus data to get |
667 @param aParam - RPacketContext::TContextStatus data to get |
645 @return - KErrBadHandle or KErrNone |
668 @return - KErrBadHandle or KErrNone |
646 */ |
669 */ |
647 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketContext::TContextStatus& aParam) const |
670 TInt CPdpFsmInterface::Get(TContextId aPdpId, RPacketContext::TContextStatus& aParam) const |
648 { |
671 { |
649 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Get(RPacketContext::TContextStatus)"); |
672 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_8_1, ">>CPdpFsmInterface::Get(RPacketContext::TContextStatus)"); |
650 |
673 |
651 ASSERT(iPdpFsmFactory); |
674 ASSERT(iPdpFsmFactory); |
652 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
675 ASSERT(iPdpFsmFactory->ContextIdIsValid(aPdpId)); |
653 |
676 |
654 // TInt ret; |
677 // TInt ret; |
655 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
678 // if (!iPdpFsmFactory->HaveFsmContext(aPdpId)) |
656 // { |
679 // { |
657 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
680 // if ((ret = iPdpFsmFactory->NewFsmContext(aPdpId)) != KErrNone) |
658 // { |
681 // { |
659 // return ret; |
682 // return ret; |
660 // } |
683 // } |
661 // } |
684 // } |
662 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
685 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
|
686 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_8_2, "<CPdpFsmInterface::Get(RPacketContext::TContextStatus)"); |
663 return KErrNone; |
687 return KErrNone; |
664 } |
688 } |
665 |
689 |
666 /** Get context parameters |
690 /** Get context parameters |
667 |
691 |
669 @param aParam - RPacketContext::TContextConfigGPRS data to set |
693 @param aParam - RPacketContext::TContextConfigGPRS data to set |
670 @return - KErrBadHandle or KErrNone |
694 @return - KErrBadHandle or KErrNone |
671 */ |
695 */ |
672 void CPdpFsmInterface::Get(RPacketService::TStatus& aParam) |
696 void CPdpFsmInterface::Get(RPacketService::TStatus& aParam) |
673 { |
697 { |
674 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Get(RPacketService::TStatus)"); |
698 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_9_1, ">>CPdpFsmInterface::Get(RPacketService::TStatus)"); |
675 |
699 |
676 ASSERT(iPdpFsmFactory); |
700 ASSERT(iPdpFsmFactory); |
677 |
701 |
678 aParam = iNetworkStatus; |
702 aParam = iNetworkStatus; |
|
703 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_9_2, "<<CPdpFsmInterface::Get(RPacketService::TStatus)"); |
679 } |
704 } |
680 |
705 |
681 |
706 |
682 /** Get the TsyName |
707 /** Get the TsyName |
683 |
708 |
684 @return - TsyName in a TName |
709 @return - TsyName in a TName |
685 */ |
710 */ |
686 const TName& CPdpFsmInterface::TsyName(void) |
711 const TName& CPdpFsmInterface::TsyName(void) |
687 { |
712 { |
688 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::TsyName"); |
713 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_TSYNAME_1, ">>CPdpFsmInterface::TsyName"); |
689 |
714 |
690 ASSERT(iPdpFsmFactory); |
715 ASSERT(iPdpFsmFactory); |
691 |
716 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_TSYNAME_2, "<<CPdpFsmInterface::TsyName"); |
692 return iPdpFsmFactory->TsyName(); |
717 return iPdpFsmFactory->TsyName(); |
693 } |
718 } |
694 |
719 |
695 |
720 |
696 /** |
721 /** |
699 @param aParam - RPacketMbmsContext::TContextConfigMbmsV1 data to set |
724 @param aParam - RPacketMbmsContext::TContextConfigMbmsV1 data to set |
700 @return - KErrBadHandle or KErrNone |
725 @return - KErrBadHandle or KErrNone |
701 */ |
726 */ |
702 TInt CPdpFsmInterface::Get(TContextId aPdpId,RPacketMbmsContext::TContextConfigMbmsV1& aParam) const |
727 TInt CPdpFsmInterface::Get(TContextId aPdpId,RPacketMbmsContext::TContextConfigMbmsV1& aParam) const |
703 { |
728 { |
704 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); |
729 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_10_1, ">>CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); |
705 |
730 |
706 ASSERT(iPdpFsmFactory); |
731 ASSERT(iPdpFsmFactory); |
707 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
732 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
|
733 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_10_2, "<<CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); |
708 return KErrNone; |
734 return KErrNone; |
709 } |
735 } |
710 |
736 |
711 |
737 |
712 /** |
738 /** |
715 @param aParam - RPacketMbmsContext::TContextConfigMbmsV1 data to set |
741 @param aParam - RPacketMbmsContext::TContextConfigMbmsV1 data to set |
716 @return - KErrBadHandle or KErrNone |
742 @return - KErrBadHandle or KErrNone |
717 */ |
743 */ |
718 TInt CPdpFsmInterface::Set(TContextId aPdpId,const RPacketMbmsContext::TContextConfigMbmsV1& aParam) |
744 TInt CPdpFsmInterface::Set(TContextId aPdpId,const RPacketMbmsContext::TContextConfigMbmsV1& aParam) |
719 { |
745 { |
720 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); |
746 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_10_1, "CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); |
721 |
747 |
722 ASSERT(iPdpFsmFactory); |
748 ASSERT(iPdpFsmFactory); |
723 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
749 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
724 return KErrNone; |
750 return KErrNone; |
725 } |
751 } |
733 @param aParam - TSessionOperatioInfo data to set |
759 @param aParam - TSessionOperatioInfo data to set |
734 @return - KErrBadHandle or KErrNone |
760 @return - KErrBadHandle or KErrNone |
735 */ |
761 */ |
736 TInt CPdpFsmInterface::Set(TContextId aPdpId, const TSessionOperatioInfo& aParam) |
762 TInt CPdpFsmInterface::Set(TContextId aPdpId, const TSessionOperatioInfo& aParam) |
737 { |
763 { |
738 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); |
764 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_11_1, ">>CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); |
739 |
765 |
740 ASSERT(iPdpFsmFactory); |
766 ASSERT(iPdpFsmFactory); |
741 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
767 iPdpFsmFactory->GetFsmContext(aPdpId)->Set(aParam); |
|
768 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_SET_11_2, "<<CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); |
742 return KErrNone; |
769 return KErrNone; |
743 } |
770 } |
744 |
771 |
745 |
772 |
746 /** |
773 /** |
749 @param aParam - TSessionOperatioInfo data to get |
776 @param aParam - TSessionOperatioInfo data to get |
750 @return - KErrBadHandle or KErrNone |
777 @return - KErrBadHandle or KErrNone |
751 */ |
778 */ |
752 TInt CPdpFsmInterface::Get(TContextId aPdpId, TSessionOperatioInfo& aParam) const |
779 TInt CPdpFsmInterface::Get(TContextId aPdpId, TSessionOperatioInfo& aParam) const |
753 { |
780 { |
754 SPUDFSMVERBOSE_FNLOG("CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); |
781 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_11_1, ">>CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); |
755 |
782 |
756 ASSERT(iPdpFsmFactory); |
783 ASSERT(iPdpFsmFactory); |
757 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
784 iPdpFsmFactory->GetFsmContext(aPdpId)->Get(aParam); |
|
785 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPFSMINTERFACE_GET_11_2, "<<CPdpFsmInterface::Set(RPacketMbmsContext::TContextConfigMbmsV1)"); |
758 return KErrNone; |
786 return KErrNone; |
759 } |
787 } |
760 |
788 |
761 |
789 |
762 |
790 |