equal
deleted
inserted
replaced
195 |
195 |
196 // --------------------------------------------------------------------------- |
196 // --------------------------------------------------------------------------- |
197 // CAOServer::CAOServer |
197 // CAOServer::CAOServer |
198 // --------------------------------------------------------------------------- |
198 // --------------------------------------------------------------------------- |
199 // |
199 // |
200 CAOServer::CAOServer() |
200 CAOServer::CAOServer(): |
|
201 iConnectionManager( NULL ), |
|
202 iTimer( NULL ), |
|
203 iRAUManager( NULL ), |
|
204 iSettings( NULL ), |
|
205 iGpds( NULL ), |
|
206 iPointerStatePool( NULL ), |
|
207 iAsyncReactivation( NULL ), |
|
208 iFailure( MAOConnectionManager::EDisconnected ), |
|
209 iActivationFailure( ETrue), |
|
210 iCurrentState( NULL ), |
|
211 iPDPPropertySubscriber( NULL ), |
|
212 iAsyncSetup( NULL ), |
|
213 iCenRepObserver( NULL ) |
201 { |
214 { |
202 LOG_1( _L("CAOServer::CAOServer") ); |
215 LOG_1( _L("CAOServer::CAOServer") ); |
203 } |
216 } |
204 |
217 |
205 // --------------------------------------------------------------------------- |
218 // --------------------------------------------------------------------------- |
430 User::LeaveIfError( err ); |
443 User::LeaveIfError( err ); |
431 |
444 |
432 // Create property subscriber |
445 // Create property subscriber |
433 iPDPPropertySubscriber = CAOAsyncWrapper<CAOServer>::NewL( |
446 iPDPPropertySubscriber = CAOAsyncWrapper<CAOServer>::NewL( |
434 this, |
447 this, |
435 &PDPPropertySubscriptionIssueRequest, |
448 &CAOServer::PDPPropertySubscriptionIssueRequest, |
436 &PDPPropertySubscriptionRunL, |
449 &CAOServer::PDPPropertySubscriptionRunL, |
437 &PDPPropertySubscriptionDoCancel, |
450 &CAOServer::PDPPropertySubscriptionDoCancel, |
438 NULL ); |
451 NULL ); |
439 |
452 |
440 // Subscribe |
453 // Subscribe |
441 IssuePDPPropertySubscription(); |
454 IssuePDPPropertySubscription(); |
442 } |
455 } |
948 LOG_1( _L("CAOServer::CurrentCellularDataUsageChanged") ); |
961 LOG_1( _L("CAOServer::CurrentCellularDataUsageChanged") ); |
949 LOG_2( _L("> Current state: %S"), |
962 LOG_2( _L("> Current state: %S"), |
950 &StateToDesC( CurrentState()->StateName() ) ); |
963 &StateToDesC( CurrentState()->StateName() ) ); |
951 |
964 |
952 if ( aValue != ECmCellularDataUsageDisabled ) |
965 if ( aValue != ECmCellularDataUsageDisabled ) |
953 { |
966 { |
954 TAOState* newState = NULL; |
|
955 |
967 |
956 if ( CurrentState()->StateName() == TAOState::EStateDisabled ) |
968 if ( CurrentState()->StateName() == TAOState::EStateDisabled ) |
957 { |
969 { |
958 newState = iCurrentState->HandleEnableAlwaysOnL(); |
970 iCurrentState->HandleEnableAlwaysOnL(); |
959 } |
971 } |
960 else |
972 else |
961 { |
973 { |
|
974 TAOState* newState = NULL; |
|
975 |
962 // Behaviour is the same as if unconnect timer had expired |
976 // Behaviour is the same as if unconnect timer had expired |
963 iTimer->StopUnconnectTimer(); |
977 iTimer->StopUnconnectTimer(); |
964 newState = iCurrentState->HandleUnconnectTimerExpiredL(); |
978 newState = iCurrentState->HandleUnconnectTimerExpiredL(); |
965 |
979 |
966 if( newState ) |
980 if( newState ) |