[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9

Maximiliano Curia maxy at moszumanska.debian.org
Mon May 9 09:04:59 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=fe9d3ef

The following commit has been merged in the master branch:
commit fe9d3ef7f116fa88d3beebc59bb22134daa108ad
Author: Lasath Fernando <kde at lasath.org>
Date:   Fri Feb 3 23:33:33 2012 +1100

    Add accessors for the common properties of Tp::Message in Message
---
 KTp/message.cpp | 15 +++++++++++++++
 KTp/message.h   |  4 ++++
 2 files changed, 19 insertions(+)

diff --git a/KTp/message.cpp b/KTp/message.cpp
index 72a04a7..ae947d2 100644
--- a/KTp/message.cpp
+++ b/KTp/message.cpp
@@ -59,3 +59,18 @@ void Message::setProperty(const char *name, const QVariant& value)
 {
     m_properties[QLatin1String(name)] = value;
 }
+
+QDateTime Message::time() const
+{
+    return m_originalMessage.sent();
+}
+
+QString Message::token() const
+{
+    return m_originalMessage.messageToken();
+}
+
+Tp::ChannelTextMessageType Message::type() const
+{
+    return m_originalMessage.messageType();
+}
diff --git a/KTp/message.h b/KTp/message.h
index 1f0bc35..cccf150 100644
--- a/KTp/message.h
+++ b/KTp/message.h
@@ -36,6 +36,10 @@ public:
     QVariant property(const char *name) const;
     void setProperty(const char *name, const QVariant &value);
 
+    QDateTime time() const;
+    QString   token() const;
+    Tp::ChannelTextMessageType type() const;
+
 private:
     Tp::Message m_originalMessage;
     QVariantMap m_properties;

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list