The QXmppDataForm class represents a data form as defined by XEP-0004: Data Forms.
◆ Type
This enum is used to describe a form's type.
Enumerator |
---|
None | Unknown form type.
|
Form | The form-processing entity is asking the form-submitting entity to complete a form.
|
Submit | The form-submitting entity is submitting data to the form-processing entity.
|
Cancel | The form-submitting entity has cancelled submission of data to the form-processing entity.
|
Result | The form-processing entity is returning data (e.g., search results) to the form-submitting entity, or the data is a generic data set.
|
◆ QXmppDataForm() [1/2]
QXmppDataForm::QXmppDataForm |
( |
Type |
type = None , |
|
|
const QList< Field > & |
fields = {} , |
|
|
const QString & |
title = {} , |
|
|
const QString & |
instructions = {} |
|
) |
| |
◆ QXmppDataForm() [2/2]
◆ fields() [1/2]
Returns the form's fields by reference.
◆ fields() [2/2]
Returns the form's fields.
◆ formType()
QString QXmppDataForm::formType |
( |
| ) |
const |
Searches for a hidden field called 'FORM_TYPE' and returns its value.
- Returns
- The string value of the field or a null string if the field couldn't be found.
- Since
- QXmpp 1.5
◆ instructions()
QString QXmppDataForm::instructions |
( |
| ) |
const |
Returns the form's instructions.
◆ isNull()
bool QXmppDataForm::isNull |
( |
| ) |
const |
Returns true if the form has an unknown type.
◆ setFields()
Sets the form's fields.
- Parameters
-
◆ setInstructions()
void QXmppDataForm::setInstructions |
( |
const QString & |
instructions | ) |
|
Sets the form's instructions.
- Parameters
-
◆ setTitle()
void QXmppDataForm::setTitle |
( |
const QString & |
title | ) |
|
Sets the form's title.
- Parameters
-
◆ setType()
Sets the form's type.
- Parameters
-
◆ title()
QString QXmppDataForm::title |
( |
| ) |
const |
Returns the form's title.
◆ type()
The documentation for this class was generated from the following files: