-
Notifications
You must be signed in to change notification settings - Fork 0
/
fenclient.h
47 lines (36 loc) · 1005 Bytes
/
fenclient.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
40
41
42
43
44
45
46
47
#ifndef FENCLIENT_H
#define FENCLIENT_H
#include <QtWidgets>
#include <QtNetwork>
class FenClient : public QWidget
{
Q_OBJECT
public:
FenClient();
private slots:
void on_boutonConnexion_clicked();
void on_boutonEnvoyer_clicked();
void on_message_returnPressed();
void donneesRecues();
void connecte();
void deconnecte();
void erreurSocket(QAbstractSocket::SocketError erreur);
private:
QHBoxLayout *infoServ;
QHBoxLayout *infoClient;
QVBoxLayout *layout;
QLabel *ip;
QLabel *port;
QLabel *pseudoLabel;
QLabel *messageLabel;
QTextEdit *listeMessages;
QPushButton *boutonConnexion;
QPushButton *boutonEnvoyer;
QSpinBox *serveurPort;
QLineEdit *serveurIP;
QLineEdit *pseudo;
QLineEdit *message;
QTcpSocket *socket; // Représente le serveur
quint16 tailleMessage;
};
#endif // FENCLIENT_H