Main client Class.
More...
#include <HomePage.hpp>
◆ HomePage()
Babel::HomePage::HomePage |
( |
| ) |
|
◆ ~HomePage()
Babel::HomePage::~HomePage |
( |
| ) |
|
|
overridedefault |
◆ changeCurrentUITab()
void Babel::HomePage::changeCurrentUITab |
( |
QWidget * |
tab | ) |
|
|
inlineprivate |
Change the currently selected tab.
◆ doCallUser()
void Babel::HomePage::doCallUser |
( |
| ) |
|
|
private |
Call a specific user look in the list for the selected username.
◆ doConnect()
void Babel::HomePage::doConnect |
( |
| ) |
|
|
private |
Connects to the server with tcp.
◆ doDenyCall()
void Babel::HomePage::doDenyCall |
( |
int |
callId | ) |
|
|
private |
◆ doHangUp()
void Babel::HomePage::doHangUp |
( |
| ) |
|
|
private |
◆ doJoinCall()
void Babel::HomePage::doJoinCall |
( |
int |
callId, |
|
|
std::string & |
address, |
|
|
uint16_t |
port |
|
) |
| |
|
private |
◆ doListUsers()
void Babel::HomePage::doListUsers |
( |
| ) |
|
|
private |
◆ doLogin()
void Babel::HomePage::doLogin |
( |
| ) |
|
|
private |
send a login request, look into field inputs for username
◆ handleIncomingCall()
handle incoming call request
◆ handleUserJoined()
handle user joined request
◆ handleUserLeft()
◆ onBasicResponse()
handler for any simple responses (opens a dialog if error) otherwise do nothing
◆ onCallUserResponse()
handler for any responses of the callUser request
◆ onJoinCall()
handler for any responses of the joinCall request
◆ onListUsersResponse()
handler for any responses of the listuser request
◆ onLoginResponse()
handler for any responses of the login request
◆ onMessage()
is used to redirect responses from request to the correct handling functions
◆ sendHandler()
send the message to the server and add it to the message send queue to handle responses type
- Note
- The client should always use this function to send messages to the server
◆ updateDisplaySelectedUser()
void Babel::HomePage::updateDisplaySelectedUser |
( |
| ) |
|
|
private |
Update qt interface to display the correct username and infos.
◆ _address
std::string Babel::HomePage::_address |
|
private |
The local ip.
- Note
- the address to receive udp audio packets
◆ _audio
◆ _connection
◆ _currentCallId
int Babel::HomePage::_currentCallId |
|
private |
handling the callId of the current call (to be able to hang up, ...)
- Note
- when set to CurrentlyNotInCall no call is happening
◆ _messageHandlers
Used to call the correct handling function.
- Note
- Expects a response for each type of request, expect FIFO order
◆ _requestsMade
all the request made by the client (expecting a response)
◆ _ui
◆ _username
std::string Babel::HomePage::_username |
|
private |
The username of the connected user.
- Note
- set to an empty string when not connected
◆ _usersInCurrentCall
std::list<std::string> Babel::HomePage::_usersInCurrentCall |
|
private |
a list containing all users in the currentCall
◆ _usersInfos
std::map<std::string, UserInfo> Babel::HomePage::_usersInfos |
|
private |
Userinfo holder the username is the key.
◆ _window
QMainWindow* Babel::HomePage::_window |
|
private |
◆ CurrentlyNotInCall
constexpr int Babel::HomePage::CurrentlyNotInCall = -1 |
|
staticconstexprprivate |
Used to set and verify the _currentCallId if a call is ongoing.
◆ startUdpPort
const uint16_t Babel::HomePage::startUdpPort = 0 |
The port to receive udp audio packets.
- Note
- setting it to zero will let the OS choose a random available port
The documentation for this class was generated from the following files: