glooxd  0.3-svn
Public Member Functions | List of all members
FeatureSession Class Reference

#include <featuresession.h>

Inheritance diagram for FeatureSession:
Inheritance graph
[legend]

Public Member Functions

 FeatureSession ()
virtual ~FeatureSession ()
virtual const std::string & filterString () const
virtual gloox::Tag * tag (int state, const std::string &domain)
virtual StreamFeaturenewInstance () const
- Public Member Functions inherited from StreamFeature
 StreamFeature ()
virtual ~StreamFeature ()
void setParent (StreamBase *parent)

Detailed Description

An abstraction of the Session Create stream feature.

Basically a NOOP.

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

Definition at line 31 of file featuresession.h.

Constructor & Destructor Documentation

Constructor.

Definition at line 22 of file featuresession.cpp.

virtual ~FeatureSession ( )
inlinevirtual

virtual destructor.

Definition at line 42 of file featuresession.h.

Member Function Documentation

const std::string & filterString ( ) const
virtual

Returns an XPath expression that describes the elements that are associated with this stream feature.

Returns
An XPath expression.

Implements StreamFeature.

Definition at line 27 of file featuresession.cpp.

virtual StreamFeature* newInstance ( ) const
inlinevirtual

Returns a new Instance of the derived type. It should be configured identically, but should not inherit any state. The simplest implementation for a derived class FooFeature looks like:

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

Implements StreamFeature.

Definition at line 51 of file featuresession.h.

gloox::Tag * tag ( int  state,
const std::string &  domain 
)
virtual

Returns a Tag structire for inclusion in the stream features to send to the client. Features may depend on current stream state and the domain the client requested.

Returns
A feature Tag. May be 0 if there is no applicable feature for the current state and domain.

Implements StreamFeature.

Definition at line 33 of file featuresession.cpp.


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