Logo Search packages:      
Sourcecode: gabber version File versions  Download package

jabberoo::Presence Class Reference

#include <jabberoo.hh>

Inheritance diagram for jabberoo::Presence:


List of all members.

Detailed Description

A Jabber Presence Packet. This class implements most of the methods needed to deal with a Jabber Presence Packet.
See also:

Definition at line 405 of file jabberoo.hh.

Public Types

enum  Show {
  stInvalid, stOffline, stOnline, stChat,
  stAway, stXA, stDND
enum  Type {
  ptSubRequest, ptUnsubRequest, ptSubscribed, ptUnsubscribed,
  ptAvailable, ptUnavailable, ptError, ptInvisible

Public Member Functions

ElementaddX (const string &tnamespace)
ElementaddX ()
void eraseX (const string &tnamespace)
ElementfindX (const string &tnamespace) const
ElementgetBaseElement ()
const ElementgetBaseElement () const
const string getError () const
const int getErrorCode () const
const string getFrom () const
const string getID () const
int getPriority () const
Show getShow () const
const string getShow_str () const
const string getStatus () const
const string getTo () const
Type getType () const
 Presence (const string &jid, Type ptype, Show stype=stInvalid, const string &status="", const string &priority="0")
 Presence (const Element &t)
void setFrom (const string &from)
void setID (const string &id)
void setPriority (const string &priority)
void setShow (Presence::Show stype)
void setStatus (const string &status)
void setTo (const string &to)
void setType (Presence::Type ptype)
const string toString () const

Static Protected Member Functions

static Show translateShow (Type ptype, const string &stype)
static string translateShow (Show stype)
static Type translateType (const string &ptype)
static string translateType (Type ptype)

Protected Attributes

Element _base

Private Attributes

int _priority
Show _show
Type _type

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

Generated by  Doxygen 1.6.0   Back to index