syncmlfw/common/sosserver/src/nsmlsoshandler.cpp
changeset 63 e0c1916b8ddc
parent 0 b497e44ab2fc
child 62 19bba8228ff0
equal deleted inserted replaced
57:f5b689a4f7a2 63:e0c1916b8ddc
   811 
   811 
   812 	TNSmlSyncInitiation syncInit = EClientInitiated;
   812 	TNSmlSyncInitiation syncInit = EClientInitiated;
   813     CNSmlDMSettings* settings = CNSmlDMSettings::NewLC();
   813     CNSmlDMSettings* settings = CNSmlDMSettings::NewLC();
   814     CNSmlDMProfile* prof = settings->ProfileL( iCurrentJob->ProfileId() );
   814     CNSmlDMProfile* prof = settings->ProfileL( iCurrentJob->ProfileId() );
   815     if(prof)
   815     if(prof)
   816         {
   816     	{
   817         CleanupStack::PushL( prof );
   817       	CleanupStack::PushL( prof );    
   818 	    }
   818     		if ( iCurrentJob->iPending || prof->IntValue( EDMProfileHidden ))
   819     
   819         {
   820     if ( iCurrentJob->iPending || prof->IntValue( EDMProfileHidden ))
   820         	syncInit = EServerAlerted;
   821         {
   821         }
   822         syncInit = EServerAlerted;
   822 
   823         }
   823     		if ( !iCurrentJob->TransportId() )
   824 
   824         {        
   825     if ( !iCurrentJob->TransportId() )
   825            iCurrentJob->SetTransportId( prof->IntValue( EDMProfileTransportId ) );
   826         {
   826         }
   827         if ( prof )
       
   828             {
       
   829             iCurrentJob->SetTransportId( prof->IntValue( EDMProfileTransportId ) );
       
   830             }
       
   831         }
       
   832     if(prof)
       
   833         {
       
   834         CleanupStack::PopAndDestroy( prof );
   827         CleanupStack::PopAndDestroy( prof );
   835         }
   828       }
   836     CleanupStack::PopAndDestroy( settings );
   829     CleanupStack::PopAndDestroy( settings );
   837  
   830  
   838 
   831 
   839     switch ( iCurrentJob->JobType() )
   832     switch ( iCurrentJob->JobType() )
   840         {
   833         {