AppChat  0.5.0
TCP client-server caht application with boost::asio library.
Public Slots | Signals | Public Member Functions | List of all members
MainWindow Class Reference

MainWindow. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:
Inheritance graph
[legend]
Collaboration diagram for MainWindow:
Collaboration graph
[legend]

Public Slots

void print_text (const std::string &login, const std::string &message, DateTime dt)
 show incoming message More...
 

Signals

void send_autorisation_info (const std::string &login, const std::string &password)
 Notify user is authorizing on the server. More...
 
void send_registration_info (const std::string &login, const std::string &password)
 Notify user is registering on the server. More...
 
void send_text_data (const std::string &login, const std::string &text, int room_id)
 Notify user is sending message. More...
 
void send_change_room (int new_room_id)
 Change the room. More...
 

Public Member Functions

 MainWindow (QWidget *parent=nullptr)
 Construct ManWindow. More...
 
 ~MainWindow ()
 Destroy the Main Window object.
 
std::string get_message ()
 Get message from UI. More...
 

Detailed Description

MainWindow.

Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = nullptr)

Construct ManWindow.

Parameters
parentQObejct parent that is neccessary to support Qt memory system

Member Function Documentation

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
loginsender's login
messagemessage's content
dtdate 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
loginuser's login
passworduser's password
void MainWindow::send_change_room ( int  new_room_id)
signal

Change the room.

Parameters
new_room_idid 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
loginuser's login
passworduser'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
loginuser's login
textmessage's content
room_idroom where user is subscriber

The documentation for this class was generated from the following files: