engine/inc/PodcastModel.h
changeset 83 a2e43aa1ad11
parent 80 50345a6ad0c3
child 98 5f9e7e14eb11
equal deleted inserted replaced
82:d87e984bd8b8 83:a2e43aa1ad11
    27 #include <cmmanager.h>
    27 #include <cmmanager.h>
    28 
    28 
    29 #include "FeedInfo.h"
    29 #include "FeedInfo.h"
    30 #include "ShowInfo.h"
    30 #include "ShowInfo.h"
    31 #include "debug.h"
    31 #include "debug.h"
    32 #include "sqlite3.h"
    32 #include <sqlite3.h>
    33 #include "ImageHandler.h"
    33 #include "ImageHandler.h"
    34 
    34 
    35 // SQLite leaks memory when sorting, so to test our own memory leaks we need to disable this
    35 // SQLite leaks memory when sorting, so to test our own memory leaks we need to disable this
    36 //#define DONT_SORT_SQL
    36 //#define DONT_SORT_SQL
    37 class RCmManager;
    37 class RCmManager;
    83 	void SetProxyUsageIfNeededL(RHTTPSession& aSession);
    83 	void SetProxyUsageIfNeededL(RHTTPSession& aSession);
    84 	void GetProxyInformationForConnectionL(TBool& aIsUsed, HBufC*& aServerName, TUint32& aPort);
    84 	void GetProxyInformationForConnectionL(TBool& aIsUsed, HBufC*& aServerName, TUint32& aPort);
    85 	TInt GetIapId();
    85 	TInt GetIapId();
    86 	
    86 	
    87 	sqlite3* DB();
    87 	sqlite3* DB();
    88 	void DropDB();
    88 	IMPORT_C void DropDB();
    89 	void ResetDB();
       
    90 	
    89 	
    91 	IMPORT_C void GetShowsDownloadingL();
    90 	IMPORT_C void GetShowsDownloadingL();
    92 	IMPORT_C void GetShowsByFeedL(TUint aFeedUid);
    91 	IMPORT_C void GetShowsByFeedL(TUint aFeedUid);
    93 	IMPORT_C void MarkSelectionPlayedL();
    92 	IMPORT_C void MarkSelectionPlayedL();
    94 	
    93 	
    96 	IMPORT_C TBool IsFirstStartup();
    95 	IMPORT_C TBool IsFirstStartup();
    97 	IMPORT_C CImageHandler& ImageHandler();
    96 	IMPORT_C CImageHandler& ImageHandler();
    98 protected:
    97 protected:
    99 	CPodcastModel();
    98 	CPodcastModel();
   100 	void ConstructL();
    99 	void ConstructL();
   101 	
   100 	void ResetDB();
   102 	void OpenDBL();
   101 	void OpenDBL();
   103 	// From ImageHandler
   102 	// From ImageHandler
   104 	void ImageOperationCompleteL(TInt aError, TUint aHandle, CPodcastModel& aPodcastModel);
   103 	void ImageOperationCompleteL(TInt aError, TUint aHandle, CPodcastModel& aPodcastModel);
   105 private:	
   104 private:	
   106    CShowInfo* iPlayingPodcast;
   105    CShowInfo* iPlayingPodcast;