This repository has been archived on 2022-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
fanny-app/headers/serverconn.h

28 lines
496 B
C
Raw Normal View History

2018-06-21 08:47:09 +02:00
#ifndef SERVERCONN_H
#define SERVERCONN_H
#include <QObject>
#include <QtNetwork>
#include <QAuthenticator>
typedef struct strReturnData{
int status_code;
QString text;
}ReturnData_t;
class ServerConn : public QObject
{
Q_OBJECT
public:
QNetworkAccessManager *networkManager;
explicit ServerConn(QObject *parent = nullptr);
Q_INVOKABLE QString login();
ReturnData_t senddata(QUrl serviceUrl, QUrlQuery postData);
signals:
public slots:
};
#endif // SERVERCONN_H