gloox  1.1-svn
Public Member Functions | List of all members
RAP Class Reference

#include <rap.h>

Inheritance diagram for RAP:
Inheritance graph
[legend]

Public Member Functions

 RAP (const Tag *tag=0)
 RAP (const std::string &ns, int num)
virtual ~RAP ()
bool primary () const
virtual const std::string & filterString () const
virtual StanzaExtensionnewInstance (const Tag *tag) const
virtual Tagtag () const
virtual StanzaExtensionclone () const
- Public Member Functions inherited from StanzaExtension
 StanzaExtension (int type)
virtual ~StanzaExtension ()
int extensionType () const

Detailed Description

This is an implementation of XEP-0168 as a StanzaExtension.

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
1.0

Definition at line 34 of file rap.h.

Constructor & Destructor Documentation

RAP ( const Tag tag = 0)

Constructs a new object from the given Tag.

Parameters
tagThe Tag to parse.

Definition at line 23 of file rap.cpp.

RAP ( const std::string &  ns,
int  num 
)

Constructs a new object with the given namespace and priority.

Parameters
nsThe application namespace.
numThe priority for the application namespace.

Definition at line 35 of file rap.cpp.

~RAP ( )
virtual

Virtual Destructor.

Definition at line 40 of file rap.cpp.

Member Function Documentation

virtual StanzaExtension* clone ( ) const
inlinevirtual

Returns an identical copy of the current StanzaExtension.

Returns
An identical copy of the current StanzaExtension.

Implements StanzaExtension.

Definition at line 75 of file rap.h.

const std::string & filterString ( ) const
virtual

Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.

Returns
The extension's filter string.

Implements StanzaExtension.

Definition at line 44 of file rap.cpp.

virtual StanzaExtension* newInstance ( const Tag tag) const
inlinevirtual

Returns a new Instance of the derived type. Usually, for a derived class FooExtension, the implementation of this function looks like:

{
return new FooExtension( tag );
}
Returns
The derived extension's new instance.

Implements StanzaExtension.

Definition at line 66 of file rap.h.

bool primary ( ) const
inline

Indicates whether this is the primary resource for the given namespace.

Returns
True if the server flagged this resource as primary for the given namespace, false otherwise.

Definition at line 60 of file rap.h.

Tag * tag ( ) const
virtual

Returns a Tag representation of the extension.

Returns
A Tag representation of the extension.

Implements StanzaExtension.

Definition at line 50 of file rap.cpp.


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