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 |
|
44 }; |
36 }; |
45 |
37 |
46 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver |
38 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver |
47 { |
39 { |
48 public: |
40 public: |
84 |
76 |
85 IMPORT_C void GetMimeType(const TDesC& aFileName, TDes& aMimeType); |
77 IMPORT_C void GetMimeType(const TDesC& aFileName, TDes& aMimeType); |
86 |
78 |
87 IMPORT_C void CheckForDeletedShows(TUint aFeedUid); |
79 IMPORT_C void CheckForDeletedShows(TUint aFeedUid); |
88 IMPORT_C CMetaDataReader& MetaDataReader(); |
80 IMPORT_C CMetaDataReader& MetaDataReader(); |
89 IMPORT_C void SetShowFilter(TShowFilter aFilter); |
|
90 IMPORT_C void MoveDownloadUpL(TUint aUid); |
81 IMPORT_C void MoveDownloadUpL(TUint aUid); |
91 IMPORT_C void MoveDownloadDownL(TUint aUid); |
82 IMPORT_C void MoveDownloadDownL(TUint aUid); |
|
83 IMPORT_C void PostPlayHandling(CShowInfo *aShow); |
92 |
84 |
|
85 IMPORT_C void ExpireOldShows(); |
93 private: |
86 private: |
94 // from HttpClientObserver, dont have to be public |
87 // from HttpClientObserver, dont have to be public |
95 void Connected(CHttpClient* aClient); |
88 void Connected(CHttpClient* aClient); |
96 void Disconnected(CHttpClient* aClient); |
89 void Disconnected(CHttpClient* aClient); |
97 void CompleteL(CHttpClient* aClient, TInt aError); |
90 void CompleteL(CHttpClient* aClient, TInt aError); |
138 void DBGetAllDownloadsL(RShowInfoArray& aShowArray); |
131 void DBGetAllDownloadsL(RShowInfoArray& aShowArray); |
139 TUint DBGetDownloadsCountL(); |
132 TUint DBGetDownloadsCountL(); |
140 void DBAddDownloadL(TUint aUid); |
133 void DBAddDownloadL(TUint aUid); |
141 CShowInfo* DBGetNextDownloadL(); |
134 CShowInfo* DBGetNextDownloadL(); |
142 void DBSwapDownloadsL(TDownload aFirstDL, TDownload aSecondDL); |
135 void DBSwapDownloadsL(TDownload aFirstDL, TDownload aSecondDL); |
|
136 void DBGetOldShowsL(RShowInfoArray& aShowArray); |
143 |
137 |
144 private: |
138 private: |
145 CHttpClient* iShowClient; |
139 CHttpClient* iShowClient; |
146 |
140 |
147 CPodcastModel& iPodcastModel; |
141 CPodcastModel& iPodcastModel; |
158 RApaLsSession iApaSession; |
152 RApaLsSession iApaSession; |
159 TBuf8<512> iRecogBuffer; |
153 TBuf8<512> iRecogBuffer; |
160 |
154 |
161 sqlite3& iDB; |
155 sqlite3& iDB; |
162 TBuf<KDefaultSQLDataBufferLength> iSqlBuffer; |
156 TBuf<KDefaultSQLDataBufferLength> iSqlBuffer; |
163 TShowFilter iShowFilter; |
|
164 }; |
157 }; |
165 |
158 |
166 #endif /*SHOWENGINE_H_*/ |
159 #endif /*SHOWENGINE_H_*/ |
167 |
160 |