17#include <QHttpMultiPart>
19#define REQUEST_UPLOAD_FILE_KEY "_file_"
59 MaxPriorityValue = 0xff
66 virtual QString makeUpload()
const;
84 const QString& request()
const;
90 void setRequest(
const QString &newRequest);
96 const QMap<QString, QVariant> &args()
const;
103 void addArg(
const QString& key,
const QVariant& val);
109 void setArgs(
const QMap<QString, QVariant> &newArgs);
116 QString argsToUrl()
const;
124 QSharedPointer<QHttpMultiPart> argsToMultipartFormData()
const;
136 QMap<QString, QVariant> _args;
The iRequest class Is main interface for all custom requests.
RequestMethod
RequestMethod Tgis islist of supported requests types of the requests.
@ Post
general post request
@ Get
general ger request, all request data sent as a url line
virtual QString baseAddress() const =0
baseAddress This method return base domain of remote server.
virtual RequestMethod method() const =0
method returns method of the request.
RequestPriority
The RequestPriority enum.
QHash< QString, QSharedPointer< QJsonObject > > ExtraJsonObjects
ExtraJsonObjects hash map of the extra objects of the message.