equal
deleted
inserted
replaced
296 OstTraceExt2( |
296 OstTraceExt2( |
297 TRACE_NORMAL, |
297 TRACE_NORMAL, |
298 CONNMONCONNINFO_EVENTL_EVENTTYPE, |
298 CONNMONCONNINFO_EVENTL_EVENTTYPE, |
299 "ConnMonConnInfo::EventL;connectionId=%u;aConnMonEvent.EventType()=%d", connectionId, aConnMonEvent.EventType() ); |
299 "ConnMonConnInfo::EventL;connectionId=%u;aConnMonEvent.EventType()=%d", connectionId, aConnMonEvent.EventType() ); |
300 |
300 |
|
301 // Filter out other than WLAN connections |
|
302 if (!isWlan(connectionId)) { |
|
303 return; |
|
304 } |
|
305 |
301 // Note: Conversions from CConnMonEventBase to sub classes cannot be made to use dynamic_cast |
306 // Note: Conversions from CConnMonEventBase to sub classes cannot be made to use dynamic_cast |
302 // because constructors of CConnMonEventBase and its sub classes are not public in |
307 // because constructors of CConnMonEventBase and its sub classes are not public in |
303 // connmon library's interface. |
308 // connmon library's interface. |
304 |
309 |
305 switch (aConnMonEvent.EventType()) |
310 switch (aConnMonEvent.EventType()) |
525 break; |
530 break; |
526 } |
531 } |
527 |
532 |
528 return connUtilsBearerType; |
533 return connUtilsBearerType; |
529 } |
534 } |
|
535 |
|
536 /*! |
|
537 Checks the bearer of given connection. |
|
538 Meant for filtering handling only for WLAN IAP's. |
|
539 |
|
540 @param [in] connectionId Connection ID. |
|
541 |
|
542 @return Returns true if connection a WLAN connection, otherwise false. |
|
543 */ |
|
544 |
|
545 bool ConnMonConnInfo::isWlan(uint connectionId) |
|
546 { |
|
547 bool result = false; |
|
548 TRequestStatus status; |
|
549 |
|
550 TInt bearer = 0; |
|
551 iMonitor.GetIntAttribute( |
|
552 connectionId, |
|
553 0, |
|
554 KBearer, |
|
555 bearer, |
|
556 status); |
|
557 User::WaitForRequest(status); |
|
558 |
|
559 if (status.Int() == KErrNone && bearer == EBearerWLAN) { |
|
560 result = true; |
|
561 } |
|
562 |
|
563 return result; |
|
564 } |
530 |
565 |
531 // --------------------------------------------------------- |
566 // --------------------------------------------------------- |
532 // ConnMonConnDisconnect::ConnMonConnDisconnect() |
567 // ConnMonConnDisconnect::ConnMonConnDisconnect() |
533 // Constructor |
568 // Constructor |
534 // --------------------------------------------------------- |
569 // --------------------------------------------------------- |
627 } |
662 } |
628 } |
663 } |
629 |
664 |
630 OstTraceFunctionExit1( CONNMONCONNDISCONNECT_DISCONNECTCONNECTION_EXIT, this ); |
665 OstTraceFunctionExit1( CONNMONCONNDISCONNECT_DISCONNECTCONNECTION_EXIT, this ); |
631 } |
666 } |
632 |
|
633 //end of file |
|