equal
deleted
inserted
replaced
26 #include "PodcastModel.h" |
26 #include "PodcastModel.h" |
27 #include "HttpClient.h" |
27 #include "HttpClient.h" |
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 |
|
32 struct TDownload |
|
33 { |
|
34 TUint iIndex; |
|
35 TUint iUid; |
|
36 }; |
31 |
37 |
32 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver |
38 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver |
33 { |
39 { |
34 public: |
40 public: |
35 IMPORT_C static CShowEngine* NewL(CPodcastModel& aPodcastModel); |
41 IMPORT_C static CShowEngine* NewL(CPodcastModel& aPodcastModel); |
70 |
76 |
71 IMPORT_C void GetMimeType(const TDesC& aFileName, TDes& aMimeType); |
77 IMPORT_C void GetMimeType(const TDesC& aFileName, TDes& aMimeType); |
72 |
78 |
73 IMPORT_C void CheckForDeletedShows(TUint aFeedUid); |
79 IMPORT_C void CheckForDeletedShows(TUint aFeedUid); |
74 IMPORT_C CMetaDataReader& MetaDataReader(); |
80 IMPORT_C CMetaDataReader& MetaDataReader(); |
|
81 |
|
82 IMPORT_C void MoveDownloadUpL(TUint aUid); |
|
83 IMPORT_C void MoveDownloadDownL(TUint aUid); |
75 |
84 |
76 private: |
85 private: |
77 // from HttpClientObserver, dont have to be public |
86 // from HttpClientObserver, dont have to be public |
78 void Connected(CHttpClient* aClient); |
87 void Connected(CHttpClient* aClient); |
79 void Disconnected(CHttpClient* aClient); |
88 void Disconnected(CHttpClient* aClient); |
120 void DBRemoveDownloadL(TUint aUid); |
129 void DBRemoveDownloadL(TUint aUid); |
121 void DBGetAllDownloadsL(RShowInfoArray& aShowArray); |
130 void DBGetAllDownloadsL(RShowInfoArray& aShowArray); |
122 TUint DBGetDownloadsCountL(); |
131 TUint DBGetDownloadsCountL(); |
123 void DBAddDownloadL(TUint aUid); |
132 void DBAddDownloadL(TUint aUid); |
124 CShowInfo* DBGetNextDownloadL(); |
133 CShowInfo* DBGetNextDownloadL(); |
|
134 void DBSwapDownloadsL(TDownload aFirstDL, TDownload aSecondDL); |
125 |
135 |
126 private: |
136 private: |
127 CHttpClient* iShowClient; |
137 CHttpClient* iShowClient; |
128 |
138 |
129 CPodcastModel& iPodcastModel; |
139 CPodcastModel& iPodcastModel; |