author | teknolog |
Wed, 03 Mar 2010 23:56:05 +0000 | |
changeset 32 | 26a3f2dfba08 |
parent 15 | 93d9f66bf50b |
child 76 | 223f270fa7ff |
permissions | -rw-r--r-- |
2 | 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); |
|
15
93d9f66bf50b
Cleaning description better for second line in search results
teknolog
parents:
2
diff
changeset
|
39 |
IMPORT_C static void RemoveAllFormatting(TDes & aString); |
2 | 40 |
}; |
41 |
||
42 |
#endif /* PODCASTUTILS_H_ */ |