AppChat
0.5.0
TCP client-server caht application with boost::asio library.
Main Page
Related Pages
Classes
Files
File List
src
client
gui
mainwindow.h
1
#ifndef MAINWINDOW_H
2
#define MAINWINDOW_H
3
4
#include <QMainWindow>
5
#include <QtWidgets/QTextEdit>
6
#include <QtWidgets/QLineEdit>
7
#include <QWidget>
8
#include <QtWidgets>
9
#include <QtCore>
10
#include <QCloseEvent>
11
12
#include "client/client/client.h"
13
14
QT_BEGIN_NAMESPACE
15
namespace
Ui
{
class
MainWindow
; }
16
QT_END_NAMESPACE
17
21
class
MainWindow
:
public
QMainWindow
22
{
23
Q_OBJECT
24
25
public
:
31
MainWindow
(QWidget *parent =
nullptr
);
32
37
~
MainWindow
();
38
44
std::string get_message();
45
signals:
52
void
send_autorisation_info(
const
std::string& login,
const
std::string& password);
53
60
void
send_registration_info(
const
std::string& login,
const
std::string& password);
61
69
void
send_text_data(
const
std::string& login,
const
std::string& text,
int
room_id);
70
76
void
send_change_room(
int
new_room_id);
77
78
public
slots:
86
void
print_text(
const
std::string& login,
const
std::string& message,
DateTime
dt);
87
88
private
slots:
92
void
on_push_autorisation_clicked();
93
97
void
on_push_registration_clicked();
98
102
void
on_push_send_clicked();
103
107
void
on_push_change_room_id_clicked();
108
109
113
void
good_input();
114
120
void
handler_input_code(InputCode input_code);
121
private
:
122
Ui::MainWindow *ui;
123
124
QString logon;
125
QString password;
126
QString roomid;
127
};
128
#endif // MAINWINDOW_H
Ui
Definition:
mainwindow.h:15
DateTime
Definition:
datetime.h:6
MainWindow
MainWindow.
Definition:
mainwindow.h:21
Generated by
1.8.11