gloox  1.0.16
Public Member Functions | List of all members
FeatureNeg Class Reference

#include <featureneg.h>

Inheritance diagram for FeatureNeg:
Inheritance graph
[legend]

Public Member Functions

 FeatureNeg (DataForm *form)
 
 FeatureNeg (const Tag *tag=0)
 
virtual ~FeatureNeg ()
 
const DataFormform () 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 ()
 
virtual StanzaembeddedStanza () const
 
virtual TagembeddedTag () const
 
int extensionType () const
 

Detailed Description

An abstraction of Feature Negotiation (XEP-0020), implemented as a StanzaExtension.

XEP Version: 1.5

Author
Jakob Schröter js@ca.nosp@m.maya.nosp@m..net
Since
1.0

Definition at line 35 of file featureneg.h.

Constructor & Destructor Documentation

FeatureNeg ( DataForm form)

Creates a new wrapper object using the given DataForm.

Parameters
formThe DataForm to embed. The FeatureNeg object will own the DataForm.

Definition at line 21 of file featureneg.cpp.

FeatureNeg ( const Tag tag = 0)

Creates a new wrapper object from the given Tag.

Parameters
tagThe Tag to parse.

Definition at line 26 of file featureneg.cpp.

~FeatureNeg ( )
virtual

Virtual destructor.

Definition at line 37 of file featureneg.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 74 of file featureneg.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 42 of file featureneg.cpp.

const DataForm* form ( ) const
inline

Returns the wrapped DataForm.

Returns
The wrapped DataForm. May be 0.

Definition at line 59 of file featureneg.h.

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:

StanzaExtension* FooExtension::newInstance( const Tag* tag ) const
{
return new FooExtension( tag );
}
Returns
The derived extension's new instance.

Implements StanzaExtension.

Definition at line 65 of file featureneg.h.

Tag * tag ( ) const
virtual

Returns a Tag representation of the extension.

Returns
A Tag representation of the extension.

Implements StanzaExtension.

Definition at line 49 of file featureneg.cpp.


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