• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/protocols/messenger/libpapillon

Papillon::Connection

Papillon::Connection Class Reference

#include <Papillon/Connection>

Inheritance diagram for Papillon::Connection:

Inheritance graph
[legend]

List of all members.


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.

Author:
Michaƫl Larouche <larouche@kde.org>

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 (  ) 

d-tor

Definition at line 64 of file connection.cpp.


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]

End the connection.

Definition at line 102 of file connection.cpp.

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]

Send a transfer to the current Messenger service.

Definition at line 107 of file connection.cpp.

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:
  • connection.h
  • connection.cpp

kopete/protocols/messenger/libpapillon

Skip menu "kopete/protocols/messenger/libpapillon"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal