mirror of
https://gitlab.com/spaceti-app/integrations/acs/colnod-connector.git
synced 2026-07-12 14:20:46 +02:00
33 lines
496 B
C++
33 lines
496 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <qnetworkreply.h>
|
|
|
|
class Response : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
|
|
Response();
|
|
|
|
int getStatusCode();
|
|
QString getJson() {return json;}
|
|
void setReply(QNetworkReply* rpl) {reply = rpl;}
|
|
QNetworkReply* getReply() {return reply;}
|
|
public:
|
|
|
|
|
|
signals:
|
|
|
|
void ready();
|
|
|
|
|
|
private slots:
|
|
void setJson() {json = reply->readAll();}
|
|
|
|
|
|
private:
|
|
QString json;
|
|
QNetworkReply *reply = nullptr;
|
|
};
|