connectionmonitoring/connmon/connectionmonitor/src/ConnMonIAP.cpp
branchRCL_3
changeset 8 2e6c4614c58e
parent 0 5a93021fdf25
child 15 4dc3bb0099b0
equal deleted inserted replaced
4:77415202bfc8 8:2e6c4614c58e
    31 #include "CDataVolume.h"
    31 #include "CDataVolume.h"
    32 #include "connmondtmnoti.h"
    32 #include "connmondtmnoti.h"
    33 #include "connmontelnoti.h"
    33 #include "connmontelnoti.h"
    34 #include "ConnMonBearerNotifier.h"
    34 #include "ConnMonBearerNotifier.h"
    35 #include "log.h"
    35 #include "log.h"
       
    36 #include "cellulardatausagekeyupdater.h"
    36 
    37 
    37 // ============================ MEMBER FUNCTIONS ===============================
    38 // ============================ MEMBER FUNCTIONS ===============================
    38 
    39 
    39 // -----------------------------------------------------------------------------
    40 // -----------------------------------------------------------------------------
    40 // TConnInfo::TConnInfo
    41 // TConnInfo::TConnInfo
  2005         if ( iNetwRegistrationNotifier == 0 )
  2006         if ( iNetwRegistrationNotifier == 0 )
  2006             {
  2007             {
  2007             iNetwRegistrationNotifier = CNetwRegistrationNotifier::NewL( iServer, iMobilePhone );
  2008             iNetwRegistrationNotifier = CNetwRegistrationNotifier::NewL( iServer, iMobilePhone );
  2008             }
  2009             }
  2009         if ( !iNetwRegistrationNotifier->IsActive() )
  2010         if ( !iNetwRegistrationNotifier->IsActive() )
  2010             {
  2011             {            
  2011             iNetwRegistrationNotifier->Receive(); // (re)start listening
  2012             iNetwRegistrationNotifier->Receive(); // (re)start listening
       
  2013             
       
  2014             // We might have missed the network registration notification before 
       
  2015             // we started listening for notifications here. Update the 
       
  2016             // network registration information.            
       
  2017             TInt registration( ENetworkRegistrationExtNotAvailable );                
       
  2018             User::LeaveIfError( GetNetworkRegistration_v2( registration ) );
       
  2019             iServer->CellularDataUsageKeyUpdater()->UpdateKeyL( registration );            
  2012             }
  2020             }
  2013 
  2021 
  2014         // Bearer change (GPRS/Edge GPRS) status events
  2022         // Bearer change (GPRS/Edge GPRS) status events
  2015         if ( FeatureManager::FeatureSupported( KFeatureIdEdgeKnowledge ) )
  2023         if ( FeatureManager::FeatureSupported( KFeatureIdEdgeKnowledge ) )
  2016             {
  2024             {