#include <connectionmanager.h>
Inheritance diagram for ConnectionManager:

Public Member Functions | |
| ConnectionManager (KernelMessenger &rKernel, ListeWidget &rWidget) | |
| Constructor. | |
| virtual | ~ConnectionManager () |
| Destructor. | |
| void | setConnection (const Contact &contact, const ContactList &list) |
| This method marks the end of the connection process. | |
| void | connectionEstablished (const bool bResult, const Contact &contact) |
| This methods marks the end to the authentification process. | |
| void | newConnection (const std::string &username, const std::string &password) |
| Start a new connection process. | |
| void | contactListReceived (const bool bResult, const ContactList &list) |
| This methods is called when the user contact list is received. | |
| void | closeConnection () |
| This method closes the connection to the server. | |
| void | connectionFailed () |
| This method reports an error during the connection process. | |
| void | stopConnectionProcess () |
| This method stops the connection process. | |
| void | setSocketStatus (const bool bStatus) |
| Private method to change the socket status. | |
| void | writeMessage (const BaseMessage &message) |
| It write a message in the socket. | |
| void | connectToHost (const std::string &hostname, const int port) |
| Connects the socket to specified hostname and port. | |
| void | close () |
| Close the socket connection. | |
| void | setConnectionOptions (const std::string &hostname, const int port) |
| Sets the connection parameters. | |
Static Public Attributes | |
| static const char * | DEFAULT_HOST = "localhost" |
| Default host used for the connection. | |
| static const int | DEFAULT_PORT = 4178 |
| Default port used for the connection. | |
| static const int | TIMEOUT = 50000 |
| Max connection time. | |
Friends | |
| class | ConnectionProcess |
It offers methods such as connecton and deconnection. It also manages errors due to socket.
Yves Houpert <yves.houpert@insa-rouen.fr>
|
||||||||||||
|
Constructor.
|
|
||||||||||||
|
This methods marks the end to the authentification process. This method is called when the authentification to the server is ended.
|
|
|
This method reports an error during the connection process. It should be called when an error during the connection is met. |
|
||||||||||||
|
Connects the socket to specified hostname and port.
|
|
||||||||||||
|
This methods is called when the user contact list is received.
|
|
||||||||||||
|
Start a new connection process.
|
|
||||||||||||
|
This method marks the end of the connection process. It's called when the connection, the authentification and the contact list reception are done. |
|
||||||||||||
|
Sets the connection parameters.
|
|
|
Private method to change the socket status.
|
|
|
It write a message in the socket.
|
1.4.6