mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
added exclusive selection between folders and readlind lists views
This commit is contained in:
30
YACReaderLibrary/comic_vine/model/response_parser.h
Normal file
30
YACReaderLibrary/comic_vine/model/response_parser.h
Normal file
@ -0,0 +1,30 @@
|
||||
#ifndef RESPONSE_PARSER_H
|
||||
#define RESPONSE_PARSER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
class ResponseParser : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit ResponseParser(QObject *parent = 0);
|
||||
bool responseError();
|
||||
QString errorDescription();
|
||||
qint32 getNumResults();
|
||||
qint32 getCurrentPage();
|
||||
qint32 getTotalPages();
|
||||
bool isError(qint32 error);
|
||||
signals:
|
||||
|
||||
public slots:
|
||||
void loadJSONResponse(const QString & response);
|
||||
|
||||
protected:
|
||||
bool error;
|
||||
QString errorTxt;
|
||||
qint32 numResults;
|
||||
qint32 currentPage;
|
||||
qint32 totalPages;
|
||||
};
|
||||
|
||||
#endif // RESPONSE_PARSER_H
|
Reference in New Issue
Block a user