-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy_client.h
More file actions
42 lines (35 loc) · 998 Bytes
/
my_client.h
File metadata and controls
42 lines (35 loc) · 998 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
#ifndef MY_CLIENT_H
#define MY_CLIENT_H
#include <QMainWindow>
#include <QTcpSocket>
QT_BEGIN_NAMESPACE
namespace Ui { class My_Client; }
QT_END_NAMESPACE
class My_Client : public QMainWindow
{
Q_OBJECT
public slots:
void ConnectToServer();
void on_Create_New_Client_BTN_clicked();
void on_ConnectToServer_BTN_clicked();
void Write_Data(QString out);
void Read_Data();
void Disconnected_FromServer();
void Check_connection_To_Server();
void on_Send_BTN_clicked();
void on_pushButton_clicked();
public:
My_Client(QWidget *parent = nullptr);
~My_Client();
void Create_New_Page_For_Client();
private slots:
void on_send_BTN_clicked();
void on_Ip_Address_textChanged(const QString &arg1);
void procces_the_command(QString a);
void on_disconnect_to_server_clicked();
private:
Ui::My_Client *ui;
QTcpSocket* client_Socket;
bool connection_state = 1;
};
#endif // MY_CLIENT_H