equal
deleted
inserted
replaced
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 if ( iCurrentJob->iPending || prof->IntValue( EDMProfileHidden )) |
818 } |
819 { |
819 |
820 syncInit = EServerAlerted; |
820 if ( iCurrentJob->iPending || prof->IntValue( EDMProfileHidden )) |
821 } |
821 { |
822 |
822 syncInit = EServerAlerted; |
823 if ( !iCurrentJob->TransportId() ) |
823 } |
824 { |
824 |
825 iCurrentJob->SetTransportId( prof->IntValue( EDMProfileTransportId ) ); |
825 if ( !iCurrentJob->TransportId() ) |
826 } |
826 { |
|
827 if ( prof ) |
|
828 { |
|
829 iCurrentJob->SetTransportId( prof->IntValue( EDMProfileTransportId ) ); |
|
830 } |
|
831 } |
|
832 if(prof) |
|
833 { |
827 CleanupStack::PopAndDestroy( prof ); |
834 CleanupStack::PopAndDestroy( prof ); |
828 } |
835 } |
829 CleanupStack::PopAndDestroy( settings ); |
836 CleanupStack::PopAndDestroy( settings ); |
830 |
837 |
831 |
838 |
832 switch ( iCurrentJob->JobType() ) |
839 switch ( iCurrentJob->JobType() ) |
833 { |
840 { |