diff options
| author | 0xd34df00d <0xd34df00d@gmail.com> | 2019-12-22 19:46:13 -0500 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2019-12-23 19:04:55 +0100 |
| commit | e148045e90eb2ac12bb6ba426052606d5ac38c40 (patch) | |
| tree | 3ceedcc9997d4c25ec8b14bafecd5faad8cb4ed1 /src/base/QXmppRosterIq.h | |
| parent | ee218192f6c25eba0c8f041ca2e53b7222881aa0 (diff) | |
| download | qxmpp-e148045e90eb2ac12bb6ba426052606d5ac38c40.tar.gz | |
Add a .clang-format somewhat close to the current style
Diffstat (limited to 'src/base/QXmppRosterIq.h')
| -rw-r--r-- | src/base/QXmppRosterIq.h | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/src/base/QXmppRosterIq.h b/src/base/QXmppRosterIq.h index 0929bb72..1b722f3b 100644 --- a/src/base/QXmppRosterIq.h +++ b/src/base/QXmppRosterIq.h @@ -22,7 +22,6 @@ * */ - #ifndef QXMPPROSTERIQ_H #define QXMPPROSTERIQ_H @@ -47,19 +46,18 @@ public: { public: /// An enumeration for type of subscription with the bareJid in the roster. - enum SubscriptionType - { - None = 0, ///< the user does not have a subscription to the - ///< contact's presence information, and the contact does - ///< not have a subscription to the user's presence information - From = 1, ///< the contact has a subscription to the user's presence information, - ///< but the user does not have a subscription to the contact's presence information - To = 2, ///< the user has a subscription to the contact's presence information, - ///< but the contact does not have a subscription to the user's presence information - Both = 3, ///< both the user and the contact have subscriptions to each - ///< other's presence information - Remove = 4, ///< to delete a roster item - NotSet = 8 ///< the subscription state was not specified + enum SubscriptionType { + None = 0, ///< the user does not have a subscription to the + ///< contact's presence information, and the contact does + ///< not have a subscription to the user's presence information + From = 1, ///< the contact has a subscription to the user's presence information, + ///< but the user does not have a subscription to the contact's presence information + To = 2, ///< the user has a subscription to the contact's presence information, + ///< but the contact does not have a subscription to the user's presence information + Both = 3, ///< both the user and the contact have subscriptions to each + ///< other's presence information + Remove = 4, ///< to delete a roster item + NotSet = 8 ///< the subscription state was not specified }; Item(); @@ -74,10 +72,10 @@ public: QString subscriptionStatus() const; SubscriptionType subscriptionType() const; - void setBareJid(const QString&); - void setGroups(const QSet<QString>&); - void setName(const QString&); - void setSubscriptionStatus(const QString&); + void setBareJid(const QString &); + void setGroups(const QSet<QString> &); + void setName(const QString &); + void setSubscriptionStatus(const QString &); void setSubscriptionType(SubscriptionType); /// \cond @@ -87,7 +85,7 @@ public: private: QString getSubscriptionTypeStr() const; - void setSubscriptionTypeFromStr(const QString&); + void setSubscriptionTypeFromStr(const QString &); QSharedDataPointer<ItemPrivate> d; }; @@ -99,9 +97,9 @@ public: QXmppRosterIq &operator=(const QXmppRosterIq &); QString version() const; - void setVersion(const QString&); + void setVersion(const QString &); - void addItem(const Item&); + void addItem(const Item &); QList<Item> items() const; /// \cond @@ -118,4 +116,4 @@ private: QSharedDataPointer<QXmppRosterIqPrivate> d; }; -#endif // QXMPPROSTERIQ_H +#endif // QXMPPROSTERIQ_H |
