You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
443 B
23 lines
443 B
#pragma once
|
|
|
|
#include <QString>
|
|
#include <QObject>
|
|
#include <QObjectUserData>
|
|
|
|
class HttpClient;
|
|
|
|
class XHttpClientCallback : public QObject, public QObjectUserData {
|
|
Q_OBJECT
|
|
public:
|
|
XHttpClientCallback(HttpClient* client);
|
|
void setInfo(const char* id, const char* method);
|
|
|
|
private slots:
|
|
void finished(const QJsonDocument& json);
|
|
void error(const QString& errTxt);
|
|
|
|
private:
|
|
HttpClient* client;
|
|
QString reqId;
|
|
QString reqMethod;
|
|
}; |