gloox  1.0.20
Public Member Functions | List of all members
AdhocPlugin Class Referenceabstract

#include <adhocplugin.h>

Inheritance diagram for AdhocPlugin:
Inheritance graph

Public Member Functions

 AdhocPlugin (int type)
virtual ~AdhocPlugin ()
virtual operator bool () const =0
- Public Member Functions inherited from StanzaExtension
 StanzaExtension (int type)
virtual ~StanzaExtension ()
virtual StanzaembeddedStanza () const
virtual TagembeddedTag () const
virtual const std::string & filterString () const =0
virtual StanzaExtensionnewInstance (const Tag *tag) const =0
virtual Tagtag () const =0
virtual StanzaExtensionclone () const =0
int extensionType () const

Detailed Description

A base class for Adhoc Command plugins (DataForm, IO Data, ...).

This is just a common base class for abstractions of protocols that can be embedded into Adhoc Commands. You should not need to use this class directly unless you're extending Adhoc Commands further.

This class exists purely as an additional abstraction layer, to limit the type of objects that can be added to an Adhoc Command.

Jakob Schröter

Definition at line 38 of file adhocplugin.h.

Constructor & Destructor Documentation

◆ AdhocPlugin()

AdhocPlugin ( int  type)

Creazes a new Adhoc Plugin of the given type.

typeThis should be a StanzaExtension type, i.e. the type of StanzaExtension the plugin will hold.

Definition at line 47 of file adhocplugin.h.

◆ ~AdhocPlugin()

virtual ~AdhocPlugin ( )

Virtual destructor.

Definition at line 52 of file adhocplugin.h.

Member Function Documentation

◆ operator bool()

virtual operator bool ( ) const
pure virtual

Converts to true if the plugin is valid, false otherwise.

Implemented in IOData, and DataForm.

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