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 ) |
|
214 { |
201 { |
215 LOG_1( _L("CAOServer::CAOServer") ); |
202 LOG_1( _L("CAOServer::CAOServer") ); |
216 } |
203 } |
217 |
204 |
218 // --------------------------------------------------------------------------- |
205 // --------------------------------------------------------------------------- |
443 User::LeaveIfError( err ); |
430 User::LeaveIfError( err ); |
444 |
431 |
445 // Create property subscriber |
432 // Create property subscriber |
446 iPDPPropertySubscriber = CAOAsyncWrapper<CAOServer>::NewL( |
433 iPDPPropertySubscriber = CAOAsyncWrapper<CAOServer>::NewL( |
447 this, |
434 this, |
448 &CAOServer::PDPPropertySubscriptionIssueRequest, |
435 &PDPPropertySubscriptionIssueRequest, |
449 &CAOServer::PDPPropertySubscriptionRunL, |
436 &PDPPropertySubscriptionRunL, |
450 &CAOServer::PDPPropertySubscriptionDoCancel, |
437 &PDPPropertySubscriptionDoCancel, |
451 NULL ); |
438 NULL ); |
452 |
439 |
453 // Subscribe |
440 // Subscribe |
454 IssuePDPPropertySubscription(); |
441 IssuePDPPropertySubscription(); |
455 } |
442 } |
961 LOG_1( _L("CAOServer::CurrentCellularDataUsageChanged") ); |
948 LOG_1( _L("CAOServer::CurrentCellularDataUsageChanged") ); |
962 LOG_2( _L("> Current state: %S"), |
949 LOG_2( _L("> Current state: %S"), |
963 &StateToDesC( CurrentState()->StateName() ) ); |
950 &StateToDesC( CurrentState()->StateName() ) ); |
964 |
951 |
965 if ( aValue != ECmCellularDataUsageDisabled ) |
952 if ( aValue != ECmCellularDataUsageDisabled ) |
966 { |
953 { |
|
954 TAOState* newState = NULL; |
967 |
955 |
968 if ( CurrentState()->StateName() == TAOState::EStateDisabled ) |
956 if ( CurrentState()->StateName() == TAOState::EStateDisabled ) |
969 { |
957 { |
970 iCurrentState->HandleEnableAlwaysOnL(); |
958 newState = iCurrentState->HandleEnableAlwaysOnL(); |
971 } |
959 } |
972 else |
960 else |
973 { |
961 { |
974 TAOState* newState = NULL; |
|
975 |
|
976 // Behaviour is the same as if unconnect timer had expired |
962 // Behaviour is the same as if unconnect timer had expired |
977 iTimer->StopUnconnectTimer(); |
963 iTimer->StopUnconnectTimer(); |
978 newState = iCurrentState->HandleUnconnectTimerExpiredL(); |
964 newState = iCurrentState->HandleUnconnectTimerExpiredL(); |
979 |
965 |
980 if( newState ) |
966 if( newState ) |