equal
deleted
inserted
replaced
30 |
30 |
31 #define Cleanup_sqlite3_finalize_PushL(__handle) CleanupStack::PushL(TCleanupItem(&Cleanup_sqlite3_finalize_wrapper, __handle)) |
31 #define Cleanup_sqlite3_finalize_PushL(__handle) CleanupStack::PushL(TCleanupItem(&Cleanup_sqlite3_finalize_wrapper, __handle)) |
32 |
32 |
33 _LIT(KURLPrefix, "http://"); |
33 _LIT(KURLPrefix, "http://"); |
34 _LIT(KItpcPrefix, "itpc://"); |
34 _LIT(KItpcPrefix, "itpc://"); |
35 _LIT(KPcastPrefix, "pcast://"); |
35 _LIT(KPcastPrefix, "pcast://"); |
|
36 |
|
37 _LIT(KVideoFormat1, ".wmv"); |
|
38 _LIT(KVideoFormat2, ".avi"); |
|
39 _LIT(KVideoFormat3, ".mp4"); |
|
40 |
|
41 |
36 |
42 |
37 class PodcastUtils |
43 class PodcastUtils |
38 { |
44 { |
39 public: |
45 public: |
40 IMPORT_C static void FixProtocolsL(TDes &aUrl); |
46 IMPORT_C static void FixProtocolsL(TDes &aUrl); |
44 IMPORT_C static void EnsureProperPathName(TFileName &aPath); |
50 IMPORT_C static void EnsureProperPathName(TFileName &aPath); |
45 IMPORT_C static void FileNameFromUrl(const TDesC &aUrl, TFileName &aFileName); |
51 IMPORT_C static void FileNameFromUrl(const TDesC &aUrl, TFileName &aFileName); |
46 IMPORT_C static void SQLEncode(TDes &aString); |
52 IMPORT_C static void SQLEncode(TDes &aString); |
47 IMPORT_C static void XMLEncode(TDes &aString); |
53 IMPORT_C static void XMLEncode(TDes &aString); |
48 IMPORT_C static void RemoveAllFormatting(TDes & aString); |
54 IMPORT_C static void RemoveAllFormatting(TDes & aString); |
|
55 IMPORT_C static TBool IsVideoShow(TDesC &aUrl); |
49 }; |
56 }; |
50 |
57 |
51 #endif /* PODCASTUTILS_H_ */ |
58 #endif /* PODCASTUTILS_H_ */ |