-
Notifications
You must be signed in to change notification settings - Fork 1
/
qparsereply.cpp
66 lines (50 loc) · 1.09 KB
/
qparsereply.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#include "qparsereply.h"
#include "qparse.h"
#include "qparserequest.h"
QParseReply::QParseReply(QParseRequest *request, QParse *parent)
: QObject(parent)
, request(request)
, isJson(true)
, hasError(false)
, errorMessage()
, errorCode(0) {
}
QParseRequest* QParseReply::getRequest() const {
return request;
}
bool QParseReply::getIsJson() const {
return isJson;
}
void QParseReply::setIsJson(bool value) {
isJson = value;
}
QJsonObject QParseReply::getJson() const {
return json;
}
void QParseReply::setJson(const QJsonObject &value) {
json = value;
}
QUrl QParseReply::getLocalUrl() const {
return localUrl;
}
void QParseReply::setLocalUrl(const QUrl &value) {
localUrl = value;
}
bool QParseReply::getHasError() const {
return hasError;
}
void QParseReply::setHasError(bool value) {
hasError = value;
}
QString QParseReply::getErrorMessage() const {
return errorMessage;
}
void QParseReply::setErrorMessage(const QString &value) {
errorMessage = value;
}
int QParseReply::getErrorCode() const {
return errorCode;
}
void QParseReply::setErrorCode(int value) {
errorCode = value;
}