Add a convenience function to do the parsing, handling XML and JSON
cases
This commit is contained in:
parent
ed7b5b06d3
commit
f442c2f605
2 changed files with 75 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue