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


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

The following commit has been merged in the master branch:
commit 01713e7bd06da490c168aeee979131d4791edef6
Author: George Goldberg <grundleborg at googlemail.com>
Date:   Thu Feb 11 22:01:07 2010 +0000

    Add the presence to Nepomuk when it changes.
    
    svn path=/trunk/playground/network/telepathy-integration-daemon/; revision=1088910
---
 kpeople/nepomuk-feeder/telepathyaccount.cpp | 12 ++++++++++--
 kpeople/nepomuk-feeder/telepathyaccount.h   |  1 +
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/kpeople/nepomuk-feeder/telepathyaccount.cpp b/kpeople/nepomuk-feeder/telepathyaccount.cpp
index 80ed7b9..730f317 100644
--- a/kpeople/nepomuk-feeder/telepathyaccount.cpp
+++ b/kpeople/nepomuk-feeder/telepathyaccount.cpp
@@ -63,12 +63,10 @@ TelepathyAccount::TelepathyAccount(const QString &path, TelepathyAccountMonitor
     connect(m_account.data(),
             SIGNAL(nicknameChanged(const QString &)),
             SLOT(onNicknameChanged(const QString &)));
-/*
     connect(m_account.data(),
             SIGNAL(currentPresenceChanged(Tp::SimplePresence)),
             SLOT(onCurrentPresenceChanged(Tp::SimplePresence)));
             // ...... and any other properties we want to sync...
-*/
 }
 
 TelepathyAccount::~TelepathyAccount()
@@ -207,6 +205,16 @@ void TelepathyAccount::onNicknameChanged(const QString& nickname)
                                   nickname);
 }
 
+void TelepathyAccount::onCurrentPresenceChanged(Tp::SimplePresence presence)
+{
+    m_accountResource.setProperty(Nepomuk::Vocabulary::NCO::imStatus(),
+                                  presence.status);
+    m_accountResource.setProperty(Nepomuk::Vocabulary::NCO::imStatusMessage(),
+                                  presence.statusMessage);
+    // TODO: Add a Telepathy-specific property (in telepathy.trig) to represent the presence.type.
+}
+
+
 
 
 #include "telepathyaccount.moc"
diff --git a/kpeople/nepomuk-feeder/telepathyaccount.h b/kpeople/nepomuk-feeder/telepathyaccount.h
index b1855fc..9d898e2 100644
--- a/kpeople/nepomuk-feeder/telepathyaccount.h
+++ b/kpeople/nepomuk-feeder/telepathyaccount.h
@@ -57,6 +57,7 @@ private Q_SLOTS:
     void onHaveConnectionChanged(bool haveConnection);
     void onConnectionReady(Tp::PendingOperation *op);
     void onNicknameChanged(const QString &nickname);
+    void onCurrentPresenceChanged(Tp::SimplePresence presence);
 
 private:
     Q_DISABLE_COPY(TelepathyAccount);

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list