#include <dataform.h>
Inherits DataFormBase.
Inheritance diagram for DataForm:


Public Types | |
| enum | DataFormType { FormTypeForm, FormTypeSubmit, FormTypeCancel, FormTypeResult, FormTypeInvalid } |
Public Member Functions | |
| DataForm (DataFormType type, const StringList &instructions, const std::string &title="") | |
| DataForm (DataFormType type, const std::string &title="") | |
| DataForm (Tag *tag) | |
| DataForm () | |
| virtual | ~DataForm () |
| Tag * | tag () const |
| const std::string & | title () const |
| void | setTitle (const std::string &title) |
| const StringList & | instructions () const |
| void | setInstructions (const StringList &instructions) |
| DataForm::DataFormType | type () const |
| bool | parse (Tag *tag) |
Definition at line 35 of file dataform.h.
|
|
Describes the possible Form Types.
Definition at line 41 of file dataform.h. |
|
||||||||||||||||
|
Constructs a new, empty form.
Definition at line 23 of file dataform.cpp. |
|
||||||||||||
|
Constructs a new, empty form without any instructions or title set. Probably best suited for result forms.
Definition at line 28 of file dataform.cpp. |
|
|
Constructs a new DataForm from an existing Tag/XML representation.
Definition at line 33 of file dataform.cpp. |
|
|
Constructs an empty DataForm. Its type is FormTypeInvalid. Definition at line 39 of file dataform.cpp. |
|
|
Virtual destructor. Definition at line 44 of file dataform.cpp. |
|
|
Retrieves the natural-language instructions for the form.
Definition at line 114 of file dataform.h. |
|
|
Parses the given Tag and creates an appropriate DataForm representation.
Definition at line 48 of file dataform.cpp. |
|
|
Use this function to set natural-language instructions for the form.
Definition at line 123 of file dataform.h. |
|
|
Use this function to set the title of the form.
Definition at line 108 of file dataform.h. |
|
|
Use this function to create a Tag representation of the form.
Definition at line 92 of file dataform.cpp. |
|
|
Use this function to retrieve the title of the form.
Definition at line 101 of file dataform.h. |
|
|
Returns the form's type.
Definition at line 130 of file dataform.h. |
1.4.1