[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:21:12 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=8f3e822

The following commit has been merged in the master branch:
commit 8f3e8228492daf166d247a53006e1b673698e246
Author: Lasath Fernando <kde at lasath.org>
Date:   Mon Feb 13 19:27:03 2012 +1100

    Added missing file: channel-delegator.h
---
 plasmoid/declarative-plugin/channel-delegator.h | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/plasmoid/declarative-plugin/channel-delegator.h b/plasmoid/declarative-plugin/channel-delegator.h
new file mode 100644
index 0000000..87e63e4
--- /dev/null
+++ b/plasmoid/declarative-plugin/channel-delegator.h
@@ -0,0 +1,23 @@
+#ifndef CHANNELDELEGATOR_H
+#define CHANNELDELEGATOR_H
+
+#include <TelepathyQt/Account>
+
+//BODGE CLASS to expose dispatcherInterface
+class AccountProxy : public Tp::Account
+{
+public:
+    Tp::Client::ChannelDispatcherInterface* dispatcherInterface() {
+        return Tp::Account::dispatcherInterface();
+    }
+};
+
+//BODGE class to allow delegating channels before I merge into TpQt properly
+class ChannelDelegator {
+public:
+    static void delegateChannel(const Tp::AccountPtr account, const Tp::ChannelPtr channel, QDateTime userActionTime = QDateTime::currentDateTime()) {
+        static_cast<AccountProxy*>(account.data())->dispatcherInterface()->DelegateChannels(Tp::ObjectPathList() << QDBusObjectPath(channel->objectPath()), userActionTime.toTime_t(), QLatin1String("org.freedesktop.Telepathy.Client.KTp.TextUi"));
+    }
+};
+
+#endif // CHANNELDELEGATOR_H

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list