#include <dataform.h>
Inherits StanzaExtension, and DataFormFieldContainer.
Inheritance diagram for DataForm:

Public Member Functions | |
| DataForm (FormType type, const StringList &instructions, const std::string &title=EmptyString) | |
| DataForm (FormType type, const std::string &title=EmptyString) | |
| DataForm (const Tag *tag) | |
| DataForm (const DataForm &form) | |
| virtual | ~DataForm () |
| const std::string & | title () const |
| void | setTitle (const std::string &title) |
| const StringList & | instructions () const |
| void | setInstructions (const StringList &instructions) |
| FormType | type () const |
| void | setType (FormType type) |
| bool | parse (const Tag *tag) |
| operator bool () const | |
| virtual const std::string & | filterString () const |
| virtual StanzaExtension * | newInstance (const Tag *tag) const |
| virtual Tag * | tag () const |
Definition at line 56 of file dataform.h.
|
||||||||||||||||
|
Constructs a new, empty form.
Definition at line 24 of file dataform.cpp. |
|
||||||||||||
|
Constructs a new, empty form without any instructions or title set. Probably best suited for result forms.
Definition at line 30 of file dataform.cpp. |
|
|
Constructs a new DataForm from an existing Tag/XML representation.
Definition at line 36 of file dataform.cpp. |
|
|
Creates a new DataForm, copying the given one.
Definition at line 43 of file dataform.cpp. |
|
|
Virtual destructor. Definition at line 50 of file dataform.cpp. |
|
|
Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.
Implements StanzaExtension. Definition at line 83 of file dataform.cpp. |
|
|
Retrieves the natural-language instructions for the form.
Definition at line 111 of file dataform.h. |
|
|
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. Definition at line 152 of file dataform.h. |
|
|
Converts to true if the DataForm is valid, false otherwise. Definition at line 146 of file dataform.h. |
|
|
Parses the given Tag and creates an appropriate DataForm representation.
Definition at line 59 of file dataform.cpp. |
|
|
Use this function to set natural-language instructions for the form.
Definition at line 120 of file dataform.h. |
|
|
Use this function to set the title of the form.
Definition at line 105 of file dataform.h. |
|
|
Sets the form's type.
Definition at line 133 of file dataform.h. |
|
|
Returns a Tag representation of the extension.
Implements StanzaExtension. Definition at line 89 of file dataform.cpp. |
|
|
Use this function to retrieve the title of the form.
Definition at line 98 of file dataform.h. |
|
|
Returns the form's type.
Definition at line 127 of file dataform.h. |
1.4.1