equal
deleted
inserted
replaced
28 #include "ShowEngineObserver.h" |
28 #include "ShowEngineObserver.h" |
29 #include "MetaDataReader.h" |
29 #include "MetaDataReader.h" |
30 #include <sqlite3.h> |
30 #include <sqlite3.h> |
31 #include "mpxcollectionhelper.h" |
31 #include "mpxcollectionhelper.h" |
32 #include "mpxcollectionhelperobserver.h" |
32 #include "mpxcollectionhelperobserver.h" |
|
33 |
|
34 struct TDownload |
|
35 { |
|
36 TUint iIndex; |
|
37 TUint iUid; |
|
38 }; |
33 |
39 |
34 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver, |
40 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver, |
35 public MMPXCollectionHelperObserver |
41 public MMPXCollectionHelperObserver |
36 { |
42 { |
37 public: |
43 public: |
73 |
79 |
74 IMPORT_C void GetMimeType(const TDesC& aFileName, TDes& aMimeType); |
80 IMPORT_C void GetMimeType(const TDesC& aFileName, TDes& aMimeType); |
75 |
81 |
76 IMPORT_C void CheckForDeletedShows(TUint aFeedUid); |
82 IMPORT_C void CheckForDeletedShows(TUint aFeedUid); |
77 IMPORT_C CMetaDataReader& MetaDataReader(); |
83 IMPORT_C CMetaDataReader& MetaDataReader(); |
|
84 IMPORT_C void MoveDownloadUpL(TUint aUid); |
|
85 IMPORT_C void MoveDownloadDownL(TUint aUid); |
78 |
86 |
79 private: |
87 private: |
80 // from HttpClientObserver, dont have to be public |
88 // from HttpClientObserver, dont have to be public |
81 void Connected(CHttpClient* aClient); |
89 void Connected(CHttpClient* aClient); |
82 void Disconnected(CHttpClient* aClient); |
90 void Disconnected(CHttpClient* aClient); |
125 void DBRemoveDownloadL(TUint aUid); |
133 void DBRemoveDownloadL(TUint aUid); |
126 void DBGetAllDownloadsL(RShowInfoArray& aShowArray); |
134 void DBGetAllDownloadsL(RShowInfoArray& aShowArray); |
127 TUint DBGetDownloadsCountL(); |
135 TUint DBGetDownloadsCountL(); |
128 void DBAddDownloadL(TUint aUid); |
136 void DBAddDownloadL(TUint aUid); |
129 CShowInfo* DBGetNextDownloadL(); |
137 CShowInfo* DBGetNextDownloadL(); |
|
138 void DBSwapDownloadsL(TDownload aFirstDL, TDownload aSecondDL); |
130 |
139 |
131 private: |
140 private: |
132 CHttpClient* iShowClient; |
141 CHttpClient* iShowClient; |
133 |
142 |
134 CPodcastModel& iPodcastModel; |
143 CPodcastModel& iPodcastModel; |