aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppMessage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/QXmppMessage.cpp')
-rw-r--r--src/base/QXmppMessage.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/base/QXmppMessage.cpp b/src/base/QXmppMessage.cpp
index 2f0fb5fe..3062b227 100644
--- a/src/base/QXmppMessage.cpp
+++ b/src/base/QXmppMessage.cpp
@@ -106,6 +106,7 @@ public:
// XEP-0280: Message Carbons
bool privatemsg;
+ bool isCarbonForwarded;
// XEP-0308: Last Message Correction
QString replaceId;
@@ -159,6 +160,7 @@ QXmppMessagePrivate::QXmppMessagePrivate()
receiptRequested(false),
attentionRequested(false),
privatemsg(false),
+ isCarbonForwarded(false),
markable(false),
marker(QXmppMessage::NoMarker),
hints(0),
@@ -661,6 +663,28 @@ void QXmppMessage::setPrivate(const bool priv)
}
///
+/// Returns whether this message has been forwarded using carbons.
+///
+/// \since QXmpp 1.5
+///
+bool QXmppMessage::isCarbonForwarded() const
+{
+ return d->isCarbonForwarded;
+}
+
+///
+/// Sets whether this message has been forwarded using carbons.
+///
+/// Setting this to true has no effect, this is purely informational.
+///
+/// \since QXmpp 1.5
+///
+void QXmppMessage::setCarbonForwarded(bool forwarded)
+{
+ d->isCarbonForwarded = forwarded;
+}
+
+///
/// Returns the message id to replace with this message as used in \xep{0308}:
/// Last Message Correction. If the returned string is empty, this message is
/// not replacing another.