-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnectwithserver.h
More file actions
executable file
·44 lines (36 loc) · 939 Bytes
/
connectwithserver.h
File metadata and controls
executable file
·44 lines (36 loc) · 939 Bytes
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
40
41
42
43
44
#ifndef CONNECTWITHSERVER_H
#define CONNECTWITHSERVER_H
#include <QObject>
#include <QFile>
#include <QtNetwork/QNetworkReply>
#include <QMessageBox>
#include <QDateTime>
#include <QEventLoop>
#include <QThread>
#include <QDir>
class ConnectWithServer : public QObject
{
Q_OBJECT
public:
explicit ConnectWithServer(QObject *parent = 0);
void registration(QString,QString,QString,QString);
void login(QString,QString);
void uploadAllData(QString, QString surl, QString request_name);
bool netIsWorking();
signals:
void notConnectWithServer();
void trueLogin();
void falseLogin();
void trueReg();
void falseReg();
public slots:
void loginRead();
void regRead();
private:
QNetworkReply *rep;
QNetworkReply *netReply;
QNetworkAccessManager *manager;
QNetworkRequest req;
private slots:
};
#endif // CONNECTWITHSERVER_H