Public Member Functions

JabberGloox09 Class Reference

JabberGlooxImpl implementation for gloox library version 1.0.xx. More...

#include <H:/WOSH/win32_vc2010/src/bundles/JabberGloox/JabberGloox09.h>

List of all members.

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)

Detailed Description

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.

See also:
JabberGlooxImpl
wosh::bundles::JabberGlooxBundle
http://camaya.net/gloox/
Version:
0.8.558
Id:
JabberGloox09.h 3775 2011-01-01 16:38:17Z alex
Date:
Released stable on 2010-09-22
Author:
Alessandro Polo

Definition at line 62 of file JabberGloox09.h.


Constructor & Destructor Documentation

JabberGloox09::JabberGloox09 ( wosh::BundleGeneric bundle )

Default constructor. Init vars.

Parameters:
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.


Member Function Documentation

bool JabberGloox09::sendMessage ( const std::string &  user,
const std::string &  message 
) [virtual]

Send a message to a contact.

Parameters:
user[in] recipent user [example: asd123@gmail.com]
message[in] message to be sent
Returns:
true on success; false if thread is not running.
Note:
there are no guarantees about sending results

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.

Parameters:
available[in] when true the bot will be set as online; else it will appear offline
force[in] broadcast the new presence stauts now
Returns:
true on success; false if thread is not running.

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.


The documentation for this class was generated from the following files:

Generated on Tue Feb 8 2011 09:33:26 for WOSH system 0.8.888 [wolf] by Alessandro Polo, using DoxyGen 1.7.2 hosted by WOSH Framework