aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppMessage.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/QXmppMessage.h
parentee218192f6c25eba0c8f041ca2e53b7222881aa0 (diff)
Add a .clang-format somewhat close to the current style
Diffstat (limited to 'src/base/QXmppMessage.h')
-rw-r--r--src/base/QXmppMessage.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/base/QXmppMessage.h b/src/base/QXmppMessage.h
index b4864eec..764c2c90 100644
--- a/src/base/QXmppMessage.h
+++ b/src/base/QXmppMessage.h
@@ -85,26 +85,26 @@ public:
///
/// \since QXmpp 1.1
enum EncryptionMethod {
- NoEncryption, ///< No encryption
- UnknownEncryption, ///< Unknown encryption
- OTR, ///< XEP-0364: Current Off-the-Record Messaging Usage
- LegacyOpenPGP, ///< XEP-0027: Current Jabber OpenPGP Usage
- OX, ///< XEP-0373: OpenPGP for XMPP
- OMEMO ///< XEP-0384: OMEMO Encryption
+ NoEncryption, ///< No encryption
+ UnknownEncryption, ///< Unknown encryption
+ OTR, ///< XEP-0364: Current Off-the-Record Messaging Usage
+ LegacyOpenPGP, ///< XEP-0027: Current Jabber OpenPGP Usage
+ OX, ///< XEP-0373: OpenPGP for XMPP
+ OMEMO ///< XEP-0384: OMEMO Encryption
};
- QXmppMessage(const QString& from = QString(), const QString& to = QString(),
- const QString& body = QString(), const QString& thread = QString());
+ QXmppMessage(const QString &from = QString(), const QString &to = QString(),
+ const QString &body = QString(), const QString &thread = QString());
QXmppMessage(const QXmppMessage &other);
~QXmppMessage() override;
- QXmppMessage& operator=(const QXmppMessage &other);
+ QXmppMessage &operator=(const QXmppMessage &other);
bool isXmppStanza() const override;
QString body() const;
- void setBody(const QString&);
+ void setBody(const QString &);
bool isAttentionRequested() const;
void setAttentionRequested(bool requested);
@@ -131,10 +131,10 @@ public:
void setState(QXmppMessage::State);
QString subject() const;
- void setSubject(const QString&);
+ void setSubject(const QString &);
QString thread() const;
- void setThread(const QString&);
+ void setThread(const QString &);
QXmppMessage::Type type() const;
void setType(QXmppMessage::Type);
@@ -147,10 +147,10 @@ public:
void setMarkable(const bool);
QString markedId() const;
- void setMarkerId(const QString&);
+ void setMarkerId(const QString &);
QString markedThread() const;
- void setMarkedThread(const QString&);
+ void setMarkedThread(const QString &);
Marker marker() const;
void setMarker(const Marker);
@@ -166,11 +166,11 @@ public:
// XEP-0066: Out of Band Data
QString outOfBandUrl() const;
- void setOutOfBandUrl(const QString&);
+ void setOutOfBandUrl(const QString &);
// XEP-0308: Last Message Correction
QString replaceId() const;
- void setReplaceId(const QString&);
+ void setReplaceId(const QString &);
// XEP-0334: Message Processing Hints
bool hasHint(const Hint hint) const;
@@ -180,30 +180,30 @@ public:
// XEP-0367: Message Attaching
QString attachId() const;
- void setAttachId(const QString&);
+ void setAttachId(const QString &);
// XEP-0369: Mediated Information eXchange (MIX)
QString mixUserJid() const;
- void setMixUserJid(const QString&);
+ void setMixUserJid(const QString &);
QString mixUserNick() const;
- void setMixUserNick(const QString&);
+ void setMixUserNick(const QString &);
// XEP-0380: Explicit Message Encryption
EncryptionMethod encryptionMethod() const;
void setEncryptionMethod(EncryptionMethod);
QString encryptionMethodNs() const;
- void setEncryptionMethodNs(const QString&);
+ void setEncryptionMethodNs(const QString &);
QString encryptionName() const;
- void setEncryptionName(const QString&);
+ void setEncryptionName(const QString &);
// XEP-0382: Spoiler messages
bool isSpoiler() const;
void setIsSpoiler(bool);
QString spoilerHint() const;
- void setSpoilerHint(const QString&);
+ void setSpoilerHint(const QString &);
/// \cond
void parse(const QDomElement &element) override;
@@ -217,4 +217,4 @@ private:
QSharedDataPointer<QXmppMessagePrivate> d;
};
-#endif // QXMPPMESSAGE_H
+#endif // QXMPPMESSAGE_H