Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

Disco::Info Class Reference

An abstraction of a Disco Info element (from Service Discovery, XEP-0030) as a StanzaExtension. More...

#include <disco.h>

Inherits StanzaExtension.

Inheritance diagram for Disco::Info:

Inheritance graph
[legend]
List of all members.

Public Member Functions

const std::string & node () const
const StringListfeatures () const
bool hasFeature (const std::string &feature) const
const IdentityListidentities () const
const DataFormform () const
virtual const std::string & filterString () const
virtual StanzaExtensionnewInstance (const Tag *tag) const
virtual Tagtag () const

Detailed Description

An abstraction of a Disco Info element (from Service Discovery, XEP-0030) as a StanzaExtension.

Author:
Jakob Schroeter <js@camaya.net>
Since:
1.0

Definition at line 65 of file disco.h.


Member Function Documentation

const StringList& features  )  const [inline]
 

Returns the entity's supported features.

Returns:
A list of supported features/namespaces.

Definition at line 80 of file disco.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 182 of file disco.cpp.

const DataForm* form  )  const [inline]
 

Returns an optionally included data form. This is used by e.g. MUC (XEP-0045).

Returns:
An optional data form included in the disco#info. May be 0.

Definition at line 99 of file disco.h.

bool hasFeature const std::string &  feature  )  const
 

Use this function to check if the entity the Info came from supports agiven feature.

Parameters:
feature The feature to check for.
Returns:
True if the entity announces support for the feature, false otherwise.

Definition at line 174 of file disco.cpp.

const IdentityList& identities  )  const [inline]
 

Returns the entity's identities.

Returns:
A list of pointers to Identity objects.

Definition at line 93 of file disco.h.

virtual StanzaExtension* newInstance const Tag tag  )  const [inline, virtual]
 

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 105 of file disco.h.

const std::string& node  )  const [inline]
 

Returns the queried node identifier, if any.

Returns:
The node identifier. May be empty.

Definition at line 74 of file disco.h.

Tag * tag  )  const [virtual]
 

Returns a Tag representation of the extension.

Returns:
A Tag representation of the extension.

Implements StanzaExtension.

Definition at line 188 of file disco.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Apr 22 15:10:14 2008 for gloox by  doxygen 1.4.1