aboutsummaryrefslogtreecommitdiff
path: root/src/QXmppDataForm.h
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-12-10 09:55:39 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-12-10 09:55:39 +0000
commit11e2742230c8fcb5f642b45ca5d5e050d61382ad (patch)
tree0a910c03279b8a174349fd09f52b9e96ea6afa8c /src/QXmppDataForm.h
parentf8253c3f6da17ac20919b7a1e2c4ca7bfdfea5e9 (diff)
downloadqxmpp-11e2742230c8fcb5f642b45ca5d5e050d61382ad.tar.gz
improve QXmppDataForm documentation
Diffstat (limited to 'src/QXmppDataForm.h')
-rw-r--r--src/QXmppDataForm.h23
1 files changed, 18 insertions, 5 deletions
diff --git a/src/QXmppDataForm.h b/src/QXmppDataForm.h
index f4abdb91..2d997846 100644
--- a/src/QXmppDataForm.h
+++ b/src/QXmppDataForm.h
@@ -38,9 +38,14 @@ class QDomElement;
class QXmppDataForm
{
public:
+ /// \brief The QxmppDataForm::Field class represents a data form field
+ /// as defined by XEP-0004: Data Forms.
+ ///
+
class Field
{
public:
+ /// This enum is used to describe a field's type.
enum Type
{
BooleanField,
@@ -88,13 +93,19 @@ public:
QVariant m_value;
};
+ /// This enum is used to describe a form's type.
enum Type
{
- None,
- Form,
- Submit,
- Cancel,
- Result,
+ None, ///< Unknown form type
+ Form, ///< The form-processing entity is asking the form-submitting
+ ///< entity to complete a form.
+ Submit, ///< The form-submitting entity is submitting data to the
+ ///< form-processing entity.
+ Cancel, ///< The form-submitting entity has cancelled submission
+ ///< of data to the form-processing entity.
+ Result, ///< The form-processing entity is returning data
+ ///< (e.g., search results) to the form-submitting entity,
+ ///< or the data is a generic data set.
};
QXmppDataForm(QXmppDataForm::Type type = QXmppDataForm::None);
@@ -114,8 +125,10 @@ public:
bool isNull() const;
+ /// \cond
void parse(const QDomElement &element);
void toXml(QXmlStreamWriter *writer) const;
+ /// \endcond
private:
QString m_instructions;