35class ProfileFieldPrivate;
110 QString
label()
const;
118 bool validate(
const QString &aValue)
const;
127 QDomElement
toXml(QDomDocument &aDoc)
const;
145 ProfileFieldPrivate *d_ptr;
QString visible() const
Gets the visibility of the field.
Definition ProfileField.cpp:195
QStringList options() const
Gets the allowed values for the field.
Definition ProfileField.cpp:151
ProfileField(const QDomElement &aRoot)
Constructs a ProfileField from XML.
Definition ProfileField.cpp:95
QString name() const
Gets the field name.
Definition ProfileField.cpp:136
bool isReadOnly() const
Checks if the field is read only.
Definition ProfileField.cpp:204
QDomElement toXml(QDomDocument &aDoc) const
Exports the field to XML.
Definition ProfileField.cpp:168
static const QString VISIBLE_NEVER
Field should never be visible in UI.
Definition ProfileField.h:55
static const QString VISIBLE_ALWAYS
Field should be always visible in UI.
Definition ProfileField.h:52
static const QString VISIBLE_USER
Field should be visible in UI if a value for the field has not.
Definition ProfileField.h:59
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:62