equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007-2010 Sebastian Brannstrom, Lars Persson, EmbedDev AB |
|
3 * |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of the License "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Initial Contributors: |
|
11 * EmbedDev AB - initial contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef PODCASTUTILS_H_ |
|
20 #define PODCASTUTILS_H_ |
|
21 |
|
22 #include <e32cmn.h> |
|
23 |
|
24 _LIT(KURLPrefix, "http://"); |
|
25 _LIT(KItpcPrefix, "itpc://"); |
|
26 _LIT(KPcastPrefix, "pcast://"); |
|
27 |
|
28 class PodcastUtils |
|
29 { |
|
30 public: |
|
31 IMPORT_C static void FixProtocolsL(TDes &aUrl); |
|
32 IMPORT_C static void CleanHtmlL(TDes &str); |
|
33 IMPORT_C static void ReplaceString(TDes & aString, const TDesC& aStringToReplace, const TDesC& aReplacement); |
|
34 IMPORT_C static void ReplaceChar(TDes & aString, TUint aCharToReplace, TUint aReplacement); |
|
35 IMPORT_C static void EnsureProperPathName(TFileName &aPath); |
|
36 IMPORT_C static void FileNameFromUrl(const TDesC &aUrl, TFileName &aFileName); |
|
37 IMPORT_C static void SQLEncode(TDes &aString); |
|
38 IMPORT_C static void XMLEncode(TDes &aString); |
|
39 }; |
|
40 |
|
41 #endif /* PODCASTUTILS_H_ */ |