JabberGlooxImpl implementation for gloox library version 1.0.xx.
More...
#include <H:/WOSH/win32_vc2010/src/bundles/JabberGloox/JabberGloox09.h>
Public Member Functions | |
| JabberGloox09 (wosh::BundleGeneric &bundle) | |
| Default constructor. Init vars. | |
| virtual | ~JabberGloox09 () |
| Destructor. If thread is still running, it will be stopped. | |
| bool | sendMessage (const std::string &user, const std::string &message) |
| Send a message to a contact. | |
| bool | setPresence (bool available, bool force=false) |
| Set the presence. | |
gloox::MessageHandler Interface | |
| void | handleMessage (gloox::Stanza *stanza) |
| void | handleMessage (gloox::Stanza *stanza, gloox::MessageSession *) |
gloox::PresenceHandler Interface | |
| void | handlePresence (gloox::Stanza *stanza) |
gloox::SubscriptionHandler Interface | |
| void | handleSubscription (gloox::Stanza *stanza) |
JabberGlooxImpl implementation for gloox library version 1.0.xx.
This is most stable gloox version at time of writing. It may be downloaded and compiled on Windows/POSIX platform from official website.
gloox 0.9.xx library is available on APT repository of Debian-based system:
$ apt-get install libgloox libgloox-dev
Tested on Linux only. Default wrapper on POSIX built.
See wosh::bundles::JabberGlooxBundle for details about required library and configuration.
stable on 2010-09-22 Definition at line 62 of file JabberGloox09.h.
| JabberGloox09::JabberGloox09 | ( | wosh::BundleGeneric & | bundle ) |
Default constructor. Init vars.
| bundle | [in] the parent bundle, see BundleGenericWorker interface |
Definition at line 49 of file JabberGloox09.cpp.
| JabberGloox09::~JabberGloox09 | ( | ) | [virtual] |
Destructor. If thread is still running, it will be stopped.
Definition at line 53 of file JabberGloox09.cpp.
References wosh::BundleGenericWorker::Log, wosh::LOG_DEBUG, and wosh::LOG_WARNING.
| bool JabberGloox09::sendMessage | ( | const std::string & | user, |
| const std::string & | message | ||
| ) | [virtual] |
Send a message to a contact.
| user | [in] recipent user [example: asd123@gmail.com] |
| message | [in] message to be sent |
Implements JabberGlooxImpl.
Definition at line 65 of file JabberGloox09.cpp.
References wosh::BundleGenericWorker::Log, wosh::LOG_VERBOSE, and JabberGlooxImpl::xmppJclient.
| bool JabberGloox09::setPresence | ( | bool | available, |
| bool | force = false |
||
| ) | [virtual] |
Set the presence.
| available | [in] when true the bot will be set as online; else it will appear offline |
| force | [in] broadcast the new presence stauts now |
Implements JabberGlooxImpl.
Definition at line 167 of file JabberGloox09.cpp.
References wosh::BundleGenericWorker::Log, wosh::LOG_INFO, wosh::LOG_VERBOSE, JabberGlooxImpl::xmppAvailable, JabberGlooxImpl::xmppJclient, JabberGlooxImpl::xmppPresenceStatus, and JabberGlooxImpl::xmppPriority.