35class ProfileFieldPrivate;
111 QString
label()
const;
119 bool validate(
const QString &aValue)
const;
128 QDomElement
toXml(QDomDocument &aDoc)
const;
146 ProfileFieldPrivate *d_ptr;
This class represents a profile field.
Definition ProfileField.h:49
QString visible() const
Gets the visibility of the field.
Definition ProfileField.cpp:200
QStringList options() const
Gets the allowed values for the field.
Definition ProfileField.cpp:151
QString name() const
Gets the field name.
Definition ProfileField.cpp:136
bool isReadOnly() const
Checks if the field is read only.
Definition ProfileField.cpp:209
QDomElement toXml(QDomDocument &aDoc) const
Exports the field to XML.
Definition ProfileField.cpp:173
static const QString VISIBLE_NEVER
Field should never be visible in UI.
Definition ProfileField.h:56
static const QString VISIBLE_ALWAYS
Field should be always visible in UI.
Definition ProfileField.h:53
static const QString VISIBLE_USER
Field should be visible in UI if a value for the field has not.
Definition ProfileField.h:60
QString type() const
Get the field type.
Definition ProfileField.cpp:141
bool validate(const QString &aValue) const
Checks if the given value is in the list of allowed values.
Definition ProfileField.cpp:161
~ProfileField()
Destructor.
Definition ProfileField.cpp:130
QString defaultValue() const
Gets the field default value.
Definition ProfileField.cpp:146
QString label() const
Gets the field label.
Definition ProfileField.cpp:156
static const QString TYPE_BOOLEAN
Field type for boolean fields.
Definition ProfileField.h:63