equal
deleted
inserted
replaced
157 iIap = stream.ReadInt32L(); |
157 iIap = stream.ReadInt32L(); |
158 |
158 |
159 TInt low = stream.ReadInt32L(); |
159 TInt low = stream.ReadInt32L(); |
160 TInt high = stream.ReadInt32L(); |
160 TInt high = stream.ReadInt32L(); |
161 iUpdateFeedTime = MAKE_TINT64(high, low); |
161 iUpdateFeedTime = MAKE_TINT64(high, low); |
|
162 |
|
163 iDeleteAutomatically = (TAutoDeleteSetting) stream.ReadInt32L(); |
162 TInt dummy; |
164 TInt dummy; |
163 dummy = stream.ReadInt32L(); // was iSelectOnlyUnplayed |
|
164 dummy = stream.ReadInt32L(); // was iSeekStepTime |
165 dummy = stream.ReadInt32L(); // was iSeekStepTime |
165 |
166 |
166 CleanupStack::PopAndDestroy(1); // readStream and iniFile |
167 CleanupStack::PopAndDestroy(1); // readStream and iniFile |
167 DP("CSettingsEngine::LoadSettingsL\t Settings loaded OK"); |
168 DP("CSettingsEngine::LoadSettingsL\t Settings loaded OK"); |
168 } |
169 } |
190 stream.WriteInt32L(iDownloadSuspended); |
191 stream.WriteInt32L(iDownloadSuspended); |
191 stream.WriteInt32L(iIap); |
192 stream.WriteInt32L(iIap); |
192 |
193 |
193 stream.WriteInt32L(I64LOW(iUpdateFeedTime.Int64())); |
194 stream.WriteInt32L(I64LOW(iUpdateFeedTime.Int64())); |
194 stream.WriteInt32L(I64HIGH(iUpdateFeedTime.Int64())); |
195 stream.WriteInt32L(I64HIGH(iUpdateFeedTime.Int64())); |
195 stream.WriteInt32L(0); // was iSelectOnlyUnplayed |
196 stream.WriteInt32L(iDeleteAutomatically); |
196 stream.WriteInt32L(0); // was iSeekStepTime |
197 stream.WriteInt32L(0); // was iSeekStepTime |
197 |
198 |
198 stream.CommitL(); |
199 stream.CommitL(); |
199 store->CommitL(); |
200 store->CommitL(); |
200 CleanupStack::PopAndDestroy(2); // stream and store |
201 CleanupStack::PopAndDestroy(2); // stream and store |
340 EXPORT_C void CSettingsEngine::SetDownloadSuspended(TBool aSuspended) |
341 EXPORT_C void CSettingsEngine::SetDownloadSuspended(TBool aSuspended) |
341 { |
342 { |
342 DP1("CSettingsEngine::SetDownloadSuspended, aSuspended=%d", aSuspended); |
343 DP1("CSettingsEngine::SetDownloadSuspended, aSuspended=%d", aSuspended); |
343 iDownloadSuspended = aSuspended; |
344 iDownloadSuspended = aSuspended; |
344 } |
345 } |
|
346 |
|
347 EXPORT_C TAutoDeleteSetting CSettingsEngine::DeleteAutomatically() |
|
348 { |
|
349 return iDeleteAutomatically; |
|
350 } |
|
351 |
|
352 EXPORT_C void CSettingsEngine::SetDeleteAutomatically(TAutoDeleteSetting aDeleteAuto) |
|
353 { |
|
354 iDeleteAutomatically = aDeleteAuto; |
|
355 } |