-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsons.h
More file actions
37 lines (34 loc) · 740 Bytes
/
Copy pathsons.h
File metadata and controls
37 lines (34 loc) · 740 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
#ifndef SONS_H
#define SONS_H
#include <QThread>
#include <QtNetwork/QTcpSocket>
#include <QDebug>
#include <QFile>
#include <QDir>
#include <QDateTime>
#include <QDate>
#include <QTimer>
#include <QMutex>
extern QDir dir;
extern int interval;
class Sons : public QThread
{
Q_OBJECT
public:
explicit Sons(qintptr ID, QObject *parent = nullptr);
void run();
bool stop;
signals:
// void error(QTcpSocket::SocketError socketerror);
// void stringfound(QString);
public slots:
void readyRead();
void disconnected();
void write_srvside(QString);
private:
int check_user();
void banner();
QTcpSocket * socket;
qintptr socketDescriptor;
};
#endif // SONS_H