The QXmppDataForm class represents a data form as defined by XEP-0004: Data Forms. More...
#include <QXmppDataForm.h>
Classes | |
| class | Field |
| The QXmppDataForm::Field class represents a data form field as defined by XEP-0004: Data Forms. More... | |
Public Types | |
| enum | Type { None, Form, Submit, Cancel, Result } |
This enum is used to describe a form's type. More... | |
Public Member Functions | |
| QXmppDataForm (QXmppDataForm::Type type=QXmppDataForm::None) | |
| QString | instructions () const |
| Returns the form's instructions. | |
| void | setInstructions (const QString &instructions) |
| QList< Field > | fields () const |
| Returns the form's fields. | |
| QList< Field > & | fields () |
| Returns the form's fields by reference. | |
| void | setFields (const QList< QXmppDataForm::Field > &fields) |
| QString | title () const |
| Returns the form's title. | |
| void | setTitle (const QString &title) |
| QXmppDataForm::Type | type () const |
| Returns the form's type. | |
| void | setType (QXmppDataForm::Type type) |
| bool | isNull () const |
| Returns true if the form has an unknown type. | |
The QXmppDataForm class represents a data form as defined by XEP-0004: Data Forms.
| enum QXmppDataForm::Type |
This enum is used to describe a form's type.
| QXmppDataForm::QXmppDataForm | ( | QXmppDataForm::Type | type = QXmppDataForm::None |
) |
Constructs a QXmppDataForm of the specified type.
| type |
| void QXmppDataForm::setFields | ( | const QList< QXmppDataForm::Field > & | fields | ) |
Sets the form's fields.
| fields |
| void QXmppDataForm::setInstructions | ( | const QString & | instructions | ) |
Sets the form's instructions.
| instructions |
| void QXmppDataForm::setTitle | ( | const QString & | title | ) |
Sets the form's title.
| title |
| void QXmppDataForm::setType | ( | QXmppDataForm::Type | type | ) |
Sets the form's type.
| type |
1.7.1