engine/inc/ShowEngine.h
changeset 93 c2f1ea38ec70
parent 85 b03018fb3418
child 107 17da6d3a5a4b
equal deleted inserted replaced
92:70749e2f572d 93:c2f1ea38ec70
    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 #include "mpxcollectionhelper.h"
       
    32 #include "mpxcollectionhelperobserver.h"
    31 
    33 
    32 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver
    34 class CShowEngine : public CBase, public MHttpClientObserver, public MMetaDataReaderObserver,
       
    35 					public MMPXCollectionHelperObserver
    33 {
    36 {
    34 public:
    37 public:
    35 	IMPORT_C static CShowEngine* NewL(CPodcastModel& aPodcastModel);
    38 	IMPORT_C static CShowEngine* NewL(CPodcastModel& aPodcastModel);
    36 	IMPORT_C virtual ~CShowEngine();
    39 	IMPORT_C virtual ~CShowEngine();
    37 	
    40 	
    82 	void DownloadInfo(CHttpClient* aClient, int aSize);
    85 	void DownloadInfo(CHttpClient* aClient, int aSize);
    83 	void FileError(TUint aError);
    86 	void FileError(TUint aError);
    84 	// from MetaDataReaderObserver
    87 	// from MetaDataReaderObserver
    85 	void ReadMetaDataL(CShowInfo& aShowInfo);
    88 	void ReadMetaDataL(CShowInfo& aShowInfo);
    86 	void ReadMetaDataCompleteL();
    89 	void ReadMetaDataCompleteL();
    87 	
    90 	// from MMPXCollectionHelperObserver
       
    91     void HandleAddFileCompleteL( TInt /*aErr*/ ) {}  
       
    92 
    88 private:
    93 private:
    89 	CShowEngine(CPodcastModel& aPodcastModel);
    94 	CShowEngine(CPodcastModel& aPodcastModel);
    90 	void ConstructL();
    95 	void ConstructL();
    91 
    96 
    92 	void GetShowL(CShowInfo *info);
    97 	void GetShowL(CShowInfo *info);
   140     RApaLsSession iApaSession;
   145     RApaLsSession iApaSession;
   141 	TBuf8<512> iRecogBuffer;
   146 	TBuf8<512> iRecogBuffer;
   142 	
   147 	
   143 	sqlite3& iDB;
   148 	sqlite3& iDB;
   144     TBuf<KDefaultSQLDataBufferLength> iSqlBuffer;
   149     TBuf<KDefaultSQLDataBufferLength> iSqlBuffer;
       
   150     
       
   151     MMPXCollectionHelper* iCollectionHelper;
   145 };
   152 };
   146 
   153 
   147 #endif /*SHOWENGINE_H_*/
   154 #endif /*SHOWENGINE_H_*/
   148 
   155