|
| enum | Type {
BooleanField
, FixedField
, HiddenField
, JidMultiField
,
JidSingleField
, ListMultiField
, ListSingleField
, TextMultiField
,
TextPrivateField
, TextSingleField
} |
| | This enum is used to describe a field's type.
|
| |
The QXmppDataForm::Field class represents a data form field as defined by XEP-0004: Data Forms.
◆ Field()
| QXmppDataForm::Field::Field |
( |
Type |
type = TextSingleField, |
|
|
const QString & |
key = {}, |
|
|
const QVariant & |
value = {}, |
|
|
bool |
isRequired = false, |
|
|
const QString & |
label = {}, |
|
|
const QString & |
description = {}, |
|
|
const QList< QPair< QString, QString > > & |
options = {} |
|
) |
| |
◆ description()
| QString QXmppDataForm::Field::description |
( |
| ) |
const |
Returns the field's description.
◆ isRequired()
| bool QXmppDataForm::Field::isRequired |
( |
| ) |
const |
Returns true if the field is required, false otherwise.
◆ key()
| QString QXmppDataForm::Field::key |
( |
| ) |
const |
◆ label()
| QString QXmppDataForm::Field::label |
( |
| ) |
const |
Returns the field's label.
◆ media()
◆ mediaSize() [1/2]
| QSize & QXmppDataForm::Field::mediaSize |
( |
| ) |
|
Returns the size of the attached media according to XEP-0221: Data Forms Media Element.
- Since
- QXmpp 1.1
◆ mediaSize() [2/2]
| QSize QXmppDataForm::Field::mediaSize |
( |
| ) |
const |
Returns the size of the attached media according to XEP-0221: Data Forms Media Element.
- Since
- QXmpp 1.1
◆ mediaSources() [1/2]
Returns the sources for the attached media according to XEP-0221: Data Forms Media Element.
- Since
- QXmpp 1.1
◆ mediaSources() [2/2]
Returns the sources for the attached media according to XEP-0221: Data Forms Media Element.
- Since
- QXmpp 1.1
◆ operator==()
| bool QXmppDataForm::Field::operator== |
( |
const Field & |
other | ) |
const |
Returns true if the other field is identical to this one.
- Since
- QXmpp 1.1
◆ options()
| QList< QPair< QString, QString > > QXmppDataForm::Field::options |
( |
| ) |
const |
Returns the field's options.
◆ setDescription()
| void QXmppDataForm::Field::setDescription |
( |
const QString & |
description | ) |
|
Sets the field's description.
- Parameters
-
◆ setKey()
| void QXmppDataForm::Field::setKey |
( |
const QString & |
key | ) |
|
Sets the field's key.
- Parameters
-
◆ setLabel()
| void QXmppDataForm::Field::setLabel |
( |
const QString & |
label | ) |
|
Sets the field's label.
- Parameters
-
◆ setMedia()
| void QXmppDataForm::Field::setMedia |
( |
const Media & |
media | ) |
|
◆ setMediaSize()
| void QXmppDataForm::Field::setMediaSize |
( |
const QSize & |
size | ) |
|
Sets the size of the attached media according to XEP-0221: Data Forms Media Element.
- Since
- QXmpp 1.1
◆ setMediaSources()
Sets the sources to the attached media of the field according to XEP-0221: Data Forms Media Element.
- Since
- QXmpp 1.1
◆ setOptions()
| void QXmppDataForm::Field::setOptions |
( |
const QList< QPair< QString, QString > > & |
options | ) |
|
Sets the field's options.
- Parameters
-
◆ setRequired()
| void QXmppDataForm::Field::setRequired |
( |
bool |
required | ) |
|
Set to true if the field is required, false otherwise.
- Parameters
-
◆ setType()
Sets the field's type.
- Parameters
-
◆ setValue()
| void QXmppDataForm::Field::setValue |
( |
const QVariant & |
value | ) |
|
Sets the field's value.
- Parameters
-
◆ type()
Returns the field's type.
◆ value()
| QVariant QXmppDataForm::Field::value |
( |
| ) |
const |
Returns the field's value.
The documentation for this class was generated from the following files: