[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:06:28 UTC 2016


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

The following commit has been merged in the master branch:
commit 22d249e2c3d45c38f19baf1875172cc416d82d21
Author: Lasath Fernando <kde at lasath.org>
Date:   Tue Feb 26 18:31:55 2013 -0500

    Add method to KTp::Message to retrieve sender
    
    It previously had to be accessed directly via property() and casted
    to a QString.
---
 KTp/message.cpp | 5 +++++
 KTp/message.h   | 2 ++
 2 files changed, 7 insertions(+)

diff --git a/KTp/message.cpp b/KTp/message.cpp
index c87f89b..5db2f25 100644
--- a/KTp/message.cpp
+++ b/KTp/message.cpp
@@ -185,6 +185,11 @@ Tp::ChannelTextMessageType Message::type() const
     return d->messageType;
 }
 
+QString Message::sender() const
+{
+    return property("sender").toString();
+}
+
 int Message::partsSize() const
 {
     return d->parts.size();
diff --git a/KTp/message.h b/KTp/message.h
index 240e498..02098cc 100644
--- a/KTp/message.h
+++ b/KTp/message.h
@@ -133,6 +133,8 @@ class KTP_EXPORT Message
     QString token() const;
     /*! 
eturn the type of the message*/
     Tp::ChannelTextMessageType type() const;
+    /*! 
eturn the alias of the contact who sent this message */
+    QString sender() const;
 
     /*! 
eturn the number of appended parts */
     int partsSize() const;

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list