24 #include "mpmconnmonevents.h" |
24 #include "mpmconnmonevents.h" |
25 #include "mpmconnmonreqs.h" |
25 #include "mpmconnmonreqs.h" |
26 #include "mpmserver.h" |
26 #include "mpmserver.h" |
27 #include "mpmserversession.h" |
27 #include "mpmserversession.h" |
28 #include "mpmlogger.h" |
28 #include "mpmlogger.h" |
29 #include "mpmwlanavailability.h" |
|
30 |
29 |
31 // ============================= LOCAL FUNCTIONS =============================== |
30 // ============================= LOCAL FUNCTIONS =============================== |
32 |
31 |
33 // ============================ MEMBER FUNCTIONS =============================== |
32 // ============================ MEMBER FUNCTIONS =============================== |
34 |
33 |
66 { |
65 { |
67 iConnMon.CancelNotifications(); |
66 iConnMon.CancelNotifications(); |
68 iConnMon.Close(); |
67 iConnMon.Close(); |
69 iReqPtrs.ResetAndDestroy(); |
68 iReqPtrs.ResetAndDestroy(); |
70 iConnInfoArray.Close(); |
69 iConnInfoArray.Close(); |
71 delete iWlanAvailability; |
|
72 iWlanAvailability = NULL; |
|
73 } |
70 } |
74 |
71 |
75 |
72 |
76 // ----------------------------------------------------------------------------- |
73 // ----------------------------------------------------------------------------- |
77 // CMPMConnMonEvents::ConstructL |
74 // CMPMConnMonEvents::ConstructL |
695 iSSID(), |
692 iSSID(), |
696 iConnType( EConnectionGeneric ) |
693 iConnType( EConnectionGeneric ) |
697 { |
694 { |
698 } |
695 } |
699 |
696 |
700 // ----------------------------------------------------------------------------- |
|
701 // CMPMConnMonEvents::CheckWlanAvailabilityL |
|
702 // ----------------------------------------------------------------------------- |
|
703 // |
|
704 void CMPMConnMonEvents::CheckWlanAvailabilityL( MWlanAvailability* aObserver ) |
|
705 { |
|
706 MPMLOGSTRING( "CMPMConnMonEvents::CheckWlanAvailabilityL" ) |
|
707 // Sanity check null pointer |
|
708 ASSERT( aObserver != NULL ); |
|
709 |
|
710 // Request for WLAN bearer availability info |
|
711 // |
|
712 if ( !iWlanAvailability ) |
|
713 { |
|
714 iWlanAvailability = CWlanAvailability::NewL( this, iConnMon ); |
|
715 } |
|
716 |
|
717 iWlanAvailability->Start( aObserver ); |
|
718 } |
|
719 |
|
720 // ----------------------------------------------------------------------------- |
|
721 // CMPMConnMonEvents::CancelCheckWlanWlanAvailability |
|
722 // ----------------------------------------------------------------------------- |
|
723 // |
|
724 void CMPMConnMonEvents::CancelCheckWlanWlanAvailability( MWlanAvailability* aObserver ) |
|
725 { |
|
726 MPMLOGSTRING( "CMPMConnMonEvents::CancelCheckWlanWlanAvailability" ) |
|
727 // Sanity check null pointer |
|
728 ASSERT( aObserver != NULL ); |
|
729 |
|
730 // Cancel WLAN bearer availability check for this observer |
|
731 // |
|
732 if ( iWlanAvailability ) |
|
733 { |
|
734 iWlanAvailability->CancelObserver( aObserver ); |
|
735 } |
|
736 } |
|
737 |
|
738 // ----------------------------------------------------------------------------- |
|
739 // CMPMConnMonEvents::SetWlanAvailabilityPtrNull |
|
740 // ----------------------------------------------------------------------------- |
|
741 // |
|
742 void CMPMConnMonEvents::SetWlanAvailabilityPtrNull() |
|
743 { |
|
744 iWlanAvailability = NULL; |
|
745 } |
|
746 |
|
747 // End of File |
697 // End of File |
748 |
698 |