Main Page   Class Hierarchy   Compound List   File List   Compound Members  

helper.h

00001 /*
00002  *  SLP Helper functions (KDE versions)
00003  *  Copyright (C) 2002-2003 Tim Jansen <tim@tjansen.de>
00004  *
00005  *  This library is free software; you can redistribute it and/or
00006  *  modify it under the terms of the GNU Library General Public
00007  *  License as published by the Free Software Foundation; either
00008  *  version 2 of the License, or (at your option) any later version.
00009  *
00010  *  This library is distributed in the hope that it will be useful,
00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  *  Library General Public License for more details.
00014  *
00015  *  You should have received a copy of the GNU Library General Public License
00016  *  along with this library; see the file COPYING.LIB.  If not, write to
00017  *  the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018  *  Boston, MA 02111-1307, USA.
00019  */
00020 
00021 #ifndef KDE_SLP_HELPER_H
00022 #define KDE_SLP_HELPER_H
00023 
00024 #include <qstringlist.h>
00025 #include <qmap.h>
00026 
00027 /*   ****** *** ****** *** ******   */
00028 /*     Private Helper Functions     */
00029 /*   ****** *** ****** *** ******   */
00030 
00031 namespace KDE {
00032 namespace SLP {
00034         QChar getHexDigit(unsigned char c);
00035 
00037         QString convertToHex(unsigned char c);
00038 
00040         char convertHexDigit(QChar c);
00041 
00043         char convertHexChar(const QString &s, unsigned int pos);
00044 
00046         QString escapeScopeName(const QString &string);
00047 
00049         QString escapeAttributeValue(const QString &string);
00050 
00052         QString escapeAttributeName(const QString &string);
00053 
00055         QString escapeBlob(const QByteArray &array);
00056 
00058         QString unescapeString(const QString &string);
00059 
00061         QByteArray unescapeBlob(const QString &blob);
00062 
00064         QString getOneTag(const QString &attrs, int &position);
00065 
00067         QMap<QString,QString> parseAttributes(const QString &attrs);
00068 
00070         QString createScopeList(const QStringList &slist);
00071 
00073         QStringList parseStringList(const QString &string);
00074 
00076         QString unescapeString(const QString &string);
00077 
00079         bool parseUrl(const QString &url,
00080                 QString &type,
00081                 QString &abstractType);
00082 }
00083 }
00084 
00085 #endif
00086 

Generated on Tue Jun 24 20:14:35 2003 for KDE::SLP by doxygen1.2.18