#include <adhoc.h>
Inherits StanzaExtension.
Inheritance diagram for Adhoc::Command:

Public Types | |
| typedef std::list< const Note * > | NoteList |
| enum | Action { Execute = 1, Cancel = 2, Previous = 4, Next = 8, Complete = 16, InvalidAction = 32 } |
| enum | Status { Executing, Completed, Canceled, InvalidStatus } |
Public Member Functions | |
| Command (const std::string &node, const std::string &sessionid, Action action) | |
| Command (const std::string &node, const std::string &sessionid, Status status, DataForm *form=0) | |
| Command (const std::string &node, Action action) | |
| const std::string & | node () const |
| const std::string & | sessionID () const |
| Status | status () const |
| Action | action () const |
| int | actions () const |
| const NoteList & | notes () const |
| void | addNote (const Note *note) |
| const DataForm * | form () const |
| virtual const std::string & | filterString () const |
| virtual StanzaExtension * | newInstance (const Tag *tag) const |
| virtual Tag * | tag () const |
Classes | |
| class | Note |
Definition at line 90 of file adhoc.h.
|
|
A list of command notes. |
|
|
|
Describes the current status of a command. |
|
||||||||||||||||
|
Creates a Command object that can be used to perform the provided Action. This constructor is used best to continue execution of a multi stage command (for which the session ID must be known).
|
|
||||||||||||||||||||
|
Creates a Command object that can be used to perform the provided Action. This constructor is used best to reply to an execute request.
|
|
||||||||||||
|
Creates a Command object that can be used to perform the provided Action. This constructor is used best to execute the initial step of a command (single or multi stage).
|
|
|
Returns the command's action.
|
|
|
Returns the ORed actions that are allowed to be executed on the current stage.
|
|
|
Use this function to add a note to the command. |
|
|
Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.
Implements StanzaExtension. |
|
|
Returns the command's embedded DataForm.
|
|
|
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 ); }
Implements StanzaExtension. |
|
|
Returns the node identifier (the command).
|
|
|
Returns the list of notes associated with the command.
|
|
|
Returns the command's session ID, if any.
|
|
|
Returns the execution status for a command. Only valid for execution results.
|
|
|
Returns a Tag representation of the extension.
Implements StanzaExtension. |
1.4.1