diff -r 4b75876aa85a -r b131f7696342 engine/src/SettingsEngine.cpp --- a/engine/src/SettingsEngine.cpp Sun Nov 14 13:05:37 2010 +0000 +++ b/engine/src/SettingsEngine.cpp Tue Nov 16 10:26:34 2010 +0000 @@ -160,8 +160,9 @@ TInt low = stream.ReadInt32L(); TInt high = stream.ReadInt32L(); iUpdateFeedTime = MAKE_TINT64(high, low); + + iDeleteAutomatically = (TAutoDeleteSetting) stream.ReadInt32L(); TInt dummy; - dummy = stream.ReadInt32L(); // was iSelectOnlyUnplayed dummy = stream.ReadInt32L(); // was iSeekStepTime CleanupStack::PopAndDestroy(1); // readStream and iniFile @@ -193,7 +194,7 @@ stream.WriteInt32L(I64LOW(iUpdateFeedTime.Int64())); stream.WriteInt32L(I64HIGH(iUpdateFeedTime.Int64())); - stream.WriteInt32L(0); // was iSelectOnlyUnplayed + stream.WriteInt32L(iDeleteAutomatically); stream.WriteInt32L(0); // was iSeekStepTime stream.CommitL(); @@ -348,3 +349,13 @@ DP1("CSettingsEngine::SetDownloadSuspended, aSuspended=%d", aSuspended); iDownloadSuspended = aSuspended; } + +EXPORT_C TAutoDeleteSetting CSettingsEngine::DeleteAutomatically() + { + return iDeleteAutomatically; + } + +EXPORT_C void CSettingsEngine::SetDeleteAutomatically(TAutoDeleteSetting aDeleteAuto) + { + iDeleteAutomatically = aDeleteAuto; + }