gloox  1.0.20
Public Member Functions | List of all members
DataFormItem Class Reference

#include <dataformitem.h>

Inheritance diagram for DataFormItem:
Inheritance graph

Public Member Functions

 DataFormItem ()
 DataFormItem (const Tag *tag)
virtual ~DataFormItem ()
virtual Tagtag () const
- Public Member Functions inherited from DataFormFieldContainer
 DataFormFieldContainer ()
 DataFormFieldContainer (const DataFormFieldContainer &dffc)
virtual ~DataFormFieldContainer ()
bool hasField (const std::string &field) const
DataFormFieldfield (const std::string &field) const
FieldListfields ()
const FieldListfields () const
virtual void setFields (FieldList &fields)
virtual void addField (DataFormField *field)
DataFormFieldaddField (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

Detailed Description

An abstraction of an <item> 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.

Jakob Schröter

Definition at line 31 of file dataformitem.h.

Constructor & Destructor Documentation

◆ DataFormItem() [1/2]

Creates an empty 'item' element you can add fields to.

Definition at line 21 of file dataformitem.cpp.

◆ DataFormItem() [2/2]

DataFormItem ( const Tag tag)

Creates a 'item' element and fills it with the 'field' elements contained in the given Tag. The Tag's root element must be a 'item' element. Its child element should be 'field' elements.

tagThe tag to read the 'field' elements from.

Definition at line 25 of file dataformitem.cpp.

◆ ~DataFormItem()

~DataFormItem ( )

Virtual destructor.

Definition at line 39 of file dataformitem.cpp.

Member Function Documentation

◆ tag()

Tag * tag ( ) const

Creates and returns a Tag representation of the current object.

A Tag representation of the current object.

Definition at line 43 of file dataformitem.cpp.

The documentation for this class was generated from the following files: