equal
deleted
inserted
replaced
46 EAutoUpdatePeriod2=360, |
46 EAutoUpdatePeriod2=360, |
47 EAutoUpdatePeriod3=720, |
47 EAutoUpdatePeriod3=720, |
48 EAutoUpdatePeriod4=1440 |
48 EAutoUpdatePeriod4=1440 |
49 }; |
49 }; |
50 |
50 |
|
51 enum TAutoDeleteSetting |
|
52 { |
|
53 EAutoDeleteOff, |
|
54 EAutoDeleteAfter1Day, |
|
55 EAutoDeleteAfter7Days |
|
56 }; |
|
57 |
51 class CSettingsEngine : public CBase |
58 class CSettingsEngine : public CBase |
52 { |
59 { |
53 public: |
60 public: |
54 static CSettingsEngine* NewL(CPodcastModel& aPodcastModel); |
61 static CSettingsEngine* NewL(CPodcastModel& aPodcastModel); |
55 virtual ~CSettingsEngine(); |
62 virtual ~CSettingsEngine(); |
85 IMPORT_C TInt SpecificIAP(); |
92 IMPORT_C TInt SpecificIAP(); |
86 IMPORT_C void SetSpecificIAP(TInt aIap); |
93 IMPORT_C void SetSpecificIAP(TInt aIap); |
87 |
94 |
88 IMPORT_C void SaveSettingsL(); |
95 IMPORT_C void SaveSettingsL(); |
89 |
96 |
|
97 IMPORT_C TAutoDeleteSetting DeleteAutomatically(); |
|
98 IMPORT_C void SetDeleteAutomatically(TAutoDeleteSetting aAutoDeleteOn); |
|
99 |
90 private: |
100 private: |
91 CSettingsEngine(CPodcastModel& aPodcastModel); |
101 CSettingsEngine(CPodcastModel& aPodcastModel); |
92 void ConstructL(); |
102 void ConstructL(); |
93 void LoadSettingsL(); |
103 void LoadSettingsL(); |
94 void GetDefaultBaseDirL(TDes &aBaseDir); |
104 void GetDefaultBaseDirL(TDes &aBaseDir); |
102 TBool iDownloadAutomatically; |
112 TBool iDownloadAutomatically; |
103 TInt iIap; |
113 TInt iIap; |
104 TInt iMaxListItems; |
114 TInt iMaxListItems; |
105 TTime iUpdateFeedTime; |
115 TTime iUpdateFeedTime; |
106 TBool iDownloadSuspended; |
116 TBool iDownloadSuspended; |
107 |
117 TAutoDeleteSetting iDeleteAutomatically; |
|
118 |
108 // Other member variables |
119 // Other member variables |
109 CPodcastModel &iPodcastModel; // reference to the model |
120 CPodcastModel &iPodcastModel; // reference to the model |
110 }; |
121 }; |
111 |
122 |
112 #endif /*SETTINGSENGINE_H_*/ |
123 #endif /*SETTINGSENGINE_H_*/ |