The QXmppDataForm::Field class represents a data form field as defined by XEP-0004: Data Forms.
More...
#include <QXmppDataForm.h>
Public Types |
enum | Type {
BooleanField,
FixedField,
HiddenField,
JidMultiField,
JidSingleField,
ListMultiField,
ListSingleField,
TextMultiField,
TextPrivateField,
TextSingleField
} |
| This enum is used to describe a field's type.
|
Detailed Description
The QXmppDataForm::Field class represents a data form field as defined by XEP-0004: Data Forms.
Member Function Documentation
void QXmppDataForm::Field::setDescription |
( |
const QString & |
description | ) |
|
Sets the field's description.
- Parameters
-
void QXmppDataForm::Field::setKey |
( |
const QString & |
key | ) |
|
Sets the field's key.
- Parameters
-
void QXmppDataForm::Field::setLabel |
( |
const QString & |
label | ) |
|
Sets the field's label.
- Parameters
-
void QXmppDataForm::Field::setOptions |
( |
const QList< QPair< QString, QString > > & |
options | ) |
|
Sets the field's options.
- Parameters
-
void QXmppDataForm::Field::setRequired |
( |
bool |
required | ) |
|
Set to true if the field is required, false otherwise.
- Parameters
-
Sets the field's type.
- Parameters
-
void QXmppDataForm::Field::setValue |
( |
const QVariant & |
value | ) |
|
Sets the field's value.
- Parameters
-
The documentation for this class was generated from the following files: