aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppDataForm.h
diff options
context:
space:
mode:
author0xd34df00d <0xd34df00d@gmail.com>2019-12-22 19:46:13 -0500
committerLNJ <lnj@kaidan.im>2019-12-23 19:04:55 +0100
commite148045e90eb2ac12bb6ba426052606d5ac38c40 (patch)
tree3ceedcc9997d4c25ec8b14bafecd5faad8cb4ed1 /src/base/QXmppDataForm.h
parentee218192f6c25eba0c8f041ca2e53b7222881aa0 (diff)
downloadqxmpp-e148045e90eb2ac12bb6ba426052606d5ac38c40.tar.gz
Add a .clang-format somewhat close to the current style
Diffstat (limited to 'src/base/QXmppDataForm.h')
-rw-r--r--src/base/QXmppDataForm.h40
1 files changed, 19 insertions, 21 deletions
diff --git a/src/base/QXmppDataForm.h b/src/base/QXmppDataForm.h
index 6c8390f4..46b4e681 100644
--- a/src/base/QXmppDataForm.h
+++ b/src/base/QXmppDataForm.h
@@ -90,7 +90,7 @@ public:
Media(const QXmppDataForm::Media &other);
~Media();
- QXmppDataForm::Media& operator=(const QXmppDataForm::Media &other);
+ QXmppDataForm::Media &operator=(const QXmppDataForm::Media &other);
QT_DEPRECATED_X("Use QXmppDataForm::Field::mediaSize().height() instead")
int height() const;
@@ -103,9 +103,9 @@ public:
void setWidth(int width);
QT_DEPRECATED_X("Use QXmppDataForm::Field::mediaSources() instead")
- QList<QPair<QString, QString> > uris() const;
+ QList<QPair<QString, QString>> uris() const;
QT_DEPRECATED_X("Use QXmppDataForm::Field::setMediaSources() instead")
- void setUris(const QList<QPair<QString, QString> > &uris);
+ void setUris(const QList<QPair<QString, QString>> &uris);
QT_DEPRECATED_X("Use QXmppDataForm::Field::mediaSources().isEmpty() instead")
bool isNull() const;
@@ -122,8 +122,7 @@ public:
{
public:
/// This enum is used to describe a field's type.
- enum Type
- {
+ enum Type {
BooleanField,
FixedField,
HiddenField,
@@ -140,7 +139,7 @@ public:
Field(const QXmppDataForm::Field &other);
~Field();
- QXmppDataForm::Field& operator=(const QXmppDataForm::Field &other);
+ QXmppDataForm::Field &operator=(const QXmppDataForm::Field &other);
QString description() const;
void setDescription(const QString &description);
@@ -159,8 +158,8 @@ public:
void setMedia(const Media &media);
#endif
- QList<QPair<QString, QString> > options() const;
- void setOptions(const QList<QPair<QString, QString> > &options);
+ QList<QPair<QString, QString>> options() const;
+ void setOptions(const QList<QPair<QString, QString>> &options);
bool isRequired() const;
void setRequired(bool required);
@@ -186,25 +185,24 @@ public:
};
/// This enum is used to describe a form's type.
- enum Type
- {
- 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.
+ enum Type {
+ 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);
QXmppDataForm(const QXmppDataForm &other);
~QXmppDataForm();
- QXmppDataForm& operator=(const QXmppDataForm &other);
+ QXmppDataForm &operator=(const QXmppDataForm &other);
QString instructions() const;
void setInstructions(const QString &instructions);