engine/inc/FeedEngine.h
changeset 66 41d00e97e2f7
parent 63 a8538f50e2ba
child 69 04c6ccce8e7e
equal deleted inserted replaced
65:523e04129df6 66:41d00e97e2f7
    76 	IMPORT_C void AddObserver(MFeedEngineObserver *observer);
    76 	IMPORT_C void AddObserver(MFeedEngineObserver *observer);
    77 	IMPORT_C void RemoveObserver(MFeedEngineObserver *observer);
    77 	IMPORT_C void RemoveObserver(MFeedEngineObserver *observer);
    78 
    78 
    79 	void RunFeedTimer();
    79 	void RunFeedTimer();
    80 	
    80 	
    81 	IMPORT_C void UpdateFeed(CFeedInfo *aItem);
    81 	IMPORT_C void UpdateFeedL(CFeedInfo *aItem);
    82 	/**
    82 	/**
    83 	 * Returns the current internal state of the feed engine4
    83 	 * Returns the current internal state of the feed engine4
    84 	 */
    84 	 */
    85 	IMPORT_C TClientState ClientState();
    85 	IMPORT_C TClientState ClientState();
    86 
    86 
    92 	
    92 	
    93 	IMPORT_C void SearchForFeedL(TDesC& aSearchString);
    93 	IMPORT_C void SearchForFeedL(TDesC& aSearchString);
    94 	IMPORT_C void AddSearchResultL(CFeedInfo *item);
    94 	IMPORT_C void AddSearchResultL(CFeedInfo *item);
    95 	IMPORT_C const RFeedInfoArray& GetSearchResults();
    95 	IMPORT_C const RFeedInfoArray& GetSearchResults();
    96 
    96 
    97 	IMPORT_C void OpmlParsingComplete(TInt aError, TUint aNumFeedsAdded);
    97 	IMPORT_C void OpmlParsingCompleteL(TInt aError, TUint aNumFeedsAdded);
    98 	void NotifyFeedUpdateComplete(TInt aFeedUid, TInt aError);
    98 	void NotifyFeedUpdateComplete(TInt aFeedUid, TInt aError);
    99 protected:
    99 protected:
   100 	
   100 	
   101 	static TInt CompareFeedsByTitle(const CFeedInfo &a, const CFeedInfo &b);
   101 	static TInt CompareFeedsByTitle(const CFeedInfo &a, const CFeedInfo &b);
   102 
   102 
   116 	void ParsingCompleteL(CFeedInfo *aItem);
   116 	void ParsingCompleteL(CFeedInfo *aItem);
   117 
   117 
   118 	void GetFeedImageL(CFeedInfo *aFeedInfo);
   118 	void GetFeedImageL(CFeedInfo *aFeedInfo);
   119 	
   119 	
   120 	void UpdateNextFeedL();
   120 	void UpdateNextFeedL();
   121 	void NotifyFeedUpdateComplete(TInt aError);	
   121 	void NotifyOpmlParsingCompleteL(TInt aError, TUint aNumFeedsAdded);
   122 	void NotifyOpmlParsingComplete(TInt aError, TUint aNumFeedsAdded);
       
   123 
   122 
   124 	
   123 	
   125 private:
   124 private:
   126 	void DBLoadFeedsL();
   125 	void DBLoadFeedsL();
   127 	TBool DBRemoveFeed(TUint aUid);
   126 	TBool DBRemoveFeed(TUint aUid);
   128 	TBool DBAddFeedL(const CFeedInfo& aTtem);
   127 	TBool DBAddFeedL(const CFeedInfo& aTtem);
   129 	CFeedInfo* DBGetFeedInfoByUidL(TUint aFeedUid);	
   128 	CFeedInfo* DBGetFeedInfoByUidL(TUint aFeedUid);	
   130 	TUint DBGetFeedCount();
   129 	TUint DBGetFeedCount();
   131 	TBool DBUpdateFeed(const CFeedInfo& aItem);
   130 	TBool DBUpdateFeedL(const CFeedInfo& aItem);
   132 	void DBGetStatsByFeed(TUint aFeedUid, TUint &aNumShows, TUint &aNumUnplayed);
   131 	void DBGetStatsByFeed(TUint aFeedUid, TUint &aNumShows, TUint &aNumUnplayed);
   133 
   132 
   134 		
   133 		
   135 private:
   134 private:
   136 	CHttpClient* iFeedClient;
   135 	CHttpClient* iFeedClient;