alwayson_net_plugin/pdpcontextmanager2/src/caoserver.cpp
branchRCL_3
changeset 58 83ca720e2b9a
parent 57 05bc53fe583b
--- a/alwayson_net_plugin/pdpcontextmanager2/src/caoserver.cpp	Tue Aug 31 15:35:44 2010 +0300
+++ b/alwayson_net_plugin/pdpcontextmanager2/src/caoserver.cpp	Wed Sep 01 12:23:51 2010 +0100
@@ -197,20 +197,7 @@
 // CAOServer::CAOServer
 // ---------------------------------------------------------------------------
 //
-CAOServer::CAOServer():
-    iConnectionManager( NULL ),
-    iTimer( NULL ),
-    iRAUManager( NULL ),
-    iSettings( NULL ),
-    iGpds( NULL ),
-    iPointerStatePool( NULL ),
-    iAsyncReactivation( NULL ),
-    iFailure( MAOConnectionManager::EDisconnected ),
-    iActivationFailure( ETrue),
-    iCurrentState( NULL ),
-    iPDPPropertySubscriber( NULL ), 
-    iAsyncSetup( NULL ),
-    iCenRepObserver( NULL )
+CAOServer::CAOServer()
     {
     LOG_1( _L("CAOServer::CAOServer") );
     }
@@ -445,9 +432,9 @@
     // Create property subscriber
     iPDPPropertySubscriber = CAOAsyncWrapper<CAOServer>::NewL(
         this,
-        &CAOServer::PDPPropertySubscriptionIssueRequest,
-        &CAOServer::PDPPropertySubscriptionRunL,
-        &CAOServer::PDPPropertySubscriptionDoCancel,
+        &PDPPropertySubscriptionIssueRequest,
+        &PDPPropertySubscriptionRunL,
+        &PDPPropertySubscriptionDoCancel,
         NULL );
         
     // Subscribe
@@ -963,16 +950,15 @@
         &StateToDesC( CurrentState()->StateName() ) );
     
     if ( aValue != ECmCellularDataUsageDisabled )
-       {
+        {
+        TAOState* newState = NULL;
         	
         if ( CurrentState()->StateName() == TAOState::EStateDisabled )
             {
-              iCurrentState->HandleEnableAlwaysOnL();
+            newState = iCurrentState->HandleEnableAlwaysOnL();
             }
         else
             {
-            TAOState* newState = NULL;
-            
             // Behaviour is the same as if unconnect timer had expired
             iTimer->StopUnconnectTimer();
             newState = iCurrentState->HandleUnconnectTimerExpiredL();