glooxd
0.3-svn
|
#include <streamfeature.h>
Public Member Functions | |
StreamFeature () | |
virtual | ~StreamFeature () |
void | setParent (StreamBase *parent) |
virtual const std::string & | filterString () const =0 |
virtual gloox::Tag * | tag (int state, const std::string &domain)=0 |
virtual StreamFeature * | newInstance () const =0 |
This is the base class for a strean feature. It allows to plug new features (and associated processing) into the server.
Definition at line 39 of file streamfeature.h.
|
inline |
Constructor.
Definition at line 45 of file streamfeature.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 52 of file streamfeature.h.
|
pure virtual |
Returns an XPath expression that describes the elements that are associated with this stream feature.
Implemented in FeatureSTARTTLS, FeatureSASL, FeatureResourceBind, FeatureSession, and FeatureCompression.
|
pure virtual |
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:
Implemented in FeatureSTARTTLS, FeatureSASL, FeatureResourceBind, FeatureSession, and FeatureCompression.
|
inline |
Sets the StreamBase instance that will be used for communication. You should not need to use this function manually.
Definition at line 58 of file streamfeature.h.
|
pure 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.
Implemented in FeatureSTARTTLS, FeatureSASL, FeatureResourceBind, FeatureSession, and FeatureCompression.