GNUMessenger::IcqProtocol Class Reference
[Protocols]

#include <icqprotocol.h>

Inheritance diagram for GNUMessenger::IcqProtocol:

Inheritance graph
[legend]
Collaboration diagram for GNUMessenger::IcqProtocol:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 IcqProtocol (const XMLNode &, ProtocolManager *manager)
const int protocolId ()
const string screenName ()
virtual void login ()
 Initiates the login sequence for this protocol.
virtual void logout ()
 Sends the protocol the log-out request and disconnects the socket (Network).
virtual bool sendMessage (const Contact &recipient, const string &message)
 Tries to send a message to a Contact via this protocol.
virtual void addContact (const Contact &contact)
virtual void delContact (const Contact &contact)
virtual void newUser (const string &userName, const VBuffer &password)
virtual void handleData (Network *net)
virtual void handleData (Network *net, const string &data)
virtual void connectedToServer (Network *net)
virtual void connectionError (Network *net, int error)
virtual void reset ()
 Resets the protocol by disconnecting and reconnecting to the network.

Detailed Description

The ICQ protocol.

Author:
Emil Styrke

Definition at line 36 of file icqprotocol.h.


Member Function Documentation

virtual void GNUMessenger::IcqProtocol::login  )  [virtual]
 

Initiates the login sequence for this protocol.

Note:
This call in no way guarentees that the login attempt was successful. That information will be relayed by an error callback.

Implements GNUMessenger::Protocol.

virtual void GNUMessenger::IcqProtocol::reset  )  [inline, virtual]
 

Resets the protocol by disconnecting and reconnecting to the network.

All configuration settings are re-read.

Implements GNUMessenger::Protocol.

Definition at line 58 of file icqprotocol.h.

00058 {}

virtual bool GNUMessenger::IcqProtocol::sendMessage const Contact recipient,
const string &  message
[virtual]
 

Tries to send a message to a Contact via this protocol.

Parameters:
recipient The intended recipient.
message The text message to send.
Note:
This call does not mean the contact has recieved the message, that is network dependent and my fail. If a fail should occur, an appropriate error callback will be called.
Returns:
False if the Contact is not subscribed to this protocol or if the protocol is offline.

Implements GNUMessenger::Protocol.


The documentation for this class was generated from the following file:
Generated on Tue Oct 5 14:41:54 2004 for GNU Messenger by doxygen 1.3.8