diff -r 9569ea080d5a -r 4d230e702aa3 engine/inc/PodcastUtils.h --- a/engine/inc/PodcastUtils.h Thu Mar 11 20:53:00 2010 +0100 +++ b/engine/inc/PodcastUtils.h Tue Apr 27 19:26:48 2010 +0100 @@ -20,10 +20,25 @@ #define PODCASTUTILS_H_ #include +#include + +// Cleanup stack macro for SQLite3 +static void Cleanup_sqlite3_finalize_wrapper(TAny* handle) + { + sqlite3_finalize(static_cast(handle)); + } + +#define Cleanup_sqlite3_finalize_PushL(__handle) CleanupStack::PushL(TCleanupItem(&Cleanup_sqlite3_finalize_wrapper, __handle)) _LIT(KURLPrefix, "http://"); _LIT(KItpcPrefix, "itpc://"); -_LIT(KPcastPrefix, "pcast://"); +_LIT(KPcastPrefix, "pcast://"); + +_LIT(KVideoFormat1, ".wmv"); +_LIT(KVideoFormat2, ".avi"); +_LIT(KVideoFormat3, ".mp4"); + + class PodcastUtils { @@ -37,6 +52,7 @@ IMPORT_C static void SQLEncode(TDes &aString); IMPORT_C static void XMLEncode(TDes &aString); IMPORT_C static void RemoveAllFormatting(TDes & aString); + IMPORT_C static TBool IsVideoShow(TDesC &aUrl); }; #endif /* PODCASTUTILS_H_ */