#include <switchboardserver.h>
Inheritance diagram for MSN::SwitchboardServerConnection:

Public Types | |
| enum | SwitchboardServerState { SB_DISCONNECTED, SB_CONNECTING, SB_CONNECTED, SB_WAITING_FOR_USERS, SB_READY } |
Public Member Functions | |
| SwitchboardServerConnection (AuthData &auth_, NotificationServerConnection &) | |
| virtual | ~SwitchboardServerConnection () |
| virtual void | dispatchCommand (std::vector< std::string > &args) |
| Dispatch a command to its appropriate handler routines based on args. | |
| Connection * | connectionWithSocket (int fd) |
| Return a connection that is associated with fd. | |
| std::list< FileTransferConnection * > & | fileTransferConnections () const |
| Return a list of all FileTransferConnection's associated with this connection. | |
| void | addFileTransferConnection (FileTransferConnection *) |
| Add a FileTransferConnection to the list of associated connections. | |
| void | removeFileTransferConnection (FileTransferConnection *) |
| Remove a FileTransferConnection from the list of associated connections. | |
| void | removeFileTransferConnection (FileTransferInvitation *inv) |
| Remove the FileTransferConnection that is associated with FileTransferInvitation inv from the list of associated connections. | |
| void | sendTypingNotification () |
| Send a typing notification to the switchboard server. | |
| void | inviteUser (Passport userName) |
| Invite userName into this conversation. | |
| virtual void | connect (const std::string &hostname, unsigned int port) |
| Connect ourself to hostname on port. | |
| virtual void | disconnect () |
| virtual void | sendMessage (const Message *msg) |
| virtual void | sendMessage (const std::string &s) |
| FileTransferInvitation * | sendFile (const std::string path) |
| virtual void | addCallback (SwitchboardServerCallback, int trid, void *data) |
| Add cb as a callback that will be called when a response is received a transaction ID of trid. | |
| virtual void | removeCallback (int trid) |
| Remove callbacks for transaction ID trid. | |
| Invitation * | invitationWithCookie (const std::string &cookie) |
| virtual void | socketConnectionCompleted () |
| The connection has been established. | |
| SwitchboardServerState | connectionState () const |
| virtual NotificationServerConnection * | myNotificationServer () |
Public Attributes | |
| SwitchboardServerConnection::AuthData | auth |
| std::list< Passport > | users |
| A list of the users in this switchboard session. | |
| std::list< Invitation * > | invitationsSent |
| Invitations extended but not responded to. | |
| std::list< Invitation * > | invitationsReceived |
| Invitations received but not responded to. | |
Protected Member Functions | |
| virtual void | handleIncomingData () |
| void | setConnectionState (SwitchboardServerState s) |
| void | assertConnectionStateIs (SwitchboardServerState s) |
| void | assertConnectionStateIsNot (SwitchboardServerState s) |
| void | assertConnectionStateIsAtLeast (SwitchboardServerState s) |
Protected Attributes | |
| SwitchboardServerState | _connectionState |
Friends | |
| class | FileTransferConnection |
| class | FileTransferInvitation |
| class | Connection |
Classes | |
| class | AuthData |
|
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||||||
|
Add cb as a callback that will be called when a response is received a transaction ID of trid.
|
|
|
Add a FileTransferConnection to the list of associated connections.
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
Connect ourself to hostname on port.
Implements MSN::Connection. |
|
|
|
|
|
Return a connection that is associated with fd.
If fd is equal to
|
|
|
Implements MSN::Connection. |
|
|
Dispatch a command to its appropriate handler routines based on args.
Implements MSN::Connection. |
|
|
Return a list of all FileTransferConnection's associated with this connection.
|
|
|
Implements MSN::Connection. |
|
|
|
|
|
Invite userName into this conversation.
|
|
|
Implements MSN::Connection. |
|
|
Remove callbacks for transaction ID trid.
|
|
|
Remove the FileTransferConnection that is associated with FileTransferInvitation inv from the list of associated connections.
|
|
|
Remove a FileTransferConnection from the list of associated connections.
|
|
|
|
|
|
|
|
|
|
|
|
Send a typing notification to the switchboard server.
|
|
|
|
|
|
The connection has been established.
Reimplemented from MSN::Connection. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Invitations received but not responded to.
|
|
|
Invitations extended but not responded to.
|
|
|
A list of the users in this switchboard session.
|
1.4.1