convergedconnectionhandler/cchserver/src/cchsubserviceinfo.cpp
changeset 2 7b872347d83b
parent 0 a4daefaec16c
child 9 bddb6d4447db
equal deleted inserted replaced
1:bfb1de3eac8e 2:7b872347d83b
   159 // (other items were commented in a header).
   159 // (other items were commented in a header).
   160 // ---------------------------------------------------------------------------
   160 // ---------------------------------------------------------------------------
   161 //
   161 //
   162 void CCCHSubserviceInfo::SetState( const TCCHSubserviceState aState )
   162 void CCCHSubserviceInfo::SetState( const TCCHSubserviceState aState )
   163     {
   163     {
       
   164     CCHLOGSTRING2( "CCCHSubserviceInfo::SetState: iPreviousState = %d", 
       
   165         iState );
       
   166     CCHLOGSTRING2( "CCCHSubserviceInfo::SetState: new state = %d", 
       
   167         aState );
       
   168     CCHLOGSTRING2( "CCCHSubserviceInfo::SetState: new state = %d", 
       
   169         Type() );
       
   170     iPreviousState = iState;
   164     iState = aState;
   171     iState = aState;
   165     }
   172     }
   166 
   173 
   167 // ---------------------------------------------------------------------------
   174 // ---------------------------------------------------------------------------
   168 // CCCHSubserviceInfo::SetError
   175 // CCCHSubserviceInfo::SetError
   233         iServiceId );
   240         iServiceId );
   234     CCHLOGSTRING2( "CCCHSubserviceInfo::StatusChangedL: iType %d", 
   241     CCHLOGSTRING2( "CCCHSubserviceInfo::StatusChangedL: iType %d", 
   235         iType );
   242         iType );
   236     CCHLOGSTRING2( "CCCHSubserviceInfo::StatusChangedL: iState %d", 
   243     CCHLOGSTRING2( "CCCHSubserviceInfo::StatusChangedL: iState %d", 
   237         iState );
   244         iState );
       
   245     CCHLOGSTRING2( "CCCHSubserviceInfo::StatusChangedL: iPreviousState %d", 
       
   246         iPreviousState );
   238     CCHLOGSTRING2( "CCCHSubserviceInfo::StatusChangedL: iError %d", 
   247     CCHLOGSTRING2( "CCCHSubserviceInfo::StatusChangedL: iError %d", 
   239         iError );
   248         iError );
       
   249     
       
   250     if( iPreviousState == ECCHUninitialized && iState == ECCHDisabled )
       
   251         {
       
   252         CCHLOGSTRING( "CCCHSubserviceInfo::StatusChangedL: Status not notified" );
       
   253         }
       
   254     else 
       
   255         {
       
   256         if ( iPreviousState == ECCHDisconnecting && iState == ECCHDisabled )
       
   257             {
       
   258             iPreviousState = ECCHUninitialized;
       
   259             }
       
   260         CCHLOGSTRING( "CCCHSubserviceInfo::StatusChangedL: Notify new status" );
       
   261         TServiceStatus serviceStatus;
       
   262         serviceStatus.iConnectionInfo.iServiceSelection.iServiceId = iServiceId;
       
   263         serviceStatus.iConnectionInfo.iServiceSelection.iType      = iType;
       
   264         serviceStatus.iConnectionInfo.iIapId                       = iIapId;
       
   265         serviceStatus.iConnectionInfo.iSNAPId                      = iSNAPId; 
       
   266         serviceStatus.iConnectionInfo.iSNAPLocked                  = iSNAPLocked; 
       
   267         serviceStatus.iState                                       = iState;
       
   268         serviceStatus.iError                                       = iError;
   240         
   269         
   241     TServiceStatus serviceStatus;
   270         // Send notify to clients
   242     serviceStatus.iConnectionInfo.iServiceSelection.iServiceId = iServiceId;
   271         iServer.RequestStorage().NotifyServiceStatesChange( serviceStatus );
   243     serviceStatus.iConnectionInfo.iServiceSelection.iType      = iType;
   272         }
   244     serviceStatus.iConnectionInfo.iIapId                       = iIapId;
       
   245     serviceStatus.iConnectionInfo.iSNAPId                      = iSNAPId; 
       
   246     serviceStatus.iConnectionInfo.iSNAPLocked                  = iSNAPLocked; 
       
   247     serviceStatus.iState                                       = iState;
       
   248     serviceStatus.iError                                       = iError;
       
   249     
       
   250     // Send notify to clients
       
   251     iServer.RequestStorage().NotifyServiceStatesChange( serviceStatus );
       
   252     CCHLOGSTRING( "CCCHSubserviceInfo::StatusChangedL: OUT" );
   273     CCHLOGSTRING( "CCCHSubserviceInfo::StatusChangedL: OUT" );
   253     }
   274     }
   254 
   275 
   255 
   276 
   256 // ---------------------------------------------------------------------------
   277 // ---------------------------------------------------------------------------