MainWindow.
More...
#include <mainwindow.h>
| MainWindow::MainWindow |
( |
QWidget * |
parent = nullptr | ) |
|
Construct ManWindow.
- Parameters
-
| parent | QObejct parent that is neccessary to support Qt memory system |
| std::string MainWindow::get_message |
( |
| ) |
|
Get message from UI.
- Returns
- std::string
| void MainWindow::print_text |
( |
const std::string & |
login, |
|
|
const std::string & |
message, |
|
|
DateTime |
dt |
|
) |
| |
|
slot |
show incoming message
- Parameters
-
| login | sender's login |
| message | message's content |
| dt | date and time of sending the text |
| void MainWindow::send_autorisation_info |
( |
const std::string & |
login, |
|
|
const std::string & |
password |
|
) |
| |
|
signal |
Notify user is authorizing on the server.
- Parameters
-
| login | user's login |
| password | user's password |
| void MainWindow::send_change_room |
( |
int |
new_room_id | ) |
|
|
signal |
Change the room.
- Parameters
-
| new_room_id | id of the room user wants to join |
| void MainWindow::send_registration_info |
( |
const std::string & |
login, |
|
|
const std::string & |
password |
|
) |
| |
|
signal |
Notify user is registering on the server.
- Parameters
-
| login | user's login |
| password | user's password |
| void MainWindow::send_text_data |
( |
const std::string & |
login, |
|
|
const std::string & |
text, |
|
|
int |
room_id |
|
) |
| |
|
signal |
Notify user is sending message.
- Parameters
-
| login | user's login |
| text | message's content |
| room_id | room where user is subscriber |
The documentation for this class was generated from the following files: