Public Member Functions | List of all members
OOB Class Reference

#include <oob.h>

Inheritance diagram for OOB:
Inheritance graph
Collaboration diagram for OOB:
Collaboration graph

Public Member Functions

 OOB (const std::string &url, const std::string &description, bool iqext)
 OOB (Tag *tag)
virtual ~OOB ()
const std::string & url () const
const std::string & desc () const
Tagtag () const
- Public Member Functions inherited from StanzaExtension
 StanzaExtension (StanzaExtensionType type)
virtual ~StanzaExtension ()
StanzaExtensionType type () const

Detailed Description

This is an abstraction of a jabber:x:oob namespace element or a jabber:iq:oob namespace element as specified in XEP-0066.

XEP version: 1.5

Jakob Schroeter

Definition at line 35 of file oob.h.

Constructor & Destructor Documentation

OOB ( const std::string &  url,
const std::string &  description,
bool  iqext 

Constructs an empty OOB object.

urlThe out-of-band URL.
descriptionThe URL's optional description.
iqextWhether this object extends an IQ or a Presence stanza (results in either jabber:x:oob or jabber:iq:oob namespaced element).

Definition at line 20 of file oob.cpp.

OOB ( Tag tag)

Constructs an OOB object from the given Tag. To be recognized properly, the Tag should either have a name 'x' of in the jabber:x:oob namespace, or a name of 'query' in the jabber:iq:oob namespace.

tagThe Tag to parse.

Definition at line 28 of file oob.cpp.

~OOB ( )

Virtual destructor.

Definition at line 49 of file oob.cpp.

Member Function Documentation

const std::string& desc ( ) const

Returns the URL's description.

The URL's description.

Definition at line 70 of file oob.h.

Tag * tag ( ) const

Returns a Tag representation of the extension.

A Tag representation of the extension.

Implements StanzaExtension.

Definition at line 53 of file oob.cpp.

const std::string& url ( ) const

Returns the out-of-band URL.

The out-of-band URL.

Definition at line 64 of file oob.h.

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