equal
deleted
inserted
replaced
31 |
31 |
32 struct TDownload |
32 struct TDownload |
33 { |
33 { |
34 TUint iIndex; |
34 TUint iIndex; |
35 TUint iUid; |
35 TUint iUid; |
|
36 }; |
|
37 |
|
38 typedef enum TShowFilter |
|
39 { |
|
40 EAllShows, |
|
41 ENewShows, |
|
42 EDownloadedShows, |
|
43 ENewAndDownloadedShows |
36 }; |
44 }; |
37 |
45 |
38 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver |
46 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver |
39 { |
47 { |
40 public: |
48 public: |
76 |
84 |
77 IMPORT_C void GetMimeType(const TDesC& aFileName, TDes& aMimeType); |
85 IMPORT_C void GetMimeType(const TDesC& aFileName, TDes& aMimeType); |
78 |
86 |
79 IMPORT_C void CheckForDeletedShows(TUint aFeedUid); |
87 IMPORT_C void CheckForDeletedShows(TUint aFeedUid); |
80 IMPORT_C CMetaDataReader& MetaDataReader(); |
88 IMPORT_C CMetaDataReader& MetaDataReader(); |
81 |
89 IMPORT_C void SetShowFilter(TShowFilter aFilter); |
82 IMPORT_C void MoveDownloadUpL(TUint aUid); |
90 IMPORT_C void MoveDownloadUpL(TUint aUid); |
83 IMPORT_C void MoveDownloadDownL(TUint aUid); |
91 IMPORT_C void MoveDownloadDownL(TUint aUid); |
84 |
92 |
85 private: |
93 private: |
86 // from HttpClientObserver, dont have to be public |
94 // from HttpClientObserver, dont have to be public |
137 CHttpClient* iShowClient; |
145 CHttpClient* iShowClient; |
138 |
146 |
139 CPodcastModel& iPodcastModel; |
147 CPodcastModel& iPodcastModel; |
140 |
148 |
141 // observers that will receive callbacks |
149 // observers that will receive callbacks |
142 RArray<MShowEngineObserver*> iObservers; |
150 RArray<MShowEngineObserver*> iObservers; |
143 |
151 |
144 // The show we are currently downloading |
152 // The show we are currently downloading |
145 CShowInfo* iShowDownloading; |
153 CShowInfo* iShowDownloading; |
146 TUint iDownloadErrors; |
154 TUint iDownloadErrors; |
147 |
155 |
148 CMetaDataReader* iMetaDataReader; |
156 CMetaDataReader* iMetaDataReader; |
149 |
157 |
150 RApaLsSession iApaSession; |
158 RApaLsSession iApaSession; |
151 TBuf8<512> iRecogBuffer; |
159 TBuf8<512> iRecogBuffer; |
152 |
160 |
153 sqlite3& iDB; |
161 sqlite3& iDB; |
154 TBuf<KDefaultSQLDataBufferLength> iSqlBuffer; |
162 TBuf<KDefaultSQLDataBufferLength> iSqlBuffer; |
|
163 TShowFilter iShowFilter; |
155 }; |
164 }; |
156 |
165 |
157 #endif /*SHOWENGINE_H_*/ |
166 #endif /*SHOWENGINE_H_*/ |
158 |
167 |