engine/inc/FeedEngine.h
changeset 109 223f270fa7ff
parent 102 04c6ccce8e7e
child 116 a2e43aa1ad11
equal deleted inserted replaced
108:554d9980157f 109:223f270fa7ff
    68 	IMPORT_C TBool UpdateFeedL(TUint aFeedUid);
    68 	IMPORT_C TBool UpdateFeedL(TUint aFeedUid);
    69 	IMPORT_C void UpdateAllFeedsL(TBool aAutoUpdate = EFalse);
    69 	IMPORT_C void UpdateAllFeedsL(TBool aAutoUpdate = EFalse);
    70 	IMPORT_C void CancelUpdateAllFeeds();
    70 	IMPORT_C void CancelUpdateAllFeeds();
    71 	IMPORT_C const RFeedInfoArray& GetSortedFeeds();
    71 	IMPORT_C const RFeedInfoArray& GetSortedFeeds();
    72 	IMPORT_C CFeedInfo* GetFeedInfoByUid(TUint aFeedUid);	
    72 	IMPORT_C CFeedInfo* GetFeedInfoByUid(TUint aFeedUid);	
    73 	IMPORT_C void GetStatsByFeed(TUint aFeedUid, TUint &aNumShows, TUint &aNumUnplayed);
    73 	IMPORT_C void GetStatsByFeedL(TUint aFeedUid, TUint &aNumShows, TUint &aNumUnplayed);
    74 	IMPORT_C void GetDownloadedStats(TUint &aNumShows, TUint &aNumUnplayed);
       
    75 
    74 
    76 	IMPORT_C void AddObserver(MFeedEngineObserver *observer);
    75 	IMPORT_C void AddObserver(MFeedEngineObserver *observer);
    77 	IMPORT_C void RemoveObserver(MFeedEngineObserver *observer);
    76 	IMPORT_C void RemoveObserver(MFeedEngineObserver *observer);
    78 
    77 
    79 	void RunFeedTimer();
    78 	void RunFeedTimer();
   121 	void NotifyOpmlParsingCompleteL(TInt aError, TUint aNumFeedsAdded);
   120 	void NotifyOpmlParsingCompleteL(TInt aError, TUint aNumFeedsAdded);
   122 
   121 
   123 	
   122 	
   124 private:
   123 private:
   125 	void DBLoadFeedsL();
   124 	void DBLoadFeedsL();
   126 	TBool DBRemoveFeed(TUint aUid);
   125 	void DBRemoveFeedL(TUint aUid);
   127 	TBool DBAddFeedL(const CFeedInfo& aTtem);
   126 	void DBAddFeedL(const CFeedInfo& aTtem);
   128 	CFeedInfo* DBGetFeedInfoByUidL(TUint aFeedUid);	
   127 	CFeedInfo* DBGetFeedInfoByUidL(TUint aFeedUid);	
   129 	TUint DBGetFeedCount();
   128 	TUint DBGetFeedCountL();
   130 	TBool DBUpdateFeedL(const CFeedInfo& aItem);
   129 	void DBUpdateFeedL(const CFeedInfo& aItem);
   131 	void DBGetStatsByFeed(TUint aFeedUid, TUint &aNumShows, TUint &aNumUnplayed);
   130 	void DBGetStatsByFeedL(TUint aFeedUid, TUint &aNumShows, TUint &aNumUnplayed);
   132 
   131 
   133 		
   132 		
   134 private:
   133 private:
   135 	CHttpClient* iFeedClient;
   134 	CHttpClient* iFeedClient;
   136 	TClientState iClientState;
   135 	TClientState iClientState;