--- a/engine/src/SettingsEngine.cpp Sun Nov 14 13:06:35 2010 +0000
+++ b/engine/src/SettingsEngine.cpp Mon Nov 15 13:59:40 2010 +0000
@@ -159,8 +159,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
@@ -192,7 +193,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();
@@ -342,3 +343,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;
+ }