Add a convenience function to do the parsing, handling XML and JSON

cases
This commit is contained in:
Luca Beltrame 2013-03-17 11:58:14 +01:00
commit f442c2f605
2 changed files with 75 additions and 0 deletions

View file

@ -23,8 +23,12 @@
#ifndef UTILS_H
#define UTILS_H
// Qt
#include <QtCore/QStringList>
// KDE
#include <kurl.h>
/**
@ -100,5 +104,10 @@ namespace Danbooru {
const QString& password);
QList<QVariant> parseDanbooruResult(QByteArray data, QString xlmElement,
bool* result);
QList<QVariant> parseDanbooruResult(QByteArray data, bool* result);
}
#endif // UTILS_H