KIO
dataprotocol.cpp
Go to the documentation of this file.
181 const QByteArray &raw_url = header_info.url = QByteArray::fromPercentEncoding( url.encodedPath() );
242 DataProtocol::DataProtocol() {
void data(const QByteArray &)
static QString extract(const QByteArray &buf, int &pos, const char c1= '\0')
extracts the string between the current position pos and the first occurrence of either c1 or comma (...
Definition: dataprotocol.cpp:108
QByteArray fromPercentEncoding(const QByteArray &input, char percent)
static void ignoreWS(const QString &buf, int &pos)
ignores all whitespaces
Definition: dataprotocol.cpp:122
static QString parseQuotedString(const QString &buf, int &pos)
parses a quoted string as per rfc 822.
Definition: dataprotocol.cpp:137
void totalSize(KIO::filesize_t)
int length() const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
void finished()
There are two classes that specifies the protocol between application (job) and kioslave.
Definition: slavebase.h:50
bool isEmpty() const
QString trimmed() const
ushort unicode() const
QByteArray mid(int pos, int len) const
QString toLower() const
static int find(const QByteArray &buf, int begin, const char c1)
returns the position of the first occurrence of any of the given characters c1 or comma ('...
Definition: dataprotocol.cpp:85
QByteArray encodedPath() const
void mimeType(const QString &)
static DataHeader parseDataHeader(const KUrl &url, const bool mimeOnly)
parses the header of a data url
Definition: dataprotocol.cpp:166
QByteArray fromBase64(const QByteArray &base64)
QTextCodec * codecForName(const QByteArray &name)
int length() const
void reserve(int size)
const QString & staticQString(const char *str)
typedef ConstIterator
int size() const
void squeeze()
This kioslave provides support of data urls as specified by rfc 2397.
Definition: dataprotocol.h:63
QString toUnicode(const QByteArray &a) const
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.