author | Lars Persson <lars.persson@embeddev.se> |
Wed, 31 Mar 2010 08:19:35 +0200 (2010-03-31) | |
changeset 91 | 87cb33beeae2 |
parent 15 | 93d9f66bf50b |
child 60 | 4d230e702aa3 |
child 109 | 223f270fa7ff |
permissions | -rw-r--r-- |
/* * Copyright (c) 2007-2010 Sebastian Brannstrom, Lars Persson, EmbedDev AB * * All rights reserved. * This component and the accompanying materials are made available * under the terms of the License "Eclipse Public License v1.0" * which accompanies this distribution, and is available * at the URL "http://www.eclipse.org/legal/epl-v10.html". * * Initial Contributors: * EmbedDev AB - initial contribution. * * Contributors: * * Description: * */ #ifndef PODCASTUTILS_H_ #define PODCASTUTILS_H_ #include <e32cmn.h> _LIT(KURLPrefix, "http://"); _LIT(KItpcPrefix, "itpc://"); _LIT(KPcastPrefix, "pcast://"); class PodcastUtils { public: IMPORT_C static void FixProtocolsL(TDes &aUrl); IMPORT_C static void CleanHtmlL(TDes &str); IMPORT_C static void ReplaceString(TDes & aString, const TDesC& aStringToReplace, const TDesC& aReplacement); IMPORT_C static void ReplaceChar(TDes & aString, TUint aCharToReplace, TUint aReplacement); IMPORT_C static void EnsureProperPathName(TFileName &aPath); IMPORT_C static void FileNameFromUrl(const TDesC &aUrl, TFileName &aFileName); IMPORT_C static void SQLEncode(TDes &aString); IMPORT_C static void XMLEncode(TDes &aString); IMPORT_C static void RemoveAllFormatting(TDes & aString); }; #endif /* PODCASTUTILS_H_ */