220 TInt CMmPacketContextMesshandlerList::RemoveObject( |
221 TInt CMmPacketContextMesshandlerList::RemoveObject( |
221 TUint8 aContextId ) |
222 TUint8 aContextId ) |
222 { |
223 { |
223 |
224 |
224 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveObject. Context Id: %d", aContextId ); |
225 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveObject. Context Id: %d", aContextId ); |
225 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_REMOVEOBJECT, "CMmPacketContextMesshandlerList::RemoveObject;aContextId=%hhu", aContextId ); |
226 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_REMOVEOBJECT_TD, "CMmPacketContextMesshandlerList::RemoveObject;aContextId=%hhu", aContextId ); |
226 |
227 |
227 // Set ret to KErrArgument to check that context is in list |
228 // Set ret to KErrArgument to check that context is in list |
228 TInt ret( KErrArgument ); |
229 TInt ret( KErrArgument ); |
229 |
230 |
230 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
231 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
231 { |
232 { |
232 // Find aContext from context info list |
233 // Find aContext from context info list |
233 if ( aContextId == iContextInfoArray[i].iContextId ) |
234 if ( aContextId == iContextInfoArray[i].iContextId ) |
234 { |
235 { |
235 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveObject. Context Name: %S", &iContextInfoArray[i].iContextName ); |
236 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveObject. Context Name: %S", &iContextInfoArray[i].iContextName ); |
236 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_REMOVEOBJECT, "CMmPacketContextMesshandlerList::RemoveObject;Context Name=%S", iContextInfoArray[i].iContextName ); |
237 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_REMOVEOBJECT_TD, "CMmPacketContextMesshandlerList::RemoveObject;Context Name=%S", iContextInfoArray[i].iContextName ); |
237 |
238 |
238 // Reset object information |
239 // Reset object information |
239 InitializeContextInfoList( i ); |
240 InitializeContextInfoList( i ); |
240 i = KMmMaxNumberOfContexts; |
241 i = KMmMaxNumberOfContexts; |
241 iNumberOfCreatedContexts--; |
242 iNumberOfCreatedContexts--; |
269 const TUint8 aContextId, |
270 const TUint8 aContextId, |
270 const TUint8 aTransactionId ) |
271 const TUint8 aTransactionId ) |
271 { |
272 { |
272 |
273 |
273 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetContextId. ContextId: %d", aContextId ); |
274 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetContextId. ContextId: %d", aContextId ); |
274 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETCONTEXTID, "CMmPacketContextMesshandlerList::SetContextId;aContextId=%hhu", aContextId ); |
275 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETCONTEXTID_TD, "CMmPacketContextMesshandlerList::SetContextId;aContextId=%hhu", aContextId ); |
275 |
276 |
276 TInt ret( KErrNotFound ); |
277 TInt ret( KErrNotFound ); |
277 |
278 |
278 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
279 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
279 { |
280 { |
280 // Find object from the list |
281 // Find object from the list |
281 if ( aTransactionId == iContextInfoArray[i].iCreateContextIdTransId ) |
282 if ( aTransactionId == iContextInfoArray[i].iCreateContextIdTransId ) |
282 { |
283 { |
|
284 |
283 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetContextId. ContextName: %S", &iContextInfoArray[i].iContextName ); |
285 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetContextId. ContextName: %S", &iContextInfoArray[i].iContextName ); |
284 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETCONTEXTID, "CMmPacketContextMesshandlerList::SetContextId;ContextName=%S", iContextInfoArray[i].iContextName ); |
286 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETCONTEXTID_TD, "CMmPacketContextMesshandlerList::SetContextId;ContextName=%S", iContextInfoArray[i].iContextName ); |
285 // Set context id to the context info list |
287 // Set context id to the context info list |
286 iContextInfoArray[i].iContextId = aContextId; |
288 iContextInfoArray[i].iContextId = aContextId; |
287 // Object found, return KErrNone |
289 // Object found, return KErrNone |
288 ret = KErrNone; |
290 ret = KErrNone; |
289 } |
291 } |
302 const TUint8 aContextId, |
304 const TUint8 aContextId, |
303 TInfoName& aContextName ) |
305 TInfoName& aContextName ) |
304 { |
306 { |
305 |
307 |
306 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetContextNameByContextId. ContextId: %d", aContextId ); |
308 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetContextNameByContextId. ContextId: %d", aContextId ); |
307 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTNAMEBYCONTEXTID, "CMmPacketContextMesshandlerList::GetContextNameByContextId;aContextId=%hhu", aContextId ); |
309 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTNAMEBYCONTEXTID_TD, "CMmPacketContextMesshandlerList::GetContextNameByContextId;aContextId=%hhu", aContextId ); |
308 |
310 |
309 TInt ret( KErrArgument ); |
311 TInt ret( KErrArgument ); |
310 |
312 |
311 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
313 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
312 { |
314 { |
313 // Find object from the list |
315 // Find object from the list |
314 if ( aContextId == iContextInfoArray[i].iContextId ) |
316 if ( aContextId == iContextInfoArray[i].iContextId ) |
315 { |
317 { |
316 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetContextNameByContextId. ContextName: %S", &iContextInfoArray[i].iContextName ); |
318 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetContextNameByContextId. ContextName: %S", &iContextInfoArray[i].iContextName ); |
317 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTNAMEBYCONTEXTID, "CMmPacketContextMesshandlerList::GetContextNameByContextId;ContextName=%S", iContextInfoArray[i].iContextName ); |
319 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTNAMEBYCONTEXTID_TD, "CMmPacketContextMesshandlerList::GetContextNameByContextId;ContextName=%S", iContextInfoArray[i].iContextName ); |
318 // Set context name to aName |
320 // Set context name to aName |
319 aContextName = iContextInfoArray[i].iContextName; |
321 aContextName = iContextInfoArray[i].iContextName; |
320 // Context id found, return KErrNone |
322 // Context id found, return KErrNone |
321 ret = KErrNone; |
323 ret = KErrNone; |
322 i = KMmMaxNumberOfContexts; |
324 i = KMmMaxNumberOfContexts; |
335 TUint8 CMmPacketContextMesshandlerList::PipeHandleByContextName( |
337 TUint8 CMmPacketContextMesshandlerList::PipeHandleByContextName( |
336 const TInfoName* aContextName ) |
338 const TInfoName* aContextName ) |
337 { |
339 { |
338 |
340 |
339 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::PipeHandleByContextName"); |
341 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::PipeHandleByContextName"); |
340 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_PIPEHANDLEBYCONTEXTNAME, "CMmPacketContextMesshandlerList::PipeHandleByContextName" ); |
342 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_PIPEHANDLEBYCONTEXTNAME_TD, "CMmPacketContextMesshandlerList::PipeHandleByContextName" ); |
341 |
343 |
342 TUint8 pipeHandle( KInvalidPipeHandle ); |
344 TUint8 pipeHandle( KInvalidPipeHandle ); |
343 |
345 |
344 // Find context pipehandle from context info list |
346 // Find context pipehandle from context info list |
345 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
347 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
346 { |
348 { |
347 if ( *aContextName == iContextInfoArray[i].iContextName ) |
349 if ( *aContextName == iContextInfoArray[i].iContextName ) |
348 { |
350 { |
349 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::PipeHandleByContextName, PipeHandle: %d", iContextInfoArray[i].iPipeHandle ); |
351 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::PipeHandleByContextName, PipeHandle: %d", iContextInfoArray[i].iPipeHandle ); |
350 OstTrace1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PIPEHANDLEBYCONTEXTNAME, "CMmPacketContextMesshandlerList::PipeHandleByContextName;PipeHandle=%d", iContextInfoArray[i].iPipeHandle ); |
352 OstTrace1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PIPEHANDLEBYCONTEXTNAME_TD, "CMmPacketContextMesshandlerList::PipeHandleByContextName;PipeHandle=%d", iContextInfoArray[i].iPipeHandle ); |
351 // Return object from the context info list |
353 // Return object from the context info list |
352 pipeHandle = iContextInfoArray[i].iPipeHandle; |
354 pipeHandle = iContextInfoArray[i].iPipeHandle; |
353 } |
355 } |
354 // no else |
356 // no else |
355 } |
357 } |
365 TUint8 CMmPacketContextMesshandlerList::ProxyIdByContextName( |
367 TUint8 CMmPacketContextMesshandlerList::ProxyIdByContextName( |
366 const TInfoName* aContextName ) |
368 const TInfoName* aContextName ) |
367 { |
369 { |
368 |
370 |
369 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::ProxyIdByContextName"); |
371 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::ProxyIdByContextName"); |
370 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYCONTEXTNAME, "CMmPacketContextMesshandlerList::ProxyIdByContextName" ); |
372 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYCONTEXTNAME_TD, "CMmPacketContextMesshandlerList::ProxyIdByContextName" ); |
371 |
373 |
372 TUint8 proxyId( KTUint8NotDefined ); |
374 TUint8 proxyId( KTUint8NotDefined ); |
373 |
375 |
374 // Find context proxyId from context info list |
376 // Find context proxyId from context info list |
375 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
377 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
376 { |
378 { |
377 if ( *aContextName == iContextInfoArray[i].iContextName ) |
379 if ( *aContextName == iContextInfoArray[i].iContextName ) |
378 { |
380 { |
379 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ProxyIdByContextName, ProxyId: %d", iContextInfoArray[i].iChannelId ); |
381 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ProxyIdByContextName, ProxyId: %d", iContextInfoArray[i].iChannelId ); |
380 OstTrace1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYCONTEXTNAME, "CMmPacketContextMesshandlerList::ProxyIdByContextName;ProxyId=%d", iContextInfoArray[i].iChannelId ); |
382 OstTrace1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYCONTEXTNAME_TD, "CMmPacketContextMesshandlerList::ProxyIdByContextName;ProxyId=%d", iContextInfoArray[i].iChannelId ); |
381 |
383 |
382 proxyId = iContextInfoArray[i].iChannelId; |
384 proxyId = iContextInfoArray[i].iChannelId; |
383 } |
385 } |
384 // no else |
386 // no else |
385 } |
387 } |
390 TUint8 CMmPacketContextMesshandlerList::ProxyIdByPipeHandle( |
392 TUint8 CMmPacketContextMesshandlerList::ProxyIdByPipeHandle( |
391 TUint8 aPipeHandle |
393 TUint8 aPipeHandle |
392 ) |
394 ) |
393 { |
395 { |
394 TFLOGSTRING2("TSY CMmPacketContextMesshandlerList::ProxyIdByPipeHandle 0x%x>", aPipeHandle ); |
396 TFLOGSTRING2("TSY CMmPacketContextMesshandlerList::ProxyIdByPipeHandle 0x%x>", aPipeHandle ); |
395 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYPIPEHANDLE, "CMmPacketContextMesshandlerList::ProxyIdByPipeHandle;aPipeHandle=%hhx", aPipeHandle ); |
397 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYPIPEHANDLE_TD, "CMmPacketContextMesshandlerList::ProxyIdByPipeHandle;aPipeHandle=%hhx", aPipeHandle ); |
396 |
398 |
397 TUint8 proxyId( KTUint8NotDefined ); |
399 TUint8 proxyId( KTUint8NotDefined ); |
398 // Find context proxyId from context info list |
400 // Find context proxyId from context info list |
399 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
401 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
400 { |
402 { |
401 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
403 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
402 { |
404 { |
403 TFLOGSTRING3("TSY CMmPacketContextMesshandlerList::ProxyIdByPipeHandle found 0x%x for pipehandle 0x%x", proxyId, aPipeHandle ); |
405 TFLOGSTRING3("TSY CMmPacketContextMesshandlerList::ProxyIdByPipeHandle found 0x%x for pipehandle 0x%x", proxyId, aPipeHandle ); |
404 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYPIPEHANDLE, "CMmPacketContextMesshandlerList::ProxyIdByPipeHandle;proxyId=%hhx;aPipeHandle=%hhx", proxyId, aPipeHandle ); |
406 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYPIPEHANDLE_TD, "CMmPacketContextMesshandlerList::ProxyIdByPipeHandle;proxyId=%hhx;aPipeHandle=%hhx", proxyId, aPipeHandle ); |
405 proxyId = iContextInfoArray[i].iChannelId; |
407 proxyId = iContextInfoArray[i].iChannelId; |
406 i = KMmMaxNumberOfContexts; |
408 i = KMmMaxNumberOfContexts; |
407 } |
409 } |
408 // no else |
410 // no else |
409 } |
411 } |
418 // ----------------------------------------------------------------------------- |
420 // ----------------------------------------------------------------------------- |
419 // |
421 // |
420 TInt CMmPacketContextMesshandlerList::OpenChannel( TUint8 aChannelId ) |
422 TInt CMmPacketContextMesshandlerList::OpenChannel( TUint8 aChannelId ) |
421 { |
423 { |
422 TFLOGSTRING2("TSY: MmPacketContextMesshandlerList::OpenChannel;aChannelId=%x", aChannelId); |
424 TFLOGSTRING2("TSY: MmPacketContextMesshandlerList::OpenChannel;aChannelId=%x", aChannelId); |
423 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_OPENCHANNEL, "CMmPacketContextMesshandlerList::OpenChannel;aChannelId=%hhu", aChannelId ); |
425 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_OPENCHANNEL_TD, "CMmPacketContextMesshandlerList::OpenChannel;aChannelId=%hhu", aChannelId ); |
424 TInt ret( KErrNotReady ); |
426 TInt ret( KErrNotReady ); |
425 |
427 |
426 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++) |
428 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++) |
427 { |
429 { |
428 if ( aChannelId == iContextInfoArray[i].iChannelId ) |
430 if ( aChannelId == iContextInfoArray[i].iChannelId ) |
455 // ----------------------------------------------------------------------------- |
457 // ----------------------------------------------------------------------------- |
456 // |
458 // |
457 TInt CMmPacketContextMesshandlerList::CloseChannel( TUint8 aChannelId ) |
459 TInt CMmPacketContextMesshandlerList::CloseChannel( TUint8 aChannelId ) |
458 { |
460 { |
459 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CloseChannel;aChannelId=%x", aChannelId); |
461 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CloseChannel;aChannelId=%x", aChannelId); |
460 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CLOSECHANNEL, "CMmPacketContextMesshandlerList::CloseChannel;aChannelId=%hhu", aChannelId ); |
462 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CLOSECHANNEL_TD, "CMmPacketContextMesshandlerList::CloseChannel;aChannelId=%hhu", aChannelId ); |
461 TInt ret( KErrNotFound ); |
463 TInt ret( KErrNotFound ); |
462 |
464 |
463 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
465 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
464 { |
466 { |
465 if ( aChannelId == iContextInfoArray[i].iChannelId ) |
467 if ( aChannelId == iContextInfoArray[i].iChannelId ) |
484 const TUint8 aProxyId, |
486 const TUint8 aProxyId, |
485 TInfoName& aContextName ) |
487 TInfoName& aContextName ) |
486 { |
488 { |
487 |
489 |
488 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextNameByProxyId. ProxyId: %d", aProxyId ); |
490 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextNameByProxyId. ProxyId: %d", aProxyId ); |
489 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTNAMEBYPROXYID, "CMmPacketContextMesshandlerList::ContextNameByProxyId;aProxyId=%hhu", aProxyId ); |
491 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTNAMEBYPROXYID_TD, "CMmPacketContextMesshandlerList::ContextNameByProxyId;aProxyId=%hhu", aProxyId ); |
490 |
492 |
491 TInt ret( KErrArgument ); |
493 TInt ret( KErrArgument ); |
492 |
494 |
493 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
495 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
494 { |
496 { |
495 if ( aProxyId == iContextInfoArray[i].iChannelId ) |
497 if ( aProxyId == iContextInfoArray[i].iChannelId ) |
496 { |
498 { |
497 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextNameByProxyId. ContextName: %S", &iContextInfoArray[i].iContextName ); |
499 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextNameByProxyId. ContextName: %S", &iContextInfoArray[i].iContextName ); |
498 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTNAMEBYPROXYID, "CMmPacketContextMesshandlerList::ContextNameByProxyId;ContextName=%S", iContextInfoArray[i].iContextName ); |
500 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTNAMEBYPROXYID_TD, "CMmPacketContextMesshandlerList::ContextNameByProxyId;ContextName=%S", iContextInfoArray[i].iContextName ); |
499 // Set context name to aName |
501 // Set context name to aName |
500 aContextName = iContextInfoArray[i].iContextName; |
502 aContextName = iContextInfoArray[i].iContextName; |
501 // Context id found, return KErrNone |
503 // Context id found, return KErrNone |
502 ret = KErrNone; |
504 ret = KErrNone; |
503 i = KMmMaxNumberOfContexts; |
505 i = KMmMaxNumberOfContexts; |
551 const TUint8 aTransactionId, |
553 const TUint8 aTransactionId, |
552 const TInfoName* aContextName ) |
554 const TInfoName* aContextName ) |
553 { |
555 { |
554 |
556 |
555 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetCreateContextIdTransId"); |
557 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetCreateContextIdTransId"); |
556 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETCREATECONTEXTIDTRANSID, "CMmPacketContextMesshandlerList::SetCreateContextIdTransId" ); |
558 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETCREATECONTEXTIDTRANSID_TD, "CMmPacketContextMesshandlerList::SetCreateContextIdTransId" ); |
557 |
559 |
558 TInt ret( KErrNotFound ); |
560 TInt ret( KErrNotFound ); |
559 |
561 |
560 // Find context proxyId from context info list |
562 // Find context proxyId from context info list |
561 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
563 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
562 { |
564 { |
563 if ( *aContextName == iContextInfoArray[i].iContextName ) |
565 if ( *aContextName == iContextInfoArray[i].iContextName ) |
564 { |
566 { |
565 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetCreateContextIdTransId. ContextName: %S, IdTransId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
567 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetCreateContextIdTransId. ContextName: %S, IdTransId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
566 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETCREATECONTEXTIDTRANSID, "CMmPacketContextMesshandlerList::SetCreateContextIdTransId;ContextName=%S;aTransactionId=%d", iContextInfoArray[i].iContextName, aTransactionId ); |
568 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETCREATECONTEXTIDTRANSID_TD, "CMmPacketContextMesshandlerList::SetCreateContextIdTransId;ContextName=%S;aTransactionId=%d", iContextInfoArray[i].iContextName, aTransactionId ); |
567 // Return object from the context info list |
569 // Return object from the context info list |
568 iContextInfoArray[i].iCreateContextIdTransId = aTransactionId; |
570 iContextInfoArray[i].iCreateContextIdTransId = aTransactionId; |
569 ret = KErrNone; |
571 ret = KErrNone; |
570 i = KMmMaxNumberOfContexts; |
572 i = KMmMaxNumberOfContexts; |
571 } |
573 } |
584 const TUint8 aTransactionId, |
586 const TUint8 aTransactionId, |
585 const TInfoName* aContextName ) |
587 const TInfoName* aContextName ) |
586 { |
588 { |
587 |
589 |
588 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetPipeCreateTransId"); |
590 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetPipeCreateTransId"); |
589 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPECREATETRANSID, "CMmPacketContextMesshandlerList::SetPipeCreateTransId" ); |
591 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPECREATETRANSID_TD, "CMmPacketContextMesshandlerList::SetPipeCreateTransId" ); |
590 |
592 |
591 TInt ret( KErrNotFound ); |
593 TInt ret( KErrNotFound ); |
592 |
594 |
593 // Find context proxyId from context info list |
595 // Find context proxyId from context info list |
594 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
596 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
595 { |
597 { |
596 if ( *aContextName == iContextInfoArray[i].iContextName ) |
598 if ( *aContextName == iContextInfoArray[i].iContextName ) |
597 { |
599 { |
598 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetPipeCreateTransId. ContextName: %S, CreateTransId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
600 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetPipeCreateTransId. ContextName: %S, CreateTransId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
599 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPECREATETRANSID, "CMmPacketContextMesshandlerList::SetPipeCreateTransId;ContextName=%S;aTransactionId=%hhu", iContextInfoArray[i].iContextName, aTransactionId ); |
601 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPECREATETRANSID_TD, "CMmPacketContextMesshandlerList::SetPipeCreateTransId;ContextName=%S;aTransactionId=%hhu", iContextInfoArray[i].iContextName, aTransactionId ); |
600 // Return object from the context info list |
602 // Return object from the context info list |
601 iContextInfoArray[i].iPipeCreateTransId = aTransactionId; |
603 iContextInfoArray[i].iPipeCreateTransId = aTransactionId; |
602 ret = KErrNone; |
604 ret = KErrNone; |
603 i = KMmMaxNumberOfContexts; |
605 i = KMmMaxNumberOfContexts; |
604 } |
606 } |
617 const TUint8 aTransactionId, |
619 const TUint8 aTransactionId, |
618 const TUint8 aContextId ) |
620 const TUint8 aContextId ) |
619 { |
621 { |
620 |
622 |
621 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetGpdsLlConfigureTraId. ContextId: %d", aContextId ); |
623 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetGpdsLlConfigureTraId. ContextId: %d", aContextId ); |
622 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETGPDSLLCONFIGURETRAID, "CMmPacketContextMesshandlerList::SetGpdsLlConfigureTraId;aContextId=%hhu", aContextId ); |
624 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETGPDSLLCONFIGURETRAID_TD, "CMmPacketContextMesshandlerList::SetGpdsLlConfigureTraId;aContextId=%hhu", aContextId ); |
623 |
625 |
624 TInt ret( KErrNotFound ); |
626 TInt ret( KErrNotFound ); |
625 |
627 |
626 // Find context proxyId from context info list |
628 // Find context proxyId from context info list |
627 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
629 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
628 { |
630 { |
629 if ( aContextId == iContextInfoArray[i].iContextId ) |
631 if ( aContextId == iContextInfoArray[i].iContextId ) |
630 { |
632 { |
631 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetGpdsLlConfigureTraId. ContextName: %S, L1ConfigureTransId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
633 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetGpdsLlConfigureTraId. ContextName: %S, L1ConfigureTransId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
632 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETGPDSLLCONFIGURETRAID, "CMmPacketContextMesshandlerList::SetGpdsLlConfigureTraId;ContextName=%S;aTransactionId=%hhu", iContextInfoArray[i].iContextName, aTransactionId ); |
634 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETGPDSLLCONFIGURETRAID_TD, "CMmPacketContextMesshandlerList::SetGpdsLlConfigureTraId;ContextName=%S;aTransactionId=%hhu", iContextInfoArray[i].iContextName, aTransactionId ); |
633 |
635 |
634 // Return object from the context info list |
636 // Return object from the context info list |
635 iContextInfoArray[i].iGpdsLlConfigureTraId = aTransactionId; |
637 iContextInfoArray[i].iGpdsLlConfigureTraId = aTransactionId; |
636 ret = KErrNone; |
638 ret = KErrNone; |
637 i = KMmMaxNumberOfContexts; |
639 i = KMmMaxNumberOfContexts; |
651 const TUint8 aTransactionId, |
653 const TUint8 aTransactionId, |
652 const TInt aPipeHandle ) |
654 const TInt aPipeHandle ) |
653 { |
655 { |
654 |
656 |
655 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetRemovePipeTraId. PipeHandle: %d", aPipeHandle ); |
657 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetRemovePipeTraId. PipeHandle: %d", aPipeHandle ); |
656 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETREMOVEPIPETRAID, "CMmPacketContextMesshandlerList::SetRemovePipeTraId;aPipeHandle=%d", aPipeHandle ); |
658 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETREMOVEPIPETRAID_TD, "CMmPacketContextMesshandlerList::SetRemovePipeTraId;aPipeHandle=%d", aPipeHandle ); |
657 |
659 |
658 TInt ret( KErrNotFound ); |
660 TInt ret( KErrNotFound ); |
659 |
661 |
660 // Find context proxyId from context info list |
662 // Find context proxyId from context info list |
661 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
663 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
662 { |
664 { |
663 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
665 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
664 { |
666 { |
665 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetRemovePipeTraId. ContextName: %S, RemovePipeTraId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
667 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetRemovePipeTraId. ContextName: %S, RemovePipeTraId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
666 OstTraceExt2( TRACE_NORMAL, DUP2_CMMPACKETCONTEXTMESSHANDLERLIST_SETREMOVEPIPETRAID, "CMmPacketContextMesshandlerList::SetRemovePipeTraId;ContextName=%S;aTransactionId=%hhu", iContextInfoArray[i].iContextName, aTransactionId ); |
668 OstTraceExt2( TRACE_NORMAL, DUP2_CMMPACKETCONTEXTMESSHANDLERLIST_SETREMOVEPIPETRAID_TD, "CMmPacketContextMesshandlerList::SetRemovePipeTraId;ContextName=%S;aTransactionId=%hhu", iContextInfoArray[i].iContextName, aTransactionId ); |
667 |
669 |
668 // Return object from the context info list |
670 // Return object from the context info list |
669 iContextInfoArray[i].iRemovePipeTraId = aTransactionId; |
671 iContextInfoArray[i].iRemovePipeTraId = aTransactionId; |
670 ret = KErrNone; |
672 ret = KErrNone; |
671 i = KMmMaxNumberOfContexts; |
673 i = KMmMaxNumberOfContexts; |
685 const TUint8 aContextId, |
687 const TUint8 aContextId, |
686 const TUint8 aTransactionId ) |
688 const TUint8 aTransactionId ) |
687 { |
689 { |
688 |
690 |
689 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetActivationTraId. ContextId: %d", aContextId ); |
691 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetActivationTraId. ContextId: %d", aContextId ); |
690 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETACTIVATIONTRAID, "CMmPacketContextMesshandlerList::SetActivationTraId;aContextId=%hhu", aContextId ); |
692 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETACTIVATIONTRAID_TD, "CMmPacketContextMesshandlerList::SetActivationTraId;aContextId=%hhu", aContextId ); |
691 |
693 |
692 TInt ret( KErrNotFound ); |
694 TInt ret( KErrNotFound ); |
693 |
695 |
694 // Find context proxyId from context info list |
696 // Find context proxyId from context info list |
695 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
697 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
696 { |
698 { |
697 if ( aContextId == iContextInfoArray[i].iContextId ) |
699 if ( aContextId == iContextInfoArray[i].iContextId ) |
698 { |
700 { |
699 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetActivationTraId. ContextName: %S, ActivationTraId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
701 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetActivationTraId. ContextName: %S, ActivationTraId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
700 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETACTIVATIONTRAID, "CMmPacketContextMesshandlerList::SetActivationTraId;ContextName=%S;aTransactionId=%hhu", iContextInfoArray[i].iContextName, aTransactionId ); |
702 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETACTIVATIONTRAID_TD, "CMmPacketContextMesshandlerList::SetActivationTraId;ContextName=%S;aTransactionId=%hhu", iContextInfoArray[i].iContextName, aTransactionId ); |
701 |
703 |
702 // Return object from the context info list |
704 // Return object from the context info list |
703 iContextInfoArray[i].iActivationTraId = aTransactionId; |
705 iContextInfoArray[i].iActivationTraId = aTransactionId; |
704 ret = KErrNone; |
706 ret = KErrNone; |
705 i = KMmMaxNumberOfContexts; |
707 i = KMmMaxNumberOfContexts; |
706 } |
708 } |
707 // no else |
709 // no else |
708 } |
710 } |
709 |
711 |
710 return ret; |
712 return ret; |
|
713 } |
|
714 |
|
715 // ----------------------------------------------------------------------------- |
|
716 // CMmPacketContextMesshandlerList::GetActivationTraId |
|
717 // Returns saved iActivationTraId |
|
718 // specified by context Id. |
|
719 // ----------------------------------------------------------------------------- |
|
720 // |
|
721 TUint8 CMmPacketContextMesshandlerList::GetActivationTraId( |
|
722 TUint8 aContextId ) |
|
723 { |
|
724 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetActivationTraId. ContextId: %d", aContextId ); |
|
725 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETACTIVATIONTRAID_TD, "CMmPacketContextMesshandlerList::GetActivationTraId;aContextId=%hhu", aContextId ); |
|
726 |
|
727 TUint8 transId( KTUint8NotDefined ); |
|
728 |
|
729 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
|
730 { |
|
731 if ( aContextId == iContextInfoArray[i].iContextId ) |
|
732 { |
|
733 // Return object from the context info list |
|
734 transId = iContextInfoArray[i].iActivationTraId; |
|
735 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetActivationTraId. ContextName: %S, ActivationTraId: %d", &iContextInfoArray[i].iContextName, transId ); |
|
736 |
|
737 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETACTIVATIONTRAID_TD, "CMmPacketContextMesshandlerList::GetActivationTraId;ContextName=%S;transId=%hhu", iContextInfoArray[i].iContextName, transId ); |
|
738 } |
|
739 // no else |
|
740 } |
|
741 |
|
742 return transId; |
711 } |
743 } |
712 |
744 |
713 // ----------------------------------------------------------------------------- |
745 // ----------------------------------------------------------------------------- |
714 // CMmPacketContextMesshandlerList::GetAndResetActivationTraId |
746 // CMmPacketContextMesshandlerList::GetAndResetActivationTraId |
715 // Resets the iActivationTraId and returns saved iActivationTraId |
747 // Resets the iActivationTraId and returns saved iActivationTraId |
751 const TUint8 aContextId, |
783 const TUint8 aContextId, |
752 const TUint8 aTransactionId ) |
784 const TUint8 aTransactionId ) |
753 { |
785 { |
754 |
786 |
755 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetDeletionTraId. ContextId: %d", aContextId ); |
787 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetDeletionTraId. ContextId: %d", aContextId ); |
756 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETDELETIONTRAID, "CMmPacketContextMesshandlerList::SetDeletionTraId;aContextId=%hhu", aContextId ); |
788 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETDELETIONTRAID_TD, "CMmPacketContextMesshandlerList::SetDeletionTraId;aContextId=%hhu", aContextId ); |
757 |
789 |
758 TInt ret( KErrNotFound ); |
790 TInt ret( KErrNotFound ); |
759 |
791 |
760 // Find context proxyId from context info list |
792 // Find context proxyId from context info list |
761 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
793 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
762 { |
794 { |
763 if ( aContextId == iContextInfoArray[i].iContextId ) |
795 if ( aContextId == iContextInfoArray[i].iContextId ) |
764 { |
796 { |
765 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetDeletionTraId. ContextName: %S, DeleteTraId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
797 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetDeletionTraId. ContextName: %S, DeleteTraId: %d", &iContextInfoArray[i].iContextName, aTransactionId ); |
766 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETDELETIONTRAID, "CMmPacketContextMesshandlerList::SetDeletionTraId;ContextName=%S;aTransactionId=%hhu", iContextInfoArray[i].iContextName, aTransactionId ); |
798 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETDELETIONTRAID_TD, "CMmPacketContextMesshandlerList::SetDeletionTraId;ContextName=%S;aTransactionId=%hhu", iContextInfoArray[i].iContextName, aTransactionId ); |
767 // Return object from the context info list |
799 // Return object from the context info list |
768 iContextInfoArray[i].iDeleteTraId= aTransactionId; |
800 iContextInfoArray[i].iDeleteTraId= aTransactionId; |
769 ret = KErrNone; |
801 ret = KErrNone; |
770 i = KMmMaxNumberOfContexts; |
802 i = KMmMaxNumberOfContexts; |
771 } |
803 } |
815 TUint8 CMmPacketContextMesshandlerList::CreateContextIdTransIdByPipeHandle( |
847 TUint8 CMmPacketContextMesshandlerList::CreateContextIdTransIdByPipeHandle( |
816 const TInt aPipeHandle ) |
848 const TInt aPipeHandle ) |
817 { |
849 { |
818 |
850 |
819 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CreateContextIdTransIdByPipeHandle. PipeHandle: %d", aPipeHandle ); |
851 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CreateContextIdTransIdByPipeHandle. PipeHandle: %d", aPipeHandle ); |
820 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRANSIDBYPIPEHANDLE, "CMmPacketContextMesshandlerList::CreateContextIdTransIdByPipeHandle;aPipeHandle=%d", aPipeHandle ); |
852 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRANSIDBYPIPEHANDLE_TD, "CMmPacketContextMesshandlerList::CreateContextIdTransIdByPipeHandle;aPipeHandle=%d", aPipeHandle ); |
821 |
853 |
822 TUint8 transId( KTUint8NotDefined ); |
854 TUint8 transId( KTUint8NotDefined ); |
823 |
855 |
824 // Find context pipehandle from context info list |
856 // Find context pipehandle from context info list |
825 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
857 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
827 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
859 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
828 { |
860 { |
829 // Return object from the context info list |
861 // Return object from the context info list |
830 transId = iContextInfoArray[i].iCreateContextIdTransId; |
862 transId = iContextInfoArray[i].iCreateContextIdTransId; |
831 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::CreateContextIdTransIdByPipeHandle. ContextName: %S, CreateContextIdTransId: %d", &iContextInfoArray[i].iContextName, transId ); |
863 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::CreateContextIdTransIdByPipeHandle. ContextName: %S, CreateContextIdTransId: %d", &iContextInfoArray[i].iContextName, transId ); |
832 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRANSIDBYPIPEHANDLE, "CMmPacketContextMesshandlerList::CreateContextIdTransIdByPipeHandle;ContextName=%S;transId=%hhu", iContextInfoArray[i].iContextName, transId ); |
864 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRANSIDBYPIPEHANDLE_TD, "CMmPacketContextMesshandlerList::CreateContextIdTransIdByPipeHandle;ContextName=%S;transId=%hhu", iContextInfoArray[i].iContextName, transId ); |
833 } |
865 } |
834 // no else |
866 // no else |
835 } |
867 } |
836 |
868 |
837 // Valid values to return are, 0x00, 0x01, 0xFF = Not defined |
869 // Valid values to return are, 0x00, 0x01, 0xFF = Not defined |
846 TUint8 CMmPacketContextMesshandlerList::CreateContextIdTraIdByContextId( |
878 TUint8 CMmPacketContextMesshandlerList::CreateContextIdTraIdByContextId( |
847 const TUint8 aContextId ) |
879 const TUint8 aContextId ) |
848 { |
880 { |
849 |
881 |
850 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CreateContextIdTraIdByContextId. ContextId: %d", aContextId ); |
882 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CreateContextIdTraIdByContextId. ContextId: %d", aContextId ); |
851 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRAIDBYCONTEXTID, "CMmPacketContextMesshandlerList::CreateContextIdTraIdByContextId;aContextId=%hhu", aContextId ); |
883 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRAIDBYCONTEXTID_TD, "CMmPacketContextMesshandlerList::CreateContextIdTraIdByContextId;aContextId=%hhu", aContextId ); |
852 |
884 |
853 TUint8 transId( KTUint8NotDefined ); |
885 TUint8 transId( KTUint8NotDefined ); |
854 |
886 |
855 // Find context pipehandle from context info list |
887 // Find context pipehandle from context info list |
856 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
888 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
859 { |
891 { |
860 // Return object from the context info list |
892 // Return object from the context info list |
861 transId = iContextInfoArray[i].iCreateContextIdTransId; |
893 transId = iContextInfoArray[i].iCreateContextIdTransId; |
862 |
894 |
863 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::CreateContextIdTraIdByContextId. ContextName: %S, CreateContextIdTransId: %d", &iContextInfoArray[i].iContextName, transId ); |
895 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::CreateContextIdTraIdByContextId. ContextName: %S, CreateContextIdTransId: %d", &iContextInfoArray[i].iContextName, transId ); |
864 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRAIDBYCONTEXTID, "CMmPacketContextMesshandlerList::CreateContextIdTraIdByContextId;ContextName=%S;transId=%hhu", iContextInfoArray[i].iContextName, transId ); |
896 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRAIDBYCONTEXTID_TD, "CMmPacketContextMesshandlerList::CreateContextIdTraIdByContextId;ContextName=%S;transId=%hhu", iContextInfoArray[i].iContextName, transId ); |
865 } |
897 } |
866 // no else |
898 // no else |
867 } |
899 } |
868 |
900 |
869 // Valid values to return are, 0x00, 0x01, 0xFF = Not defined |
901 // Valid values to return are, 0x00, 0x01, 0xFF = Not defined |
890 if ( aContextId == iContextInfoArray[i].iContextId ) |
922 if ( aContextId == iContextInfoArray[i].iContextId ) |
891 { |
923 { |
892 // Return object from the context info list |
924 // Return object from the context info list |
893 pipeHandle = iContextInfoArray[i].iPipeHandle; |
925 pipeHandle = iContextInfoArray[i].iPipeHandle; |
894 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::PipeHandleByContextId. ContextName: %S, PipeHandle: %d", &iContextInfoArray[i].iContextName, pipeHandle ); |
926 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::PipeHandleByContextId. ContextName: %S, PipeHandle: %d", &iContextInfoArray[i].iContextName, pipeHandle ); |
895 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PIPEHANDLEBYCONTEXTID, "CMmPacketContextMesshandlerList::PipeHandleByContextId;ContextName=%S;pipeHandle=%hhu", iContextInfoArray[i].iContextName, pipeHandle ); |
927 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PIPEHANDLEBYCONTEXTID_TD, "CMmPacketContextMesshandlerList::PipeHandleByContextId;ContextName=%S;pipeHandle=%hhu", iContextInfoArray[i].iContextName, pipeHandle ); |
896 } |
928 } |
897 // no else |
929 // no else |
898 } |
930 } |
899 |
931 |
900 // Valid values to return are, 0x00, 0x01, 0xFF = KInvalidPipeHandle |
932 // Valid values to return are, 0x00, 0x01, 0xFF = KInvalidPipeHandle |
909 TInt CMmPacketContextMesshandlerList::PipeCreateTransIdOkByTransId( |
941 TInt CMmPacketContextMesshandlerList::PipeCreateTransIdOkByTransId( |
910 const TUint8 aTransId ) |
942 const TUint8 aTransId ) |
911 { |
943 { |
912 |
944 |
913 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::PipeCreateTransIdOkByTransId. TransId: %d", aTransId ); |
945 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::PipeCreateTransIdOkByTransId. TransId: %d", aTransId ); |
914 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_PIPECREATETRANSIDOKBYTRANSID, "CMmPacketContextMesshandlerList::PipeCreateTransIdOkByTransId;aTransId=%hhu", aTransId ); |
946 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_PIPECREATETRANSIDOKBYTRANSID_TD, "CMmPacketContextMesshandlerList::PipeCreateTransIdOkByTransId;aTransId=%hhu", aTransId ); |
915 |
947 |
916 TInt ret( KErrNotFound ); |
948 TInt ret( KErrNotFound ); |
917 |
949 |
918 // Find context pipehandle from context info list |
950 // Find context pipehandle from context info list |
919 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
951 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
920 { |
952 { |
921 if ( aTransId == iContextInfoArray[i].iPipeCreateTransId ) |
953 if ( aTransId == iContextInfoArray[i].iPipeCreateTransId ) |
922 { |
954 { |
923 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::PipeCreateTransIdOkByTransId. TransId Matched"); |
955 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::PipeCreateTransIdOkByTransId. TransId Matched"); |
924 OstTrace0( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PIPECREATETRANSIDOKBYTRANSID, "CMmPacketContextMesshandlerList::PipeCreateTransIdOkByTransId, TransId Matched" ); |
956 OstTrace0( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PIPECREATETRANSIDOKBYTRANSID_TD, "CMmPacketContextMesshandlerList::PipeCreateTransIdOkByTransId, TransId Matched" ); |
925 ret = KErrNone; |
957 ret = KErrNone; |
926 } |
958 } |
927 // no else |
959 // no else |
928 } |
960 } |
929 |
961 |
938 TInt CMmPacketContextMesshandlerList::CreateContextIdTraIdOK( |
970 TInt CMmPacketContextMesshandlerList::CreateContextIdTraIdOK( |
939 const TUint8 aTransId ) |
971 const TUint8 aTransId ) |
940 { |
972 { |
941 |
973 |
942 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CreateContextIdTraIdOK. TransId: %d", aTransId ); |
974 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CreateContextIdTraIdOK. TransId: %d", aTransId ); |
943 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRAIDOK, "CMmPacketContextMesshandlerList::CreateContextIdTraIdOK;aTransId=%hhu", aTransId ); |
975 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRAIDOK_TD, "CMmPacketContextMesshandlerList::CreateContextIdTraIdOK;aTransId=%hhu", aTransId ); |
944 |
976 |
945 TInt ret( KErrNotFound ); |
977 TInt ret( KErrNotFound ); |
946 |
978 |
947 // Find context pipehandle from context info list |
979 // Find context pipehandle from context info list |
948 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
980 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
949 { |
981 { |
950 if ( aTransId == iContextInfoArray[i].iCreateContextIdTransId ) |
982 if ( aTransId == iContextInfoArray[i].iCreateContextIdTransId ) |
951 { |
983 { |
952 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::CreateContextIdTraIdOK. TransId Matched"); |
984 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::CreateContextIdTraIdOK. TransId Matched"); |
953 OstTrace0( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRAIDOK, "CMmPacketContextMesshandlerList::CreateContextIdTraIdOK, TransId Matched" ); |
985 OstTrace0( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CREATECONTEXTIDTRAIDOK_TD, "CMmPacketContextMesshandlerList::CreateContextIdTraIdOK, TransId Matched" ); |
954 ret = KErrNone; |
986 ret = KErrNone; |
955 } |
987 } |
956 // no else |
988 // no else |
957 } |
989 } |
958 |
990 |
967 TInt CMmPacketContextMesshandlerList::GpdsLlConfigureTraIdOK( |
999 TInt CMmPacketContextMesshandlerList::GpdsLlConfigureTraIdOK( |
968 const TUint8 aTransId ) |
1000 const TUint8 aTransId ) |
969 { |
1001 { |
970 |
1002 |
971 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GpdsLlConfigureTraIdOK. TransId: %d", aTransId ); |
1003 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GpdsLlConfigureTraIdOK. TransId: %d", aTransId ); |
972 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GPDSLLCONFIGURETRAIDOK, "CMmPacketContextMesshandlerList::GpdsLlConfigureTraIdOK;aTransId=%hhu", aTransId ); |
1004 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GPDSLLCONFIGURETRAIDOK_TD, "CMmPacketContextMesshandlerList::GpdsLlConfigureTraIdOK;aTransId=%hhu", aTransId ); |
973 |
1005 |
974 TInt ret( KErrNotFound ); |
1006 TInt ret( KErrNotFound ); |
975 |
1007 |
976 // Find context pipehandle from context info list |
1008 // Find context pipehandle from context info list |
977 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1009 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
978 { |
1010 { |
979 if ( aTransId == iContextInfoArray[i].iGpdsLlConfigureTraId ) |
1011 if ( aTransId == iContextInfoArray[i].iGpdsLlConfigureTraId ) |
980 { |
1012 { |
981 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GpdsLlConfigureTraIdOK. TransId Matched"); |
1013 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GpdsLlConfigureTraIdOK. TransId Matched"); |
982 OstTrace0( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GPDSLLCONFIGURETRAIDOK, "CMmPacketContextMesshandlerList::GpdsLlConfigureTraIdOK, TransId Matched" ); |
1014 OstTrace0( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GPDSLLCONFIGURETRAIDOK_TD, "CMmPacketContextMesshandlerList::GpdsLlConfigureTraIdOK, TransId Matched" ); |
983 ret = KErrNone; |
1015 ret = KErrNone; |
984 i = KMmMaxNumberOfContexts; |
1016 i = KMmMaxNumberOfContexts; |
985 } |
1017 } |
986 // no else |
1018 // no else |
987 } |
1019 } |
998 const TUint8 aTransactionId, |
1030 const TUint8 aTransactionId, |
999 const TUint8 aPipeHandle ) |
1031 const TUint8 aPipeHandle ) |
1000 { |
1032 { |
1001 |
1033 |
1002 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetPipeHandle. TransId: %d", aTransactionId ); |
1034 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetPipeHandle. TransId: %d", aTransactionId ); |
1003 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPEHANDLE, "CMmPacketContextMesshandlerList::SetPipeHandle;aTransactionId=%hhu", aTransactionId ); |
1035 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPEHANDLE_TD, "CMmPacketContextMesshandlerList::SetPipeHandle;aTransactionId=%hhu", aTransactionId ); |
1004 |
1036 |
1005 TInt ret( KErrNotFound ); |
1037 TInt ret( KErrNotFound ); |
1006 |
1038 |
1007 // Find context pipehandle from context info list |
1039 // Find context pipehandle from context info list |
1008 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1040 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1009 { |
1041 { |
1010 if ( aTransactionId == iContextInfoArray[i].iPipeCreateTransId ) |
1042 if ( aTransactionId == iContextInfoArray[i].iPipeCreateTransId ) |
1011 { |
1043 { |
1012 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetPipeHandle. ContextName: %S, PipeHandle: %d", &iContextInfoArray[i].iContextName, aPipeHandle ); |
1044 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetPipeHandle. ContextName: %S, PipeHandle: %d", &iContextInfoArray[i].iContextName, aPipeHandle ); |
1013 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPEHANDLE, "CMmPacketContextMesshandlerList::SetPipeHandle;ContextName=%S;aPipeHandle=%hhu", iContextInfoArray[i].iContextName, aPipeHandle ); |
1045 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPEHANDLE_TD, "CMmPacketContextMesshandlerList::SetPipeHandle;ContextName=%S;aPipeHandle=%hhu", iContextInfoArray[i].iContextName, aPipeHandle ); |
1014 iContextInfoArray[i].iPipeHandle = aPipeHandle; |
1046 iContextInfoArray[i].iPipeHandle = aPipeHandle; |
1015 ret = KErrNone; |
1047 ret = KErrNone; |
1016 } |
1048 } |
1017 // no else |
1049 // no else |
1018 } |
1050 } |
1029 const TUint8 aPipeHandle, |
1061 const TUint8 aPipeHandle, |
1030 const TInt aPipeStatus ) |
1062 const TInt aPipeStatus ) |
1031 { |
1063 { |
1032 |
1064 |
1033 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetPipeStatus. PipeHandle: %d", aPipeHandle ); |
1065 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetPipeStatus. PipeHandle: %d", aPipeHandle ); |
1034 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPESTATUS, "CMmPacketContextMesshandlerList::SetPipeStatus;aPipeHandle=%hhu", aPipeHandle ); |
1066 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPESTATUS_TD, "CMmPacketContextMesshandlerList::SetPipeStatus;aPipeHandle=%hhu", aPipeHandle ); |
1035 |
1067 |
1036 TBool ret( EFalse ); |
1068 TBool ret( EFalse ); |
1037 |
1069 |
1038 // Find context pipehandle from context info list |
1070 // Find context pipehandle from context info list |
1039 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1071 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1040 { |
1072 { |
1041 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
1073 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
1042 { |
1074 { |
1043 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetPipeStatus. ContextName: %S, PipeStatus: %d", &iContextInfoArray[i].iContextName, aPipeStatus ); |
1075 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetPipeStatus. ContextName: %S, PipeStatus: %d", &iContextInfoArray[i].iContextName, aPipeStatus ); |
1044 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPESTATUS, "CMmPacketContextMesshandlerList::SetPipeStatus;ContextName=%S;aPipeStatus=%d", iContextInfoArray[i].iContextName, aPipeStatus ); |
1076 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPESTATUS_TD, "CMmPacketContextMesshandlerList::SetPipeStatus;ContextName=%S;aPipeStatus=%d", iContextInfoArray[i].iContextName, aPipeStatus ); |
1045 iContextInfoArray[i].iPipeStatus = aPipeStatus ; |
1077 iContextInfoArray[i].iPipeStatus = aPipeStatus ; |
1046 ret = ETrue; |
1078 ret = ETrue; |
1047 } |
1079 } |
1048 // no else |
1080 // no else |
1049 } |
1081 } |
1059 TInt CMmPacketContextMesshandlerList::GetPipeStatus( |
1091 TInt CMmPacketContextMesshandlerList::GetPipeStatus( |
1060 const TUint8 aContextId ) |
1092 const TUint8 aContextId ) |
1061 { |
1093 { |
1062 |
1094 |
1063 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetPipeStatus. ContextId: %d", aContextId ); |
1095 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetPipeStatus. ContextId: %d", aContextId ); |
1064 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETPIPESTATUS, "CMmPacketContextMesshandlerList::GetPipeStatus;aContextId=%hhu", aContextId ); |
1096 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETPIPESTATUS_TD, "CMmPacketContextMesshandlerList::GetPipeStatus;aContextId=%hhu", aContextId ); |
1065 |
1097 |
1066 TInt pipeStatus( PN_PIPE_DISABLE ); |
1098 TInt pipeStatus( PN_PIPE_DISABLE ); |
1067 |
1099 |
1068 // Find context pipehandle from context info list |
1100 // Find context pipehandle from context info list |
1069 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1101 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1070 { |
1102 { |
1071 if ( aContextId == iContextInfoArray[i].iContextId ) |
1103 if ( aContextId == iContextInfoArray[i].iContextId ) |
1072 { |
1104 { |
1073 pipeStatus = iContextInfoArray[i].iPipeStatus; |
1105 pipeStatus = iContextInfoArray[i].iPipeStatus; |
1074 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetPipeStatus. ContextName: %S, PipeStatus: %d", &iContextInfoArray[i].iContextName, pipeStatus ); |
1106 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetPipeStatus. ContextName: %S, PipeStatus: %d", &iContextInfoArray[i].iContextName, pipeStatus ); |
1075 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETPIPESTATUS, "CMmPacketContextMesshandlerList::GetPipeStatus;ContextName=%S;pipeStatus=%d", iContextInfoArray[i].iContextName, pipeStatus ); |
1107 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETPIPESTATUS_TD, "CMmPacketContextMesshandlerList::GetPipeStatus;ContextName=%S;pipeStatus=%d", iContextInfoArray[i].iContextName, pipeStatus ); |
1076 } |
1108 } |
1077 // no else |
1109 // no else |
1078 } |
1110 } |
1079 |
1111 |
1080 return pipeStatus; |
1112 return pipeStatus; |
1088 TUint8 CMmPacketContextMesshandlerList::GetContextIdByContextName( |
1120 TUint8 CMmPacketContextMesshandlerList::GetContextIdByContextName( |
1089 TInfoName* const aContextName ) |
1121 TInfoName* const aContextName ) |
1090 { |
1122 { |
1091 |
1123 |
1092 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetContextIdByContextName"); |
1124 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetContextIdByContextName"); |
1093 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTIDBYCONTEXTNAME, "CMmPacketContextMesshandlerList::GetContextIdByContextName" ); |
1125 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTIDBYCONTEXTNAME_TD, "CMmPacketContextMesshandlerList::GetContextIdByContextName" ); |
1094 |
1126 |
1095 TUint contextId( GPDS_CID_VOID ); |
1127 TUint contextId( GPDS_CID_VOID ); |
1096 |
1128 |
1097 // Find name from context info list |
1129 // Find name from context info list |
1098 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1130 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1099 { |
1131 { |
1100 if ( *aContextName == iContextInfoArray[i].iContextName ) |
1132 if ( *aContextName == iContextInfoArray[i].iContextName ) |
1101 { |
1133 { |
1102 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetContextIdByContextName. ContextName: %S, ContextId: %d", &iContextInfoArray[i].iContextName, iContextInfoArray[i].iContextId ); |
1134 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetContextIdByContextName. ContextName: %S, ContextId: %d", &iContextInfoArray[i].iContextName, iContextInfoArray[i].iContextId ); |
1103 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTIDBYCONTEXTNAME, "CMmPacketContextMesshandlerList::GetContextIdByContextName;ContextName=%S;contextId=%d", iContextInfoArray[i].iContextName, iContextInfoArray[i].iContextId ); |
1135 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTIDBYCONTEXTNAME_TD, "CMmPacketContextMesshandlerList::GetContextIdByContextName;ContextName=%S;contextId=%d", iContextInfoArray[i].iContextName, iContextInfoArray[i].iContextId ); |
1104 |
1136 |
1105 // Name found, return object |
1137 // Name found, return object |
1106 contextId = iContextInfoArray[i].iContextId; |
1138 contextId = iContextInfoArray[i].iContextId; |
1107 } |
1139 } |
1108 // no else |
1140 // no else |
1119 TInfoName CMmPacketContextMesshandlerList::GetHostCidName( |
1151 TInfoName CMmPacketContextMesshandlerList::GetHostCidName( |
1120 TInfoName* aContextName ) const |
1152 TInfoName* aContextName ) const |
1121 { |
1153 { |
1122 |
1154 |
1123 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetHostCidName"); |
1155 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetHostCidName"); |
1124 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETHOSTCIDNAME, "CMmPacketContextMesshandlerList::GetHostCidName" ); |
1156 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETHOSTCIDNAME_TD, "CMmPacketContextMesshandlerList::GetHostCidName" ); |
1125 |
1157 |
1126 TInfoName hostName; |
1158 TInfoName hostName; |
1127 hostName.Zero(); |
1159 hostName.Zero(); |
1128 |
1160 |
1129 // Find name from context info list |
1161 // Find name from context info list |
1130 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1162 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1131 { |
1163 { |
1132 if ( *aContextName == iContextInfoArray[i].iContextName ) |
1164 if ( *aContextName == iContextInfoArray[i].iContextName ) |
1133 { |
1165 { |
1134 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetHostCidName. ContextName: %S, HostContextName: %S", &iContextInfoArray[i].iContextName, &iContextInfoArray[i].iHostContextName ); |
1166 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetHostCidName. ContextName: %S, HostContextName: %S", &iContextInfoArray[i].iContextName, &iContextInfoArray[i].iHostContextName ); |
1135 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETHOSTCIDNAME, "CMmPacketContextMesshandlerList::GetHostCidName;ContextName=%S;HostContextName=%S", iContextInfoArray[i].iContextName, iContextInfoArray[i].iHostContextName ); |
1167 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETHOSTCIDNAME_TD, "CMmPacketContextMesshandlerList::GetHostCidName;ContextName=%S;HostContextName=%S", iContextInfoArray[i].iContextName, iContextInfoArray[i].iHostContextName ); |
1136 // Name found |
1168 // Name found |
1137 hostName.Copy( iContextInfoArray[i].iHostContextName ); |
1169 hostName.Copy( iContextInfoArray[i].iHostContextName ); |
1138 } |
1170 } |
1139 // no else |
1171 // no else |
1140 } |
1172 } |
1150 TInt CMmPacketContextMesshandlerList::RemoveContextId( |
1182 TInt CMmPacketContextMesshandlerList::RemoveContextId( |
1151 const TUint8 aContextId ) |
1183 const TUint8 aContextId ) |
1152 { |
1184 { |
1153 |
1185 |
1154 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveContextId. ContextId: %d", aContextId ); |
1186 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveContextId. ContextId: %d", aContextId ); |
1155 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_REMOVECONTEXTID, "CMmPacketContextMesshandlerList::RemoveContextId;aContextId=%hhu", aContextId ); |
1187 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_REMOVECONTEXTID_TD, "CMmPacketContextMesshandlerList::RemoveContextId;aContextId=%hhu", aContextId ); |
1156 |
1188 |
1157 TInt ret( KErrNotFound ); |
1189 TInt ret( KErrNotFound ); |
1158 |
1190 |
1159 // Find name from context info list |
1191 // Find name from context info list |
1160 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1192 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1161 { |
1193 { |
1162 if ( aContextId == iContextInfoArray[i].iContextId ) |
1194 if ( aContextId == iContextInfoArray[i].iContextId ) |
1163 { |
1195 { |
1164 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::RemoveContextId. ContextName: %S, ContextId: %d", &iContextInfoArray[i].iContextName, aContextId ); |
1196 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::RemoveContextId. ContextName: %S, ContextId: %d", &iContextInfoArray[i].iContextName, aContextId ); |
1165 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_REMOVECONTEXTID, "CMmPacketContextMesshandlerList::RemoveContextId;ContextName=%S;aContextId=%hhu", iContextInfoArray[i].iContextName, aContextId ); |
1197 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_REMOVECONTEXTID_TD, "CMmPacketContextMesshandlerList::RemoveContextId;ContextName=%S;aContextId=%hhu", iContextInfoArray[i].iContextName, aContextId ); |
1166 // Name found |
1198 // Name found |
1167 iContextInfoArray[i].iContextId = GPDS_CID_VOID; |
1199 iContextInfoArray[i].iContextId = GPDS_CID_VOID; |
1168 i = KMmMaxNumberOfContexts; |
1200 i = KMmMaxNumberOfContexts; |
1169 ret = KErrNone; |
1201 ret = KErrNone; |
1170 } |
1202 } |
1175 if( KErrNotFound == ret ) |
1207 if( KErrNotFound == ret ) |
1176 { |
1208 { |
1177 if( aContextId == iDialUpContextId ) |
1209 if( aContextId == iDialUpContextId ) |
1178 { |
1210 { |
1179 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveContextId. Dial-Up Context, ContextId: %d", aContextId ); |
1211 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveContextId. Dial-Up Context, ContextId: %d", aContextId ); |
1180 OstTraceExt1( TRACE_NORMAL, DUP2_CMMPACKETCONTEXTMESSHANDLERLIST_REMOVECONTEXTID, "CMmPacketContextMesshandlerList::RemoveContextId;Dial-Up Context, ContextId=%hhu", aContextId ); |
1212 OstTraceExt1( TRACE_NORMAL, DUP2_CMMPACKETCONTEXTMESSHANDLERLIST_REMOVECONTEXTID_TD, "CMmPacketContextMesshandlerList::RemoveContextId;Dial-Up Context, ContextId=%hhu", aContextId ); |
1181 iDialUpContextId = GPDS_CID_VOID; |
1213 iDialUpContextId = GPDS_CID_VOID; |
1182 iDialUpContextName.Zero(); |
1214 iDialUpContextName.Zero(); |
1183 ret = KErrNone; |
1215 ret = KErrNone; |
1184 } |
1216 } |
1185 // no else |
1217 // no else |
1186 |
1218 |
1187 if( aContextId == iSecondaryDialUpContextId ) |
1219 if( aContextId == iSecondaryDialUpContextId ) |
1188 { |
1220 { |
1189 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveContextId. Secondary Dial-Up Context, ContextId: %d", aContextId ); |
1221 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveContextId. Secondary Dial-Up Context, ContextId: %d", aContextId ); |
1190 OstTraceExt1( TRACE_NORMAL, DUP3_CMMPACKETCONTEXTMESSHANDLERLIST_REMOVECONTEXTID, "CMmPacketContextMesshandlerList::RemoveContextId;Secondary Dial-Up Context, ContextId=%hhu", aContextId ); |
1222 OstTraceExt1( TRACE_NORMAL, DUP3_CMMPACKETCONTEXTMESSHANDLERLIST_REMOVECONTEXTID_TD, "CMmPacketContextMesshandlerList::RemoveContextId;Secondary Dial-Up Context, ContextId=%hhu", aContextId ); |
1191 iSecondaryDialUpContextId = GPDS_CID_VOID; |
1223 iSecondaryDialUpContextId = GPDS_CID_VOID; |
1192 iSecondaryDialUpContextName.Zero(); |
1224 iSecondaryDialUpContextName.Zero(); |
1193 ret = KErrNone; |
1225 ret = KErrNone; |
1194 } |
1226 } |
1195 // no else |
1227 // no else |
1207 TInt CMmPacketContextMesshandlerList::ResetPipeHandleAndStatus( |
1239 TInt CMmPacketContextMesshandlerList::ResetPipeHandleAndStatus( |
1208 const TUint8 aPipeHandle ) |
1240 const TUint8 aPipeHandle ) |
1209 { |
1241 { |
1210 |
1242 |
1211 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ResetPipeHandleAndStatus. PipeHandle: %d", aPipeHandle ); |
1243 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ResetPipeHandleAndStatus. PipeHandle: %d", aPipeHandle ); |
1212 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_RESETPIPEHANDLEANDSTATUS, "CMmPacketContextMesshandlerList::ResetPipeHandleAndStatus;aPipeHandle=%hhu", aPipeHandle ); |
1244 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_RESETPIPEHANDLEANDSTATUS_TD, "CMmPacketContextMesshandlerList::ResetPipeHandleAndStatus;aPipeHandle=%hhu", aPipeHandle ); |
1213 |
1245 |
1214 TInt ret( KErrNotFound ); |
1246 TInt ret( KErrNotFound ); |
1215 |
1247 |
1216 // Find name from context info list |
1248 // Find name from context info list |
1217 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1249 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1218 { |
1250 { |
1219 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
1251 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
1220 { |
1252 { |
1221 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ResetPipeHandleAndStatus. ContextName: %S", &iContextInfoArray[i].iContextName ); |
1253 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ResetPipeHandleAndStatus. ContextName: %S", &iContextInfoArray[i].iContextName ); |
1222 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_RESETPIPEHANDLEANDSTATUS, "CMmPacketContextMesshandlerList::ResetPipeHandleAndStatus;ContextName=%S", iContextInfoArray[i].iContextName ); |
1254 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_RESETPIPEHANDLEANDSTATUS_TD, "CMmPacketContextMesshandlerList::ResetPipeHandleAndStatus;ContextName=%S", iContextInfoArray[i].iContextName ); |
1223 |
1255 |
1224 // Pipe found |
1256 // Pipe found |
1225 iContextInfoArray[i].iPipeHandle = KInvalidPipeHandle; |
1257 iContextInfoArray[i].iPipeHandle = KInvalidPipeHandle; |
1226 iContextInfoArray[i].iPipeStatus = PN_PIPE_DISABLE; |
1258 iContextInfoArray[i].iPipeStatus = PN_PIPE_DISABLE; |
1227 i = KMmMaxNumberOfContexts; |
1259 i = KMmMaxNumberOfContexts; |
1242 const TUint8 aContextId, |
1274 const TUint8 aContextId, |
1243 const TBool aFlag ) |
1275 const TBool aFlag ) |
1244 { |
1276 { |
1245 |
1277 |
1246 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetInitialiseMember. ContextId: %d", aContextId ); |
1278 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetInitialiseMember. ContextId: %d", aContextId ); |
1247 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETINITIALISEMEMBER, "CMmPacketContextMesshandlerList::SetInitialiseMember;aContextId=%hhu", aContextId ); |
1279 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETINITIALISEMEMBER_TD, "CMmPacketContextMesshandlerList::SetInitialiseMember;aContextId=%hhu", aContextId ); |
1248 |
1280 |
1249 TBool ret( EFalse ); |
1281 TBool ret( EFalse ); |
1250 |
1282 |
1251 // Find context pipehandle from context info list |
1283 // Find context pipehandle from context info list |
1252 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1284 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1253 { |
1285 { |
1254 if ( aContextId == iContextInfoArray[i].iContextId ) |
1286 if ( aContextId == iContextInfoArray[i].iContextId ) |
1255 { |
1287 { |
1256 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetInitialiseMember. ContextName: %S, InitialiseStarted: %d", &iContextInfoArray[i].iContextName, aFlag ); |
1288 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetInitialiseMember. ContextName: %S, InitialiseStarted: %d", &iContextInfoArray[i].iContextName, aFlag ); |
1257 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETINITIALISEMEMBER, "CMmPacketContextMesshandlerList::SetInitialiseMember;ContextName=%S;aFlag=%hhu", iContextInfoArray[i].iContextName, aFlag ); |
1289 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETINITIALISEMEMBER_TD, "CMmPacketContextMesshandlerList::SetInitialiseMember;ContextName=%S;aFlag=%hhu", iContextInfoArray[i].iContextName, aFlag ); |
1258 // Return object from the context info list |
1290 // Return object from the context info list |
1259 iContextInfoArray[i].iInitialiseStarted = aFlag; |
1291 iContextInfoArray[i].iInitialiseStarted = aFlag; |
1260 ret = ETrue; |
1292 ret = ETrue; |
1261 } |
1293 } |
1262 // no else |
1294 // no else |
1273 TBool CMmPacketContextMesshandlerList::GetInitialiseMember( |
1305 TBool CMmPacketContextMesshandlerList::GetInitialiseMember( |
1274 const TInt aPipeHandle ) |
1306 const TInt aPipeHandle ) |
1275 { |
1307 { |
1276 |
1308 |
1277 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetInitialiseMember. PipeHandle: %d", aPipeHandle ); |
1309 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetInitialiseMember. PipeHandle: %d", aPipeHandle ); |
1278 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETINITIALISEMEMBER, "CMmPacketContextMesshandlerList::GetInitialiseMember;aPipeHandle=%d", aPipeHandle ); |
1310 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETINITIALISEMEMBER_TD, "CMmPacketContextMesshandlerList::GetInitialiseMember;aPipeHandle=%d", aPipeHandle ); |
1279 |
1311 |
1280 TBool ret( EFalse ); |
1312 TBool ret( EFalse ); |
1281 |
1313 |
1282 // Find name from context info list |
1314 // Find name from context info list |
1283 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1315 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1284 { |
1316 { |
1285 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
1317 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
1286 { |
1318 { |
1287 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetInitialiseMember. ContextName: %S, InitialiseStarted: %d", &iContextInfoArray[i].iContextName, iContextInfoArray[i].iInitialiseStarted ); |
1319 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetInitialiseMember. ContextName: %S, InitialiseStarted: %d", &iContextInfoArray[i].iContextName, iContextInfoArray[i].iInitialiseStarted ); |
1288 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETINITIALISEMEMBER, "CMmPacketContextMesshandlerList::GetInitialiseMember;ContextName=%S;InitialiseStarted=%hhu", iContextInfoArray[i].iContextName, iContextInfoArray[i].iInitialiseStarted ); |
1320 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETINITIALISEMEMBER_TD, "CMmPacketContextMesshandlerList::GetInitialiseMember;ContextName=%S;InitialiseStarted=%hhu", iContextInfoArray[i].iContextName, iContextInfoArray[i].iInitialiseStarted ); |
1289 ret = iContextInfoArray[i].iInitialiseStarted; |
1321 ret = iContextInfoArray[i].iInitialiseStarted; |
1290 } |
1322 } |
1291 // no else |
1323 // no else |
1292 } |
1324 } |
1293 |
1325 |
1302 TUint8 CMmPacketContextMesshandlerList::ContextIdByPipeHandle( |
1334 TUint8 CMmPacketContextMesshandlerList::ContextIdByPipeHandle( |
1303 const TInt aPipeHandle ) |
1335 const TInt aPipeHandle ) |
1304 { |
1336 { |
1305 |
1337 |
1306 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextIdByPipeHandle. PipeHandle: %d", aPipeHandle ); |
1338 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextIdByPipeHandle. PipeHandle: %d", aPipeHandle ); |
1307 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTIDBYPIPEHANDLE, "CMmPacketContextMesshandlerList::ContextIdByPipeHandle;aPipeHandle=%d", aPipeHandle ); |
1339 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTIDBYPIPEHANDLE_TD, "CMmPacketContextMesshandlerList::ContextIdByPipeHandle;aPipeHandle=%d", aPipeHandle ); |
1308 |
1340 |
1309 TUint8 contextId( GPDS_CID_VOID ); |
1341 TUint8 contextId( GPDS_CID_VOID ); |
1310 |
1342 |
1311 // Find context pipehandle from context info list |
1343 // Find context pipehandle from context info list |
1312 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1344 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1313 { |
1345 { |
1314 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
1346 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
1315 { |
1347 { |
1316 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextIdByPipeHandle. ContextId: %d", iContextInfoArray[i].iContextId ); |
1348 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextIdByPipeHandle. ContextId: %d", iContextInfoArray[i].iContextId ); |
1317 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTIDBYPIPEHANDLE, "CMmPacketContextMesshandlerList::ContextIdByPipeHandle;ContextId=%hhu", iContextInfoArray[i].iContextId ); |
1349 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTIDBYPIPEHANDLE_TD, "CMmPacketContextMesshandlerList::ContextIdByPipeHandle;ContextId=%hhu", iContextInfoArray[i].iContextId ); |
1318 |
1350 |
1319 // Return object from the context info list |
1351 // Return object from the context info list |
1320 contextId = iContextInfoArray[i].iContextId; |
1352 contextId = iContextInfoArray[i].iContextId; |
1321 } |
1353 } |
1322 // no else |
1354 // no else |
1335 const TUint8 aContextId, |
1367 const TUint8 aContextId, |
1336 const TInt aConfigType ) |
1368 const TInt aConfigType ) |
1337 { |
1369 { |
1338 |
1370 |
1339 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetContextConfigurationType. ContextId: %d", aContextId ); |
1371 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetContextConfigurationType. ContextId: %d", aContextId ); |
1340 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETCONTEXTCONFIGURATIONTYPE, "CMmPacketContextMesshandlerList::SetContextConfigurationType;aContextId=%hhu", aContextId ); |
1372 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETCONTEXTCONFIGURATIONTYPE_TD, "CMmPacketContextMesshandlerList::SetContextConfigurationType;aContextId=%hhu", aContextId ); |
1341 |
1373 |
1342 TBool ret( EFalse ); |
1374 TBool ret( EFalse ); |
1343 |
1375 |
1344 // Find context pipehandle from context info list |
1376 // Find context pipehandle from context info list |
1345 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1377 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1346 { |
1378 { |
1347 if ( aContextId == iContextInfoArray[i].iContextId ) |
1379 if ( aContextId == iContextInfoArray[i].iContextId ) |
1348 { |
1380 { |
1349 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetContextConfigurationType. ContextName: %S, ConfigType: %d", &iContextInfoArray[i].iContextName, aConfigType ); |
1381 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetContextConfigurationType. ContextName: %S, ConfigType: %d", &iContextInfoArray[i].iContextName, aConfigType ); |
1350 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETCONTEXTCONFIGURATIONTYPE, "CMmPacketContextMesshandlerList::SetContextConfigurationType;ContextName=%S;aConfigType=%d", iContextInfoArray[i].iContextName, aConfigType ); |
1382 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETCONTEXTCONFIGURATIONTYPE_TD, "CMmPacketContextMesshandlerList::SetContextConfigurationType;ContextName=%S;aConfigType=%d", iContextInfoArray[i].iContextName, aConfigType ); |
1351 |
1383 |
1352 // Return object from the context info list |
1384 // Return object from the context info list |
1353 iContextInfoArray[i].iContextConfigurationType = aConfigType; |
1385 iContextInfoArray[i].iContextConfigurationType = aConfigType; |
1354 ret = ETrue; |
1386 ret = ETrue; |
1355 } |
1387 } |
1400 RPacketContext::TContextConfigGPRS* aConfig, |
1432 RPacketContext::TContextConfigGPRS* aConfig, |
1401 RPacketContext::TContextConfigR99_R4* aConfig99 ) |
1433 RPacketContext::TContextConfigR99_R4* aConfig99 ) |
1402 { |
1434 { |
1403 |
1435 |
1404 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SaveConfig"); |
1436 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SaveConfig"); |
1405 OstTrace0( TRACE_NORMAL, DUP3_CMMPACKETCONTEXTMESSHANDLERLIST_SAVECONFIG, "CMmPacketContextMesshandlerList::SaveConfig" ); |
1437 OstTrace0( TRACE_NORMAL, DUP3_CMMPACKETCONTEXTMESSHANDLERLIST_SAVECONFIG_TD, "CMmPacketContextMesshandlerList::SaveConfig" ); |
1406 |
1438 |
1407 TInt ret( KErrArgument ); |
1439 TInt ret( KErrArgument ); |
1408 |
1440 |
1409 // Find context pipehandle from context info list |
1441 // Find context pipehandle from context info list |
1410 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1442 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1411 { |
1443 { |
1412 if ( aContextId == iContextInfoArray[i].iContextId ) |
1444 if ( aContextId == iContextInfoArray[i].iContextId ) |
1413 { |
1445 { |
1414 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SaveConfig. ContextName: %S, ContextId: %d", &iContextInfoArray[i].iContextName, aContextId ); |
1446 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SaveConfig. ContextName: %S, ContextId: %d", &iContextInfoArray[i].iContextName, aContextId ); |
1415 OstTraceExt2( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SAVECONFIG, "CMmPacketContextMesshandlerList::SaveConfig;ContextName=%S;aContextId=%hhu", iContextInfoArray[i].iContextName, aContextId ); |
1447 OstTraceExt2( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SAVECONFIG_TD, "CMmPacketContextMesshandlerList::SaveConfig;ContextName=%S;aContextId=%hhu", iContextInfoArray[i].iContextName, aContextId ); |
1416 // Return object from the context info list |
1448 // Return object from the context info list |
1417 if( TPacketDataConfigBase::KConfigGPRS == aConfigurationType ) |
1449 if( TPacketDataConfigBase::KConfigGPRS == aConfigurationType ) |
1418 { |
1450 { |
1419 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SaveConfig. ConfigType: %d", aConfigurationType ); |
1451 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SaveConfig. ConfigType: %d", aConfigurationType ); |
1420 OstTrace1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SAVECONFIG, "CMmPacketContextMesshandlerList::SaveConfig;aConfigurationType=%d", aConfigurationType ); |
1452 OstTrace1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SAVECONFIG_TD, "CMmPacketContextMesshandlerList::SaveConfig;aConfigurationType=%d", aConfigurationType ); |
1421 iContextInfoArray[i].iConfig = *aConfig; |
1453 iContextInfoArray[i].iConfig = *aConfig; |
1422 iContextInfoArray[i].iContextConfigurationType = |
1454 iContextInfoArray[i].iContextConfigurationType = |
1423 aConfigurationType; |
1455 aConfigurationType; |
1424 ret = KErrNone; |
1456 ret = KErrNone; |
1425 } |
1457 } |
1426 |
1458 |
1427 else if( TPacketDataConfigBase::KConfigRel99Rel4 == |
1459 else if( TPacketDataConfigBase::KConfigRel99Rel4 == |
1428 aConfigurationType ) |
1460 aConfigurationType ) |
1429 { |
1461 { |
1430 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SaveConfig. ConfigType: %d", aConfigurationType ); |
1462 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SaveConfig. ConfigType: %d", aConfigurationType ); |
1431 OstTrace1( TRACE_NORMAL, DUP2_CMMPACKETCONTEXTMESSHANDLERLIST_SAVECONFIG, "CMmPacketContextMesshandlerList::SaveConfig;aConfigurationType=%d", aConfigurationType ); |
1463 OstTrace1( TRACE_NORMAL, DUP2_CMMPACKETCONTEXTMESSHANDLERLIST_SAVECONFIG_TD, "CMmPacketContextMesshandlerList::SaveConfig;aConfigurationType=%d", aConfigurationType ); |
1432 iContextInfoArray[i].iConfig99 = |
1464 iContextInfoArray[i].iConfig99 = |
1433 *aConfig99; |
1465 *aConfig99; |
1434 iContextInfoArray[i].iContextConfigurationType = |
1466 iContextInfoArray[i].iContextConfigurationType = |
1435 aConfigurationType; |
1467 aConfigurationType; |
1436 ret = KErrNone; |
1468 ret = KErrNone; |
1454 const TUint8 aContextId, |
1486 const TUint8 aContextId, |
1455 const TInt aConfigurationType ) |
1487 const TInt aConfigurationType ) |
1456 { |
1488 { |
1457 |
1489 |
1458 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetConfig"); |
1490 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetConfig"); |
1459 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETCONFIG, "CMmPacketContextMesshandlerList::GetConfig" ); |
1491 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETCONFIG_TD, "CMmPacketContextMesshandlerList::GetConfig" ); |
1460 |
1492 |
1461 TPacketDataConfigBase* config; |
1493 TPacketDataConfigBase* config; |
1462 config = NULL; |
1494 config = NULL; |
1463 |
1495 |
1464 // Find context pipehandle from context info list |
1496 // Find context pipehandle from context info list |
1465 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1497 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1466 { |
1498 { |
1467 if ( aContextId == iContextInfoArray[i].iContextId ) |
1499 if ( aContextId == iContextInfoArray[i].iContextId ) |
1468 { |
1500 { |
1469 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetConfig. ContextName: %S, ContextId: %d", &iContextInfoArray[i].iContextName, aContextId ); |
1501 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetConfig. ContextName: %S, ContextId: %d", &iContextInfoArray[i].iContextName, aContextId ); |
1470 OstTraceExt2( TRACE_NORMAL, DUP3_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONFIG, "CMmPacketContextMesshandlerList::GetConfig;ContextName=%S;aContextId=%hhu", iContextInfoArray[i].iContextName, aContextId ); |
1502 OstTraceExt2( TRACE_NORMAL, DUP3_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONFIG_TD, "CMmPacketContextMesshandlerList::GetConfig;ContextName=%S;aContextId=%hhu", iContextInfoArray[i].iContextName, aContextId ); |
1471 // Return object from the context info list |
1503 // Return object from the context info list |
1472 if( TPacketDataConfigBase::KConfigGPRS == aConfigurationType ) |
1504 if( TPacketDataConfigBase::KConfigGPRS == aConfigurationType ) |
1473 { |
1505 { |
1474 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetConfig. ConfigType: %d", aConfigurationType ); |
1506 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetConfig. ConfigType: %d", aConfigurationType ); |
1475 OstTrace1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONFIG, "CMmPacketContextMesshandlerList::GetConfig;aConfigurationType=%d", aConfigurationType ); |
1507 OstTrace1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONFIG_TD, "CMmPacketContextMesshandlerList::GetConfig;aConfigurationType=%d", aConfigurationType ); |
1476 // Return object from the context info list |
1508 // Return object from the context info list |
1477 config = &( iContextInfoArray[i].iConfig ); |
1509 config = &( iContextInfoArray[i].iConfig ); |
1478 } |
1510 } |
1479 else if( TPacketDataConfigBase::KConfigRel99Rel4 == |
1511 else if( TPacketDataConfigBase::KConfigRel99Rel4 == |
1480 aConfigurationType ) |
1512 aConfigurationType ) |
1481 { |
1513 { |
1482 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetConfig. ConfigType: %d", aConfigurationType ); |
1514 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetConfig. ConfigType: %d", aConfigurationType ); |
1483 OstTrace1( TRACE_NORMAL, DUP2_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONFIG, "CMmPacketContextMesshandlerList::GetConfig;aConfigurationType=%d", aConfigurationType ); |
1515 OstTrace1( TRACE_NORMAL, DUP2_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONFIG_TD, "CMmPacketContextMesshandlerList::GetConfig;aConfigurationType=%d", aConfigurationType ); |
1484 // Return object from the context info list |
1516 // Return object from the context info list |
1485 config = &( iContextInfoArray[i].iConfig99 ); |
1517 config = &( iContextInfoArray[i].iConfig99 ); |
1486 } |
1518 } |
1487 // no else |
1519 // no else |
1488 } |
1520 } |
1501 const TUint8 aContextId, |
1533 const TUint8 aContextId, |
1502 const TUint8 aTransId ) |
1534 const TUint8 aTransId ) |
1503 { |
1535 { |
1504 |
1536 |
1505 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetPipeResetTraId. ContextId: %d", aContextId ); |
1537 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetPipeResetTraId. ContextId: %d", aContextId ); |
1506 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPERESETTRAID, "CMmPacketContextMesshandlerList::SetPipeResetTraId;aContextId=%hhu", aContextId ); |
1538 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPERESETTRAID_TD, "CMmPacketContextMesshandlerList::SetPipeResetTraId;aContextId=%hhu", aContextId ); |
1507 |
1539 |
1508 TInt ret( KErrNotFound ); |
1540 TInt ret( KErrNotFound ); |
1509 |
1541 |
1510 // Find context pipehandle from context info list |
1542 // Find context pipehandle from context info list |
1511 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1543 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1512 { |
1544 { |
1513 if ( aContextId == iContextInfoArray[i].iContextId ) |
1545 if ( aContextId == iContextInfoArray[i].iContextId ) |
1514 { |
1546 { |
1515 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetPipeResetTraId. ContextName: %S, PipeResetTraId: %d", &iContextInfoArray[i].iContextName, aTransId ); |
1547 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::SetPipeResetTraId. ContextName: %S, PipeResetTraId: %d", &iContextInfoArray[i].iContextName, aTransId ); |
1516 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPERESETTRAID, "CMmPacketContextMesshandlerList::SetPipeResetTraId;ContextName=%S;aTransId=%hhu", iContextInfoArray[i].iContextName, aTransId ); |
1548 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETPIPERESETTRAID_TD, "CMmPacketContextMesshandlerList::SetPipeResetTraId;ContextName=%S;aTransId=%hhu", iContextInfoArray[i].iContextName, aTransId ); |
1517 // Return object from the context info list |
1549 // Return object from the context info list |
1518 iContextInfoArray[i].iPipeResetTraId = aTransId; |
1550 iContextInfoArray[i].iPipeResetTraId = aTransId; |
1519 i = KMmMaxNumberOfContexts; |
1551 i = KMmMaxNumberOfContexts; |
1520 ret = KErrNone; |
1552 ret = KErrNone; |
1521 } |
1553 } |
1533 TInt CMmPacketContextMesshandlerList::CheckAndResetPipeResetTraId( |
1565 TInt CMmPacketContextMesshandlerList::CheckAndResetPipeResetTraId( |
1534 const TUint8 aTransId ) |
1566 const TUint8 aTransId ) |
1535 { |
1567 { |
1536 |
1568 |
1537 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CheckAndResetPipeResetTraId. TransId: %d", aTransId ); |
1569 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CheckAndResetPipeResetTraId. TransId: %d", aTransId ); |
1538 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CHECKANDRESETPIPERESETTRAID, "CMmPacketContextMesshandlerList::CheckAndResetPipeResetTraId;aTransId=%hhu", aTransId ); |
1570 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CHECKANDRESETPIPERESETTRAID_TD, "CMmPacketContextMesshandlerList::CheckAndResetPipeResetTraId;aTransId=%hhu", aTransId ); |
1539 |
1571 |
1540 TInt ret( KErrNotFound ); |
1572 TInt ret( KErrNotFound ); |
1541 |
1573 |
1542 // Find context pipehandle from context info list |
1574 // Find context pipehandle from context info list |
1543 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1575 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1544 { |
1576 { |
1545 if ( aTransId == iContextInfoArray[i].iPipeResetTraId ) |
1577 if ( aTransId == iContextInfoArray[i].iPipeResetTraId ) |
1546 { |
1578 { |
1547 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CheckAndResetPipeResetTraId. ContextName: %S", &iContextInfoArray[i].iContextName ); |
1579 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::CheckAndResetPipeResetTraId. ContextName: %S", &iContextInfoArray[i].iContextName ); |
1548 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CHECKANDRESETPIPERESETTRAID, "CMmPacketContextMesshandlerList::CheckAndResetPipeResetTraId;ContextName=%S", iContextInfoArray[i].iContextName ); |
1580 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CHECKANDRESETPIPERESETTRAID_TD, "CMmPacketContextMesshandlerList::CheckAndResetPipeResetTraId;ContextName=%S", iContextInfoArray[i].iContextName ); |
1549 ret = KErrNone; |
1581 ret = KErrNone; |
|
1582 iContextInfoArray[i].iPipeResetTraId = KTUint8NotDefined; |
1550 i = KMmMaxNumberOfContexts; |
1583 i = KMmMaxNumberOfContexts; |
1551 iContextInfoArray[i].iPipeResetTraId = KTUint8NotDefined; |
|
1552 } |
1584 } |
1553 // no else |
1585 // no else |
1554 } |
1586 } |
1555 |
1587 |
1556 return ret; |
1588 return ret; |
1564 TUint8 CMmPacketContextMesshandlerList::ProxyIdByContextId( |
1596 TUint8 CMmPacketContextMesshandlerList::ProxyIdByContextId( |
1565 const TUint8 aContextId ) |
1597 const TUint8 aContextId ) |
1566 { |
1598 { |
1567 |
1599 |
1568 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ProxyIdByContextId. ContextId: %d", aContextId ); |
1600 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ProxyIdByContextId. ContextId: %d", aContextId ); |
1569 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYCONTEXTID, "CMmPacketContextMesshandlerList::ProxyIdByContextId;aContextId=%hhu", aContextId ); |
1601 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYCONTEXTID_TD, "CMmPacketContextMesshandlerList::ProxyIdByContextId;aContextId=%hhu", aContextId ); |
1570 |
1602 |
1571 TUint channelId( KTUint8NotDefined ); |
1603 TUint channelId( KTUint8NotDefined ); |
1572 |
1604 |
1573 // Find context proxyId from context info list |
1605 // Find context proxyId from context info list |
1574 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1606 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1575 { |
1607 { |
1576 if ( aContextId == iContextInfoArray[i].iContextId ) |
1608 if ( aContextId == iContextInfoArray[i].iContextId ) |
1577 { |
1609 { |
1578 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::ProxyIdByContextId. ContextName: %S, ChannelId: %d", &iContextInfoArray[i].iContextName, iContextInfoArray[i].iChannelId ); |
1610 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::ProxyIdByContextId. ContextName: %S, ChannelId: %d", &iContextInfoArray[i].iContextName, iContextInfoArray[i].iChannelId ); |
1579 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYCONTEXTID, "CMmPacketContextMesshandlerList::ProxyIdByContextId;ContextName=%S;ChannelId=%hhu", iContextInfoArray[i].iContextName, iContextInfoArray[i].iChannelId ); |
1611 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_PROXYIDBYCONTEXTID_TD, "CMmPacketContextMesshandlerList::ProxyIdByContextId;ContextName=%S;ChannelId=%hhu", iContextInfoArray[i].iContextName, iContextInfoArray[i].iChannelId ); |
1580 channelId = iContextInfoArray[i].iChannelId; |
1612 channelId = iContextInfoArray[i].iChannelId; |
1581 } |
1613 } |
1582 // no else |
1614 // no else |
1583 } |
1615 } |
1584 |
1616 |
1598 |
1630 |
1599 if( 0 == iDialUpContextName.Compare( KStringExternal ) ) |
1631 if( 0 == iDialUpContextName.Compare( KStringExternal ) ) |
1600 { |
1632 { |
1601 |
1633 |
1602 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetDialUpContextId iSecondaryDialUpContextName."); |
1634 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetDialUpContextId iSecondaryDialUpContextName."); |
1603 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETDIALUPCONTEXTID, "CMmPacketContextMesshandlerList::SetDialUpContextId, iSecondaryDialUpContextName" ); |
1635 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETDIALUPCONTEXTID_TD, "CMmPacketContextMesshandlerList::SetDialUpContextId, iSecondaryDialUpContextName" ); |
1604 |
1636 |
1605 iSecondaryDialUpContextName = KStringExternal2; |
1637 iSecondaryDialUpContextName = KStringExternal2; |
1606 iSecondaryDialUpContextId = aContextId; |
1638 iSecondaryDialUpContextId = aContextId; |
1607 } |
1639 } |
1608 else |
1640 else |
1609 { |
1641 { |
1610 |
1642 |
1611 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetDialUpContextId iDialUpContextId."); |
1643 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetDialUpContextId iDialUpContextId."); |
1612 OstTrace0( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETDIALUPCONTEXTID, "CMmPacketContextMesshandlerList::SetDialUpContextId, iDialUpContextId" ); |
1644 OstTrace0( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETDIALUPCONTEXTID_TD, "CMmPacketContextMesshandlerList::SetDialUpContextId, iDialUpContextId" ); |
1613 |
1645 |
1614 iDialUpContextId = aContextId; |
1646 iDialUpContextId = aContextId; |
1615 iDialUpContextName = KStringExternal; |
1647 iDialUpContextName = KStringExternal; |
1616 } |
1648 } |
1617 } |
1649 } |
1639 const TUint8 aContextId, |
1671 const TUint8 aContextId, |
1640 TInfoName& aContextName ) |
1672 TInfoName& aContextName ) |
1641 { |
1673 { |
1642 |
1674 |
1643 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::DialUpContextName"); |
1675 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::DialUpContextName"); |
1644 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_DIALUPCONTEXTNAME, "CMmPacketContextMesshandlerList::DialUpContextName" ); |
1676 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_DIALUPCONTEXTNAME_TD, "CMmPacketContextMesshandlerList::DialUpContextName" ); |
1645 |
1677 |
1646 TInt ret( KErrNotFound ); |
1678 TInt ret( KErrNotFound ); |
1647 |
1679 |
1648 if( aContextId == iDialUpContextId ) |
1680 if( aContextId == iDialUpContextId ) |
1649 { |
1681 { |
1650 |
1682 |
1651 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::DialUpContextName. DialUpContextId: %d", aContextId ); |
1683 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::DialUpContextName. DialUpContextId: %d", aContextId ); |
1652 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_DIALUPCONTEXTNAME, "CMmPacketContextMesshandlerList::DialUpContextName;DialUpContextId=%hhu", aContextId ); |
1684 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_DIALUPCONTEXTNAME_TD, "CMmPacketContextMesshandlerList::DialUpContextName;DialUpContextId=%hhu", aContextId ); |
1653 aContextName = iDialUpContextName; |
1685 aContextName = iDialUpContextName; |
1654 ret = KErrNone; |
1686 ret = KErrNone; |
1655 } |
1687 } |
1656 // no else |
1688 // no else |
1657 |
1689 |
1658 if( aContextId == iSecondaryDialUpContextId ) |
1690 if( aContextId == iSecondaryDialUpContextId ) |
1659 { |
1691 { |
1660 |
1692 |
1661 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::DialUpContextName. SecondaryDialUpContextId: %d", aContextId ); |
1693 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::DialUpContextName. SecondaryDialUpContextId: %d", aContextId ); |
1662 OstTraceExt1( TRACE_NORMAL, DUP2_CMMPACKETCONTEXTMESSHANDLERLIST_DIALUPCONTEXTNAME, "CMmPacketContextMesshandlerList::DialUpContextName;DialUpContextName=%hhu", aContextId ); |
1694 OstTraceExt1( TRACE_NORMAL, DUP2_CMMPACKETCONTEXTMESSHANDLERLIST_DIALUPCONTEXTNAME_TD, "CMmPacketContextMesshandlerList::DialUpContextName;DialUpContextName=%hhu", aContextId ); |
1663 aContextName = iSecondaryDialUpContextName; |
1695 aContextName = iSecondaryDialUpContextName; |
1664 ret = KErrNone; |
1696 ret = KErrNone; |
1665 } |
1697 } |
1666 // no else |
1698 // no else |
1667 |
1699 |
1676 TUint8 CMmPacketContextMesshandlerList::GetDialUpContextIdByName( |
1708 TUint8 CMmPacketContextMesshandlerList::GetDialUpContextIdByName( |
1677 TInfoName* const aContextName ) |
1709 TInfoName* const aContextName ) |
1678 { |
1710 { |
1679 |
1711 |
1680 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetDialUpContextIdByName"); |
1712 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetDialUpContextIdByName"); |
1681 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETDIALUPCONTEXTIDBYNAME, "CMmPacketContextMesshandlerList::GetDialUpContextIdByName" ); |
1713 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETDIALUPCONTEXTIDBYNAME_TD, "CMmPacketContextMesshandlerList::GetDialUpContextIdByName" ); |
1682 |
1714 |
1683 TUint8 contextId( GPDS_CID_VOID ); |
1715 TUint8 contextId( GPDS_CID_VOID ); |
1684 |
1716 |
1685 if ( *aContextName == iDialUpContextName ) |
1717 if ( *aContextName == iDialUpContextName ) |
1686 { |
1718 { |
1687 |
1719 |
1688 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetDialUpContextIdByName. DialUpContextId: %d", iDialUpContextId ); |
1720 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetDialUpContextIdByName. DialUpContextId: %d", iDialUpContextId ); |
1689 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETDIALUPCONTEXTIDBYNAME, "CMmPacketContextMesshandlerList::GetDialUpContextIdByName;DialUpContextId=%hhu", contextId ); |
1721 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETDIALUPCONTEXTIDBYNAME_TD, "CMmPacketContextMesshandlerList::GetDialUpContextIdByName;DialUpContextId=%hhu", contextId ); |
1690 // Name found, return object |
1722 // Name found, return object |
1691 contextId = iDialUpContextId; |
1723 contextId = iDialUpContextId; |
1692 } |
1724 } |
1693 // no else |
1725 // no else |
1694 |
1726 |
1715 void CMmPacketContextMesshandlerList::RemoveObjectByName( |
1747 void CMmPacketContextMesshandlerList::RemoveObjectByName( |
1716 TInfoName* aContextName ) |
1748 TInfoName* aContextName ) |
1717 { |
1749 { |
1718 |
1750 |
1719 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::RemoveObjectByName"); |
1751 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::RemoveObjectByName"); |
1720 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_REMOVEOBJECTBYNAME, "CMmPacketContextMesshandlerList::RemoveObjectByName" ); |
1752 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_REMOVEOBJECTBYNAME_TD, "CMmPacketContextMesshandlerList::RemoveObjectByName" ); |
1721 |
1753 |
1722 // Set ret to KErrArgument to check that context is in list |
1754 // Set ret to KErrArgument to check that context is in list |
1723 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1755 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1724 { |
1756 { |
1725 // Find aContext from context info list |
1757 // Find aContext from context info list |
1726 if ( *aContextName == iContextInfoArray[i].iContextName ) |
1758 if ( *aContextName == iContextInfoArray[i].iContextName ) |
1727 { |
1759 { |
1728 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveObjectByName. Context Name: %S", &iContextInfoArray[i].iContextName ); |
1760 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::RemoveObjectByName. Context Name: %S", &iContextInfoArray[i].iContextName ); |
1729 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_REMOVEOBJECTBYNAME, "CMmPacketContextMesshandlerList::RemoveObjectByName;ContextName=%S", iContextInfoArray[i].iContextName ); |
1761 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_REMOVEOBJECTBYNAME_TD, "CMmPacketContextMesshandlerList::RemoveObjectByName;ContextName=%S", iContextInfoArray[i].iContextName ); |
1730 |
1762 |
|
1763 // Close channel and mark it closed |
|
1764 iContextInfoArray[i].iIscApi.Close(); |
|
1765 iContextInfoArray[i].iChannelOpened = EFalse; |
1731 // Reset object information |
1766 // Reset object information |
1732 InitializeContextInfoList( i ); |
1767 InitializeContextInfoList( i ); |
1733 // Decrease number of created contexts |
1768 // Decrease number of created contexts |
1734 iNumberOfCreatedContexts--; |
1769 iNumberOfCreatedContexts--; |
1735 i = KMmMaxNumberOfContexts; |
1770 i = KMmMaxNumberOfContexts; |
1746 TInt CMmPacketContextMesshandlerList::SetDNSAddressInfoToContextInfo( |
1781 TInt CMmPacketContextMesshandlerList::SetDNSAddressInfoToContextInfo( |
1747 TUint8 aContextId ) |
1782 TUint8 aContextId ) |
1748 { |
1783 { |
1749 |
1784 |
1750 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetDNSAddressInfoToContextInfo"); |
1785 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetDNSAddressInfoToContextInfo"); |
1751 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETDNSADDRESSINFOTOCONTEXTINFO, "CMmPacketContextMesshandlerList::SetDNSAddressInfoToContextInfo" ); |
1786 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETDNSADDRESSINFOTOCONTEXTINFO_TD, "CMmPacketContextMesshandlerList::SetDNSAddressInfoToContextInfo" ); |
1752 |
1787 |
1753 TInt ret( KErrNotFound ); |
1788 TInt ret( KErrNotFound ); |
1754 |
1789 |
1755 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1790 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1756 { |
1791 { |
1757 // Find aContext from context info list |
1792 // Find aContext from context info list |
1758 if ( aContextId == iContextInfoArray[i].iContextId ) |
1793 if ( aContextId == iContextInfoArray[i].iContextId ) |
1759 { |
1794 { |
1760 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetDNSAddressInfoToContextInfo. ContextId: %d", aContextId ); |
1795 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetDNSAddressInfoToContextInfo. ContextId: %d", aContextId ); |
1761 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETDNSADDRESSINFOTOCONTEXTINFO, "CMmPacketContextMesshandlerList::SetDNSAddressInfoToContextInfo;aContextId=%hhu", aContextId ); |
1796 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETDNSADDRESSINFOTOCONTEXTINFO_TD, "CMmPacketContextMesshandlerList::SetDNSAddressInfoToContextInfo;aContextId=%hhu", aContextId ); |
1762 iContextInfoArray[i].iAddDNSAddress = ETrue; |
1797 iContextInfoArray[i].iAddDNSAddress = ETrue; |
1763 ret = KErrNone; |
1798 ret = KErrNone; |
1764 } |
1799 } |
1765 // no else |
1800 // no else |
1766 } |
1801 } |
1776 TBool CMmPacketContextMesshandlerList::GetDNSAddressInfoToContextInfo( |
1811 TBool CMmPacketContextMesshandlerList::GetDNSAddressInfoToContextInfo( |
1777 TUint8 aContextId ) |
1812 TUint8 aContextId ) |
1778 { |
1813 { |
1779 |
1814 |
1780 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetDNSAddressInfoToContextInfo"); |
1815 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetDNSAddressInfoToContextInfo"); |
1781 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETDNSADDRESSINFOTOCONTEXTINFO, "CMmPacketContextMesshandlerList::GetDNSAddressInfoToContextInfo" ); |
1816 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETDNSADDRESSINFOTOCONTEXTINFO_TD, "CMmPacketContextMesshandlerList::GetDNSAddressInfoToContextInfo" ); |
1782 |
1817 |
1783 TBool addDNSAddress( EFalse ); |
1818 TBool addDNSAddress( EFalse ); |
1784 |
1819 |
1785 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1820 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1786 { |
1821 { |
1787 // Find aContext from context info list |
1822 // Find aContext from context info list |
1788 if ( aContextId == iContextInfoArray[i].iContextId ) |
1823 if ( aContextId == iContextInfoArray[i].iContextId ) |
1789 { |
1824 { |
1790 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetDNSAddressInfoToContextInfo. ContextId: %d, AddDNSAddress: %d", aContextId, iContextInfoArray[i].iAddDNSAddress ); |
1825 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetDNSAddressInfoToContextInfo. ContextId: %d, AddDNSAddress: %d", aContextId, iContextInfoArray[i].iAddDNSAddress ); |
1791 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETDNSADDRESSINFOTOCONTEXTINFO, "CMmPacketContextMesshandlerList::GetDNSAddressInfoToContextInfo;aContextId=%hhu;AddDNSAddress=%hhu", aContextId, iContextInfoArray[i].iAddDNSAddress ); |
1826 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETDNSADDRESSINFOTOCONTEXTINFO_TD, "CMmPacketContextMesshandlerList::GetDNSAddressInfoToContextInfo;aContextId=%hhu;AddDNSAddress=%hhu", aContextId, iContextInfoArray[i].iAddDNSAddress ); |
1792 addDNSAddress = iContextInfoArray[i].iAddDNSAddress; |
1827 addDNSAddress = iContextInfoArray[i].iAddDNSAddress; |
1793 } |
1828 } |
1794 // no else |
1829 // no else |
1795 } |
1830 } |
1796 |
1831 |
1805 TInt CMmPacketContextMesshandlerList::SetPCSCFAddressInfoToContextInfo( |
1840 TInt CMmPacketContextMesshandlerList::SetPCSCFAddressInfoToContextInfo( |
1806 TUint8 aContextId ) |
1841 TUint8 aContextId ) |
1807 { |
1842 { |
1808 |
1843 |
1809 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetPCSCFAddressInfoToContextInfo"); |
1844 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetPCSCFAddressInfoToContextInfo"); |
1810 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETPCSCFADDRESSINFOTOCONTEXTINFO, "CMmPacketContextMesshandlerList::SetPCSCFAddressInfoToContextInfo" ); |
1845 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETPCSCFADDRESSINFOTOCONTEXTINFO_TD, "CMmPacketContextMesshandlerList::SetPCSCFAddressInfoToContextInfo" ); |
1811 |
1846 |
1812 TInt ret( KErrNotFound ); |
1847 TInt ret( KErrNotFound ); |
1813 |
1848 |
1814 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1849 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1815 { |
1850 { |
1816 // Find aContext from context info list |
1851 // Find aContext from context info list |
1817 if ( aContextId == iContextInfoArray[i].iContextId ) |
1852 if ( aContextId == iContextInfoArray[i].iContextId ) |
1818 { |
1853 { |
1819 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetPCSCFAddressInfoToContextInfo. ContextId: %d", aContextId ); |
1854 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetPCSCFAddressInfoToContextInfo. ContextId: %d", aContextId ); |
1820 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETPCSCFADDRESSINFOTOCONTEXTINFO, "CMmPacketContextMesshandlerList::SetPCSCFAddressInfoToContextInfo;aContextId=%hhu", aContextId ); |
1855 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETPCSCFADDRESSINFOTOCONTEXTINFO_TD, "CMmPacketContextMesshandlerList::SetPCSCFAddressInfoToContextInfo;aContextId=%hhu", aContextId ); |
1821 iContextInfoArray[i].iAddPCSCFAddress = ETrue; |
1856 iContextInfoArray[i].iAddPCSCFAddress = ETrue; |
1822 ret = KErrNone; |
1857 ret = KErrNone; |
1823 } |
1858 } |
1824 // no else |
1859 // no else |
1825 } |
1860 } |
1835 TBool CMmPacketContextMesshandlerList::GetPCSCFAddressInfoToContextInfo( |
1870 TBool CMmPacketContextMesshandlerList::GetPCSCFAddressInfoToContextInfo( |
1836 TUint8 aContextId ) |
1871 TUint8 aContextId ) |
1837 { |
1872 { |
1838 |
1873 |
1839 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetPCSCFAddressInfoToContextInfo"); |
1874 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::GetPCSCFAddressInfoToContextInfo"); |
1840 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETPCSCFADDRESSINFOTOCONTEXTINFO, "CMmPacketContextMesshandlerList::GetPCSCFAddressInfoToContextInfo" ); |
1875 OstTrace0( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETPCSCFADDRESSINFOTOCONTEXTINFO_TD, "CMmPacketContextMesshandlerList::GetPCSCFAddressInfoToContextInfo" ); |
1841 |
1876 |
1842 TBool addPCSCFAddress( EFalse ); |
1877 TBool addPCSCFAddress( EFalse ); |
1843 |
1878 |
1844 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1879 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1845 { |
1880 { |
1846 // Find aContext from context info list |
1881 // Find aContext from context info list |
1847 if ( aContextId == iContextInfoArray[i].iContextId ) |
1882 if ( aContextId == iContextInfoArray[i].iContextId ) |
1848 { |
1883 { |
1849 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetPCSCFAddressInfoToContextInfo. ContextId: %d, AddPCSCFAddress: %d", aContextId, iContextInfoArray[i].iAddPCSCFAddress ); |
1884 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::GetPCSCFAddressInfoToContextInfo. ContextId: %d, AddPCSCFAddress: %d", aContextId, iContextInfoArray[i].iAddPCSCFAddress ); |
1850 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETPCSCFADDRESSINFOTOCONTEXTINFO, "CMmPacketContextMesshandlerList::GetPCSCFAddressInfoToContextInfo;aContextId=%hhu;AddPCSCFAddress=%hhu", aContextId, iContextInfoArray[i].iAddPCSCFAddress ); |
1885 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETPCSCFADDRESSINFOTOCONTEXTINFO_TD, "CMmPacketContextMesshandlerList::GetPCSCFAddressInfoToContextInfo;aContextId=%hhu;AddPCSCFAddress=%hhu", aContextId, iContextInfoArray[i].iAddPCSCFAddress ); |
1851 addPCSCFAddress = iContextInfoArray[i].iAddPCSCFAddress; |
1886 addPCSCFAddress = iContextInfoArray[i].iAddPCSCFAddress; |
1852 } |
1887 } |
1853 // no else |
1888 // no else |
1854 } |
1889 } |
1855 |
1890 |
1864 TUint8 CMmPacketContextMesshandlerList::ContextIdByListIndex( |
1899 TUint8 CMmPacketContextMesshandlerList::ContextIdByListIndex( |
1865 const TInt aListIndex ) |
1900 const TInt aListIndex ) |
1866 { |
1901 { |
1867 |
1902 |
1868 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextIdByListIndex, Index: %d", aListIndex ); |
1903 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextIdByListIndex, Index: %d", aListIndex ); |
1869 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTIDBYLISTINDEX, "CMmPacketContextMesshandlerList::ContextIdByListIndex;aListIndex=%d", aListIndex ); |
1904 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTIDBYLISTINDEX_TD, "CMmPacketContextMesshandlerList::ContextIdByListIndex;aListIndex=%d", aListIndex ); |
1870 |
1905 |
1871 TUint8 contextId( GPDS_CID_VOID ); |
1906 TUint8 contextId( GPDS_CID_VOID ); |
1872 |
1907 |
1873 if ( aListIndex < KMmMaxNumberOfContexts ) |
1908 if ( aListIndex < KMmMaxNumberOfContexts ) |
1874 { |
1909 { |
1875 // Return context id from the context info list |
1910 // Return context id from the context info list |
1876 contextId = iContextInfoArray[aListIndex].iContextId; |
1911 contextId = iContextInfoArray[aListIndex].iContextId; |
1877 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextIdByListIndex. ContextId: %d", contextId ); |
1912 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::ContextIdByListIndex. ContextId: %d", contextId ); |
1878 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTIDBYLISTINDEX, "CMmPacketContextMesshandlerList::ContextIdByListIndex;contextId=%hhu", contextId ); |
1913 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_CONTEXTIDBYLISTINDEX_TD, "CMmPacketContextMesshandlerList::ContextIdByListIndex;contextId=%hhu", contextId ); |
1879 } |
1914 } |
1880 // no else |
1915 // no else |
1881 |
1916 |
1882 return contextId; |
1917 return contextId; |
1883 } |
1918 } |
1890 TUint8 CMmPacketContextMesshandlerList::GetContextTypeById( |
1925 TUint8 CMmPacketContextMesshandlerList::GetContextTypeById( |
1891 const TUint8 aContextId ) |
1926 const TUint8 aContextId ) |
1892 { |
1927 { |
1893 |
1928 |
1894 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetContextTypeByName, ContextId: %d", aContextId ); |
1929 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetContextTypeByName, ContextId: %d", aContextId ); |
1895 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTTYPEBYID, "CMmPacketContextMesshandlerList::GetContextTypeById;aContextId=%hhu", aContextId ); |
1930 OstTraceExt1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTTYPEBYID_TD, "CMmPacketContextMesshandlerList::GetContextTypeById;aContextId=%hhu", aContextId ); |
1896 |
1931 |
1897 TUint8 ret( GPDS_CONT_TYPE_NORMAL ); |
1932 TUint8 ret( GPDS_CONT_TYPE_NORMAL ); |
1898 |
1933 |
1899 // Find context id from context info list |
1934 // Find context id from context info list |
1900 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1935 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
1906 { |
1941 { |
1907 ret = GPDS_CONT_TYPE_SEC; |
1942 ret = GPDS_CONT_TYPE_SEC; |
1908 } |
1943 } |
1909 // no else |
1944 // no else |
1910 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetContextTypeById, ContextType: %d", ret ); |
1945 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetContextTypeById, ContextType: %d", ret ); |
1911 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTTYPEBYID, "CMmPacketContextMesshandlerList::GetContextTypeById;ContextType=%hhu", ret ); |
1946 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETCONTEXTTYPEBYID_TD, "CMmPacketContextMesshandlerList::GetContextTypeById;ContextType=%hhu", ret ); |
1912 } |
1947 } |
1913 // no else |
1948 // no else |
1914 } |
1949 } |
1915 |
1950 |
1916 return ret; |
1951 return ret; |
1917 } |
1952 } |
|
1953 |
|
1954 // ----------------------------------------------------------------------------- |
|
1955 // CMmPacketContextMesshandlerList::SetLoanReturning |
|
1956 // Gets initialisation member for specific context identified by pipehandle. |
|
1957 // ----------------------------------------------------------------------------- |
|
1958 // |
|
1959 TBool CMmPacketContextMesshandlerList::SetLoanReturning( |
|
1960 TUint8 aPipeHandle, |
|
1961 TBool aFlag ) |
|
1962 { |
|
1963 |
|
1964 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetLoanReturning. PipeHandle: %d", aPipeHandle ); |
|
1965 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETLOANRETURNING_TD, "CMmPacketContextMesshandlerList::SetLoanReturning;aPipeHandle=%d", aPipeHandle ); |
|
1966 |
|
1967 TBool ret( EFalse ); |
|
1968 |
|
1969 // Find name from context info list |
|
1970 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
|
1971 { |
|
1972 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
|
1973 { |
|
1974 TFLOGSTRING("TSY: CMmPacketContextMesshandlerList::SetLoanReturning - match found" ); |
|
1975 OstTrace0( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETLOANRETURNING_TD, "CMmPacketContextMesshandlerList::SetLoanReturning - match found" ); |
|
1976 |
|
1977 iContextInfoArray[i].iLoanReturning = aFlag; |
|
1978 ret = ETrue; |
|
1979 break; |
|
1980 } |
|
1981 // no else |
|
1982 } |
|
1983 |
|
1984 return ret; |
|
1985 } |
|
1986 |
|
1987 // ----------------------------------------------------------------------------- |
|
1988 // CMmPacketContextMesshandlerList::IsLoanReturning |
|
1989 // ----------------------------------------------------------------------------- |
|
1990 // |
|
1991 TBool CMmPacketContextMesshandlerList::IsLoanReturning( |
|
1992 TUint8 aPipeHandle ) const |
|
1993 { |
|
1994 |
|
1995 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::IsLoanReturning. PipeHandle: %d", aPipeHandle ); |
|
1996 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_ISLOANRETURNING_TD, "CMmPacketContextMesshandlerList::GetInitialiseMember;aPipeHandle=%d", aPipeHandle ); |
|
1997 |
|
1998 TBool ret( EFalse ); |
|
1999 |
|
2000 // Find name from context info list |
|
2001 for ( TInt i = 0; i < KMmMaxNumberOfContexts; i++ ) |
|
2002 { |
|
2003 if ( aPipeHandle == iContextInfoArray[i].iPipeHandle ) |
|
2004 { |
|
2005 |
|
2006 TFLOGSTRING3("TSY: CMmPacketContextMesshandlerList::IsLoanReturning. ContextName: %S, InitialiseStarted: %d", &iContextInfoArray[i].iContextName, iContextInfoArray[i].iInitialiseStarted ); |
|
2007 OstTraceExt2( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_ISLOANRETURNING_TD, "CMmPacketContextMesshandlerList::IsLoanReturning;ContextName=%S;InitialiseStarted=%hhu", iContextInfoArray[i].iContextName, iContextInfoArray[i].iInitialiseStarted ); |
|
2008 |
|
2009 ret = iContextInfoArray[i].iLoanReturning; |
|
2010 } |
|
2011 // no else |
|
2012 } |
|
2013 |
|
2014 return ret; |
|
2015 } |
|
2016 |
|
2017 // ----------------------------------------------------------------------------- |
|
2018 // CMmPacketContextMesshandlerList::SetExternalDevice |
|
2019 // Set device id and object id of loaning pep |
|
2020 // ----------------------------------------------------------------------------- |
|
2021 // |
|
2022 TInt CMmPacketContextMesshandlerList::SetExternalDevice( |
|
2023 TUint8 aChannelId, |
|
2024 TUint8 aDevId, |
|
2025 TUint8 aObjId ) |
|
2026 { |
|
2027 TInt ret( KErrNotFound ); |
|
2028 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetExternalDevice. aChannelId: 0x%x", aChannelId ); |
|
2029 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_SETEXTERNALDEVICE_TD, "CMmPacketContextMesshandlerList::SetExternalDevice;aChannelId=%x", aChannelId ); |
|
2030 |
|
2031 for ( TInt i = 0; i < iNumberOfCreatedContexts; i++ ) |
|
2032 { |
|
2033 if ( aChannelId == iContextInfoArray[i].iChannelId ) |
|
2034 { |
|
2035 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::SetExternalDevice. ContextName: %S", &iContextInfoArray[i].iContextName ); |
|
2036 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_SETEXTERNALDEVICE_TD, "CMmPacketContextMesshandlerList::SetExternalDevice;iContextInfoArray[i].iContextName=%S", iContextInfoArray[i].iContextName ); |
|
2037 iContextInfoArray[i].iExtDevId = aDevId; |
|
2038 iContextInfoArray[i].iExtObjId = aObjId; |
|
2039 ret = KErrNone; |
|
2040 break; |
|
2041 } |
|
2042 } |
|
2043 |
|
2044 return ret; |
|
2045 } |
|
2046 |
|
2047 // ----------------------------------------------------------------------------- |
|
2048 // CMmPacketContextMesshandlerList::GetExternalDevice |
|
2049 // Get device id and object id of loaning pep |
|
2050 // ----------------------------------------------------------------------------- |
|
2051 // |
|
2052 TInt CMmPacketContextMesshandlerList::GetExternalDevice( |
|
2053 TUint8 aChannelId, |
|
2054 TUint8& aDevId, |
|
2055 TUint8& aObjId ) |
|
2056 { |
|
2057 TInt ret( KErrNotFound ); |
|
2058 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetExternalDevice. aChannelId: 0x%x", aChannelId ); |
|
2059 OstTrace1( TRACE_NORMAL, CMMPACKETCONTEXTMESSHANDLERLIST_GETEXTERNALDEVICE_TD, "CMmPacketContextMesshandlerList::GetExternalDevice;aChannelId=%x", aChannelId ); |
|
2060 |
|
2061 for ( TInt i = 0; i < iNumberOfCreatedContexts; i++ ) |
|
2062 { |
|
2063 if ( aChannelId == iContextInfoArray[i].iChannelId ) |
|
2064 { |
|
2065 TFLOGSTRING2("TSY: CMmPacketContextMesshandlerList::GetExternalDevice. ContextName: %S", &iContextInfoArray[i].iContextName ); |
|
2066 OstTraceExt1( TRACE_NORMAL, DUP1_CMMPACKETCONTEXTMESSHANDLERLIST_GETEXTERNALDEVICE_TD, "CMmPacketContextMesshandlerList::GetExternalDevice;iContextInfoArray[i].iContextName=%s", iContextInfoArray[i].iContextName ); |
|
2067 aDevId = iContextInfoArray[i].iExtDevId; |
|
2068 aObjId = iContextInfoArray[i].iExtObjId; |
|
2069 ret = KErrNone; |
|
2070 break; |
|
2071 } |
|
2072 } |
|
2073 |
|
2074 return ret; |
|
2075 } |
|
2076 |
1918 |
2077 |
1919 // ----------------------------------------------------------------------------- |
2078 // ----------------------------------------------------------------------------- |
1920 // CMmPacketContextMesshandlerList::InitializeContextInfoList |
2079 // CMmPacketContextMesshandlerList::InitializeContextInfoList |
1921 // This function initializes context info |
2080 // This function initializes context info |
1922 // ----------------------------------------------------------------------------- |
2081 // ----------------------------------------------------------------------------- |