[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:07:10 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=e40fcf0
The following commit has been merged in the master branch:
commit e40fcf0e41ddcb39f5d3a27c430140883cd83665
Author: George Goldberg <grundleborg at googlemail.com>
Date: Sun Mar 28 13:52:31 2010 +0000
When TelepathyContacts are destroyed, set them to Offline in Nepomuk.
svn path=/trunk/playground/network/telepathy-integration-daemon/; revision=1108285
---
kpeople/nepomuk-feeder/telepathycontact.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/kpeople/nepomuk-feeder/telepathycontact.cpp b/kpeople/nepomuk-feeder/telepathycontact.cpp
index 6e4a2e6..8c9d16e 100644
--- a/kpeople/nepomuk-feeder/telepathycontact.cpp
+++ b/kpeople/nepomuk-feeder/telepathycontact.cpp
@@ -82,6 +82,13 @@ TelepathyContact::~TelepathyContact()
{
kDebug();
+ // If the IMAccount resource already exsits, set it to offline presence when we are destroyed.
+ if (!m_contactIMAccountResource.uri().isEmpty()) {
+ m_contactIMAccountResource.setProperty(Nepomuk::Vocabulary::NCO::imStatus(), "offline");
+ m_contactIMAccountResource.setProperty(Nepomuk::Vocabulary::NCO::imStatusMessage(), "");
+ m_contactIMAccountResource.setProperty(Nepomuk::Vocabulary::Telepathy::statusType(), 0);
+ }
+
// Signal this contact is destroyed so it can be removed from the Hash.
Q_EMIT contactDestroyed(m_contact);
}
--
ktp-common-internals packaging
More information about the pkg-kde-commits
mailing list