engine/inc/ShowEngine.h
branchsymbian1
changeset 130 92572a695a1d
parent 65 bcd88ba95046
child 147 2e626f5a52c8
equal deleted inserted replaced
129:7ef9faf10a81 130:92572a695a1d
    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 typedef enum TShowFilter
       
    33 	{
       
    34 	EAllShows,
       
    35 	ENewShows,
       
    36 	EDownloadedShows,
       
    37 	ENewAndDownloadedShows
       
    38 	};
    31 
    39 
    32 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver
    40 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver
    33 {
    41 {
    34 public:
    42 public:
    35 	IMPORT_C static CShowEngine* NewL(CPodcastModel& aPodcastModel);
    43 	IMPORT_C static CShowEngine* NewL(CPodcastModel& aPodcastModel);
    70 
    78 
    71 	IMPORT_C void GetMimeType(const TDesC& aFileName, TDes& aMimeType);
    79 	IMPORT_C void GetMimeType(const TDesC& aFileName, TDes& aMimeType);
    72 
    80 
    73 	IMPORT_C void CheckForDeletedShows(TUint aFeedUid);
    81 	IMPORT_C void CheckForDeletedShows(TUint aFeedUid);
    74 	IMPORT_C CMetaDataReader& MetaDataReader();
    82 	IMPORT_C CMetaDataReader& MetaDataReader();
    75 
    83 	IMPORT_C void SetShowFilter(TShowFilter aFilter);
    76 private:
    84 private:
    77 	// from HttpClientObserver, dont have to be public
    85 	// from HttpClientObserver, dont have to be public
    78 	void Connected(CHttpClient* aClient);
    86 	void Connected(CHttpClient* aClient);
    79 	void Disconnected(CHttpClient* aClient);
    87 	void Disconnected(CHttpClient* aClient);
    80 	void CompleteL(CHttpClient* aClient, TInt aError);
    88 	void CompleteL(CHttpClient* aClient, TInt aError);
   140     RApaLsSession iApaSession;
   148     RApaLsSession iApaSession;
   141 	TBuf8<512> iRecogBuffer;
   149 	TBuf8<512> iRecogBuffer;
   142 	
   150 	
   143 	sqlite3& iDB;
   151 	sqlite3& iDB;
   144     TBuf<KDefaultSQLDataBufferLength> iSqlBuffer;
   152     TBuf<KDefaultSQLDataBufferLength> iSqlBuffer;
       
   153     TShowFilter iShowFilter;
   145 };
   154 };
   146 
   155 
   147 #endif /*SHOWENGINE_H_*/
   156 #endif /*SHOWENGINE_H_*/
   148 
   157