kopete/protocols/messenger/libpapillon
Papillon::Connection Class Reference
#include <Papillon/Connection>

Detailed Description
Connection encapsulate a connection to a Windows Live Messenger service.Contains the transaction ID reference count, the root Task. Dispatch also the transfers through the task.
Definition at line 36 of file connection.h.
Public Slots | |
| void | connectToServer (const QString &server, quint16 port) |
| void | disconnectFromServer () |
| void | send (NetworkMessage *transfer) |
Signals | |
| void | connected () |
| void | disconnected () |
Public Member Functions | |
| Client * | client () |
| Connection (ClientStream *stream, QObject *parent=0) | |
| bool | isConnected () |
| Task * | rootTask () |
| void | setClient (Client *client) |
| int | transactionId () |
| ~Connection () | |
Constructor & Destructor Documentation
| Papillon::Connection::Connection | ( | ClientStream * | stream, | |
| QObject * | parent = 0 | |||
| ) | [explicit] |
Create a new connection.
- Parameters:
-
stream the ClientStream (socket and core protocol encapsulation) parent QObject parent
Definition at line 53 of file connection.cpp.
| Papillon::Connection::~Connection | ( | ) |
Member Function Documentation
| Client * Papillon::Connection::client | ( | ) |
Get the Client associated with this connection.
- Returns:
- the Client pointer.
Definition at line 74 of file connection.cpp.
| void Papillon::Connection::connected | ( | ) | [signal] |
Emiited when the connection gets opened.
| void Papillon::Connection::connectToServer | ( | const QString & | server, | |
| quint16 | port | |||
| ) | [slot] |
Connect to the given service.
- Parameters:
-
server Hostname or IP address of the service port TCP port of the service.
Definition at line 94 of file connection.cpp.
| void Papillon::Connection::disconnected | ( | ) | [signal] |
Emitted when this connection gets disconnected.
| void Papillon::Connection::disconnectFromServer | ( | ) | [slot] |
| bool Papillon::Connection::isConnected | ( | ) |
Check if this connection is active.
- Returns:
- true if the connection is active.
Definition at line 89 of file connection.cpp.
| Task * Papillon::Connection::rootTask | ( | ) |
Get the root task for this conenction.
Root task is the parent Task for all task of this connection.
Definition at line 69 of file connection.cpp.
| void Papillon::Connection::send | ( | NetworkMessage * | transfer | ) | [slot] |
| void Papillon::Connection::setClient | ( | Client * | client | ) |
Set the Client pointer.
- Parameters:
-
client Client pointer.
Definition at line 79 of file connection.cpp.
| int Papillon::Connection::transactionId | ( | ) |
Increment the transaction id and return its value.
- Returns:
- the current transaction id.
Definition at line 84 of file connection.cpp.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference