gloox
1.0.1
|
#include <dataformreported.h>
Public Member Functions | |
DataFormReported () | |
DataFormReported (Tag *tag) | |
virtual | ~DataFormReported () |
virtual Tag * | tag () const |
Public Member Functions inherited from DataFormFieldContainer | |
DataFormFieldContainer () | |
DataFormFieldContainer (const DataFormFieldContainer &dffc) | |
virtual | ~DataFormFieldContainer () |
bool | hasField (const std::string &field) const |
DataFormField * | field (const std::string &field) const |
FieldList & | fields () |
const FieldList & | fields () const |
virtual void | setFields (FieldList &fields) |
virtual void | addField (DataFormField *field) |
DataFormField * | addField (DataFormField::FieldType type, const std::string &name, const std::string &value=EmptyString, const std::string &label=EmptyString) |
Additional Inherited Members | |
Public Types inherited from DataFormFieldContainer | |
typedef std::list < DataFormField * > | FieldList |
An abstraction of a <reported> element in a XEP-0004 Data Form of type result.
There are some constraints regarding usage of this element you should be aware of. Check XEP-0004 section 3.4. This class does not enforce correct usage at this point.
Definition at line 33 of file dataformreported.h.
DataFormReported | ( | ) |
Creates an empty 'reported' element you can add fields to.
Definition at line 21 of file dataformreported.cpp.
DataFormReported | ( | Tag * | tag | ) |
Creates a 'reported' element and fills it with the 'field' elements contained in the given Tag. The Tag's root element must be a 'reported' element. Its child element should be 'field' elements.
tag | The tag to read the 'field' elements from. |
Definition at line 25 of file dataformreported.cpp.
|
virtual |
Virtual destructor.
Definition at line 39 of file dataformreported.cpp.
|
virtual |
Creates and returns a Tag representation of the current object.
Definition at line 43 of file dataformreported.cpp.