engine/src/ShowEngine.cpp
changeset 76 223f270fa7ff
parent 52 b778853e60a7
child 78 12c59f14a031
equal deleted inserted replaced
75:554d9980157f 76:223f270fa7ff
    31 //#include <mpxattribute.h>
    31 //#include <mpxattribute.h>
    32 //#include <mpxmediageneraldefs.h>
    32 //#include <mpxmediageneraldefs.h>
    33 
    33 
    34 const TUint KMaxDownloadErrors = 3;
    34 const TUint KMaxDownloadErrors = 3;
    35 const TInt KMimeBufLength = 100;
    35 const TInt KMimeBufLength = 100;
    36 
       
    37 // Cleanup stack macro for SQLite3
       
    38 // TODO Move this to some common place.
       
    39 static void Cleanup_sqlite3_finalize_wrapper(TAny* handle)
       
    40 	{
       
    41 	sqlite3_finalize(static_cast<sqlite3_stmt*>(handle));
       
    42 	}
       
    43 #define Cleanup_sqlite3_finalize_PushL(__handle) CleanupStack::PushL(TCleanupItem(&Cleanup_sqlite3_finalize_wrapper, __handle))
       
    44 
       
    45 
    36 
    46 CShowEngine::CShowEngine(CPodcastModel& aPodcastModel) :
    37 CShowEngine::CShowEngine(CPodcastModel& aPodcastModel) :
    47 	iPodcastModel(aPodcastModel),
    38 	iPodcastModel(aPodcastModel),
    48 	iDB(*aPodcastModel.DB())
    39 	iDB(*aPodcastModel.DB())
    49 	{
    40 	{