engine/inc/PodcastUtils.h
changeset 60 4d230e702aa3
parent 15 93d9f66bf50b
child 176 1c8b56cb6409
child 246 140a404c6b53
--- 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 <e32cmn.h>
+#include <sqlite3.h>
+
+// Cleanup stack macro for SQLite3
+static void Cleanup_sqlite3_finalize_wrapper(TAny* handle)
+	{
+	sqlite3_finalize(static_cast<sqlite3_stmt*>(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_ */