#include <connectionprocess.h>
Public Types | |
| enum | State { Idle, WaitForConnection, SocketConnected, WaitForAuthentification, Authentified, WaitForList, Connected, ConnectionFailed } |
| Enumeration of possible state for the connection process. More... | |
Public Slots | |
| void | performConnection () |
| This method performs the connection process. | |
Public Member Functions | |
| ConnectionProcess (ConnectionManager &rConnection, const std::string &hostname, const int port, const std::string &username, const std::string &password) | |
| Constructor. | |
| ~ConnectionProcess () | |
| Destructor. | |
| void | setConnectStatus (const bool bStatus) |
| Changes the socket connection status. | |
| State | getConnectionStatus () const |
| Returns the connection status. | |
| void | setAuthentificationStatus (const bool bStatus, const Contact &contact) |
| Changes the authentification status. | |
| void | setContactListStatus (const bool bStatus, const ContactList &list) |
| Changes the connection status. | |
| void | abortConnection () |
| Aborts the connection. | |
| void | close () |
| Close the connection widget. | |
Yves Houpert <yves.houpert@insa-rouen.fr>
|
|
Enumeration of possible state for the connection process.
|
|
||||||||||||||||||||||||
|
Constructor.
|
|
|
Aborts the connection. It closes the widget and stop the connetion process. |
|
|
Returns the connection status.
|
|
|
This method performs the connection process. It's called by the ConnectionManager each time its timer times out. See ConnectionManager for more details. |
|
||||||||||||
|
Changes the authentification status. This method is called when the authentification process ended.
|
|
|
Changes the socket connection status. This method is called when the socket send a message about the connection.
|
|
||||||||||||
|
Changes the connection status. This method is called when the user's contact list is received.
|
1.4.6