#include <dataformbase.h>
Inherited by DataForm, DataFormItem, and DataFormReported.
Inheritance diagram for DataFormBase:

Public Types | |
| typedef std::list< DataFormField * > | FieldList |
Public Member Functions | |
| DataFormBase () | |
| virtual | ~DataFormBase () |
| bool | hasField (const std::string &field) |
| DataFormField * | field (const std::string &field) |
| FieldList & | fields () |
| virtual void | setFields (FieldList &fields) |
| virtual void | addField (DataFormField *field) |
| DataFormField * | addField (DataFormField::DataFormFieldType type, const std::string &name, const std::string &value="", const std::string &label="") |
You shouldn't need to use this class directly. Use DataForm instead.
Definition at line 33 of file dataformbase.h.
|
|
A list of XEP-0004 Data Form Fields. Definition at line 49 of file dataformbase.h. |
|
|
Creates a new DataFormBase. Definition at line 22 of file dataformbase.cpp. |
|
|
Virtual destructor. Definition at line 26 of file dataformbase.cpp. |
|
||||||||||||||||||||
|
Adds a single new Field and returns a pointer to that field.
Definition at line 94 of file dataformbase.h. |
|
|
Use this function to add a single field to the list of existing fields.
Definition at line 84 of file dataformbase.h. |
|
|
Use this function to fetch a pointer to a field of the form. If no such field exists, 0 is returned.
Definition at line 48 of file dataformbase.cpp. |
|
|
Use this function to retrieve the list of fields of a form.
Definition at line 70 of file dataformbase.h. |
|
|
Use this function to check whether this form contains a field with the given name.
Definition at line 36 of file dataformbase.cpp. |
|
|
Use this function to set the fields the form contains.
Definition at line 77 of file dataformbase.h. |
1.4.1