|
QXmpp Version: 1.15.1
|
Classes | |
| class | MediaSource |
| class | Media |
| class | Field |
Public Types | |
| enum | Type { None , Form , Submit , Cancel , Result } |
| This enum is used to describe a form's type. More... | |
Public Member Functions | |
| QXmppDataForm (Type type=None, const QList< Field > &fields={}, const QString &title={}, const QString &instructions={}) | |
| QXmppDataForm (const QXmppDataFormBase &based) | |
| QXmppDataForm (const QXmppDataForm &other) | |
| Constructs a copy of other. | |
| QXmppDataForm (QXmppDataForm &&) | |
| Default move constructor. | |
| ~QXmppDataForm () | |
| Destroys the form. | |
| QXmppDataForm & | operator= (const QXmppDataForm &other) |
| Assigns other to this form. | |
| QXmppDataForm & | operator= (QXmppDataForm &&) |
| Default move-assignment operator. | |
| QString | instructions () const |
| void | setInstructions (const QString &instructions) |
| QList< Field > | fields () const |
| Returns all fields. | |
| const QList< Field > & | constFields () const |
| void | setFields (const QList< QXmppDataForm::Field > &fields) |
| Sets the form's fields. | |
| void | appendField (QXmppDataForm::Field &&field) |
| std::optional< QXmppDataForm::Field > | field (QStringView fieldName) const |
| std::optional< QVariant > | fieldValue (QStringView fieldName) const |
| QString | title () const |
| void | setTitle (const QString &title) |
| QXmppDataForm::Type | type () const |
| void | setType (QXmppDataForm::Type type) |
| QString | formType () const |
| bool | isNull () const |
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 | ( | Type | type = None, |
| const QList< Field > & | fields = {}, | ||
| const QString & | title = {}, | ||
| const QString & | instructions = {} ) |
Constructs a QXmppDataForm with the specified attributes.
| QXmppDataForm::QXmppDataForm | ( | const QXmppDataFormBase & | based | ) |
Constructs a data form from any type based on QXmppDataFormBase.
| void QXmppDataForm::appendField | ( | QXmppDataForm::Field && | field | ) |
Appends a field.
| const QList< QXmppDataForm::Field > & QXmppDataForm::constFields | ( | ) | const |
Returns all fields.
| std::optional< QXmppDataForm::Field > QXmppDataForm::field | ( | QStringView | fieldName | ) | const |
Look up field by name.
| std::optional< QVariant > QXmppDataForm::fieldValue | ( | QStringView | fieldName | ) | const |
Look up field by name and return value if found.
| QString QXmppDataForm::formType | ( | ) | const |
Searches for a hidden field called 'FORM_TYPE' and returns its value.
| QString QXmppDataForm::instructions | ( | ) | const |
Returns the form's instructions.
| bool QXmppDataForm::isNull | ( | ) | const |
Returns true if the form has an unknown type.
| 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 |
| QString QXmppDataForm::title | ( | ) | const |
Returns the form's title.
| QXmppDataForm::Type QXmppDataForm::type | ( | ) | const |
Returns the form's type.