-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathRemoveBGConn.h
39 lines (33 loc) · 871 Bytes
/
RemoveBGConn.h
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
#ifndef REMOVEBGCONN_H
#define REMOVEBGCONN_H
#include <QObject>
#include <QFile>
#include <QThread>
#include <QTimer>
#include <QtNetwork/QNetworkAccessManager>
#include <QtNetwork/QHttpMultiPart>
#include <QtNetwork/QNetworkReply>
#include <QtNetwork/QNetworkRequest>
class RemoveBGConn : public QObject
{
Q_OBJECT
public:
RemoveBGConn();
signals:
void receivedData(QByteArray d, QString filePath);
void connectError(QString e);
void connectInfo(QString info);
public slots:
void postData(QString filepath, QString token, bool start);
bool postDataReal();
void solveReply();
void clearData();
private:
QNetworkAccessManager *accessManager = new QNetworkAccessManager();
QNetworkReply* reply;
QFile *file;
std::vector<QString> filepath;
std::vector<QString> token;
int i = 0;
};
#endif // REMOVEBGCONN_H