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

#include <featurestarttls.h>

Inheritance diagram for FeatureSTARTTLS:
Inheritance graph
[legend]

Public Member Functions

 FeatureSTARTTLS (bool required, CertificateProvider *cp)
virtual ~FeatureSTARTTLS ()
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 STARTTLS stream feature.

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

Definition at line 39 of file featurestarttls.h.

Constructor & Destructor Documentation

FeatureSTARTTLS ( bool  required,
CertificateProvider *  cp 
)

Constructor.

Parameters
@bTrue if a <required/> should be included in the stream feature.
cpThe CertificateProvider.

Definition at line 27 of file featurestarttls.cpp.

~FeatureSTARTTLS ( )
virtual

virtual destructor.

Definition at line 34 of file featurestarttls.cpp.

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 39 of file featurestarttls.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 63 of file featurestarttls.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 45 of file featurestarttls.cpp.


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