equal
deleted
inserted
replaced
52 EUpdatingFeed, |
52 EUpdatingFeed, |
53 EUpdatingImage, |
53 EUpdatingImage, |
54 ESearching |
54 ESearching |
55 }; |
55 }; |
56 |
56 |
|
57 |
57 class CFeedEngine : public CBase, public MHttpClientObserver, public MFeedParserObserver |
58 class CFeedEngine : public CBase, public MHttpClientObserver, public MFeedParserObserver |
58 { |
59 { |
59 public: |
60 public: |
60 static CFeedEngine* NewL(CPodcastModel& aPodcastModel); |
61 static CFeedEngine* NewL(CPodcastModel& aPodcastModel); |
61 virtual ~CFeedEngine(); |
62 virtual ~CFeedEngine(); |
93 IMPORT_C void AddSearchResultL(CFeedInfo *item); |
94 IMPORT_C void AddSearchResultL(CFeedInfo *item); |
94 IMPORT_C const RFeedInfoArray& GetSearchResults(); |
95 IMPORT_C const RFeedInfoArray& GetSearchResults(); |
95 |
96 |
96 IMPORT_C void OpmlParsingCompleteL(TInt aError, TUint aNumFeedsAdded); |
97 IMPORT_C void OpmlParsingCompleteL(TInt aError, TUint aNumFeedsAdded); |
97 void NotifyFeedUpdateComplete(TInt aFeedUid, TInt aError); |
98 void NotifyFeedUpdateComplete(TInt aFeedUid, TInt aError); |
|
99 |
98 protected: |
100 protected: |
99 |
101 |
100 static TInt CompareFeedsByTitle(const CFeedInfo &a, const CFeedInfo &b); |
102 static TInt CompareFeedsByTitle(const CFeedInfo &a, const CFeedInfo &b); |
101 |
103 |
102 private: |
104 private: |
153 |
155 |
154 // new feeds only add one show to download list when auto downloading |
156 // new feeds only add one show to download list when auto downloading |
155 TBool newFeed; |
157 TBool newFeed; |
156 TUint showsAdded; |
158 TUint showsAdded; |
157 |
159 |
|
160 // offline mode detection |
|
161 CRepository* iRepository; |
|
162 |
158 sqlite3& iDB; |
163 sqlite3& iDB; |
159 |
164 |
160 TBuf<KDefaultSQLDataBufferLength> iSqlBuffer; |
165 TBuf<KDefaultSQLDataBufferLength> iSqlBuffer; |
161 |
166 |
162 COpmlParser* iOpmlParser; |
167 COpmlParser* iOpmlParser; |