-
Notifications
You must be signed in to change notification settings - Fork 1
/
qparserequest.cpp
57 lines (45 loc) · 1.2 KB
/
qparserequest.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
#include "qparse.h"
#include "qparserequest.h"
QParseRequest::QParseRequest( QString parseClassName )
: QObject(QParse::instance())
, parseClassName(parseClassName)
, parseObject(NULL)
, parseFile(NULL)
, cacheControl(QParse::AlwaysCache)
, params() {
}
QParseRequest::QParseRequest( QParseFile* parseFile )
: QObject(QParse::instance())
, parseClassName()
, parseObject(NULL)
, parseFile(parseFile)
, cacheControl(QParse::AlwaysCache)
, params() {
}
void QParseRequest::addOption( QString name, QString value ) {
params.append( qMakePair(name, value) );
}
QList< QPair<QString,QString> > QParseRequest::getOptions() {
return params;
}
QParse::CacheControl QParseRequest::getCacheControl() const {
return cacheControl;
}
void QParseRequest::setCacheControl(const QParse::CacheControl &value) {
cacheControl = value;
}
QParseFile* QParseRequest::getParseFile() const {
return parseFile;
}
void QParseRequest::setParseFile(QParseFile* value) {
parseFile = value;
}
QParseObject* QParseRequest::getParseObject() const {
return parseObject;
}
void QParseRequest::setParseObject(QParseObject *value) {
parseObject = value;
}
QString QParseRequest::getParseClassName() const {
return parseClassName;
}