#include <tocprotocol.h>
Inheritance diagram for GNUMessenger::TocProtocol:


Public Member Functions | |
| TocProtocol (const XMLNode &, ProtocolManager *manager) | |
| const string | getLoginName () |
| Returns the text string name used to login to the protocol. | |
| virtual void | update () |
| In a non-event based system this call will check the network for incoming data and will call appropriate handlers. | |
| virtual void | login () |
| Login to TOC. | |
| virtual void | logout () |
| Logout of TOC. | |
| virtual void | shutdown () |
| Shutdown this protocol and deallocate socket. | |
| virtual bool | sendMessage (const Contact &recipient, const string &message) |
| Send a message over this protocol. | |
| virtual void | addContact (const Contact &c) |
| Add a contact to this protocol. | |
| virtual void | delContact (const Contact &c) |
| Remove a contact from this protocol. | |
| virtual void | newUser (const string &userName, const VBuffer &password) |
| Create a new user...might not do anything on this proto. | |
| virtual void | getPubkey () |
| Get the public key from remote user--useless. | |
| virtual void | handleData (Network *net) |
| The many, terrible ways to handle data. | |
| virtual void | handleData (Network *net, const VBuffer &data) |
| virtual void | handleData (Network *net, const string &data) |
| virtual void | connectionError (Network *net, int error) |
| The network reports a connection errod. | |
| virtual void | connectedToServer (Network *net) |
| The network reports we are connected to server. | |
| virtual void | setAway (const string &msg="") |
| Set the away message. | |
| virtual void | setInfo (const string &info="") |
| Set the user info (profile). | |
| virtual void | getInfo (const string &contact) |
| Request the info from the protocol, this has to be an async call---we'll respond with a callback sometime. | |
| virtual void | reset () |
| Resets the protocol by disconnecting and reconnecting to the network. | |
Static Public Member Functions | |
| string | getErrorText (int i, const string &name) |
| Convert an error number into a human readable string. | |
| vector< string > | splitStrLF (const string &str) |
| Split a string on the LF char into a vector of strings. | |
| vector< string > | splitStr (const string &str) |
| Split a string on ':'. | |
Protected Member Functions | |
| void | handleRealData (Network *net, const string &data) |
| Process a packet payload (not the header). | |
Protected Attributes | |
| Network * | m_net |
| The network socket. | |
Implements the protocol needed to connect to AOL's aim service.
The configuration XML looks like this:
<toc>
<user password="password" username="username"/>
<server host="toc.oscar.aol.com" port="9898"/>
<loginserver host="login.oscar.aol.com" port="1234"/>
</toc>
Jesse Lovelace
Definition at line 60 of file tocprotocol.h.
|
|
Add a contact to this protocol.
Implements GNUMessenger::Protocol. Definition at line 355 of file tocprotocol.cpp. References GNUMessenger::Protocol::getProtocol(), GNUMessenger::Contact::getServerId(), and GNUMessenger::Protocol::getState().
Here is the call graph for this function: ![]() |
|
|
Get the public key from remote user--useless.
|
|
||||||||||||
|
Process a packet payload (not the header). debug output Definition at line 612 of file tocprotocol.cpp. References GNUMessenger::Protocol::getState().
Here is the call graph for this function: ![]() |
|
|
Resets the protocol by disconnecting and reconnecting to the network. All configuration settings are re-read. Implements GNUMessenger::Protocol. Definition at line 218 of file tocprotocol.cpp. References login(), and logout().
Here is the call graph for this function: ![]() |
|
|
In a non-event based system this call will check the network for incoming data and will call appropriate handlers.
Reimplemented from GNUMessenger::Protocol. Definition at line 783 of file tocprotocol.cpp.
|
1.3.8