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


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

The following commit has been merged in the master branch:
commit f25f7a9fd8046632e4184d8b52acd339e17adae2
Author: George Goldberg <grundleborg at googlemail.com>
Date:   Sun Jun 21 10:18:42 2009 +0000

    First try at adding the nco:contact to nepomuk for each new telepathy account.
    
    svn path=/trunk/playground/network/telepathy-integration-daemon/; revision=984642
---
 kpeople/nepomuk-feeder/telepathyaccount.cpp | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/kpeople/nepomuk-feeder/telepathyaccount.cpp b/kpeople/nepomuk-feeder/telepathyaccount.cpp
index b7c1781..f529bc1 100644
--- a/kpeople/nepomuk-feeder/telepathyaccount.cpp
+++ b/kpeople/nepomuk-feeder/telepathyaccount.cpp
@@ -20,11 +20,16 @@
 
 #include "telepathyaccount.h"
 
+#include "telepathyaccountmonitor.h"
+
+// Ontology uri's
 #include "nco.h"
 #include "pimo.h"
-#include "telepathyaccountmonitor.h"
 #include "tpaccount.h"
 
+// Full Ontologies
+#include "personcontact.h"
+
 #include <kdebug.h>
 
 #include <Nepomuk/Thing>
@@ -52,6 +57,7 @@ TelepathyAccount::TelepathyAccount(const QString &path, TelepathyAccountMonitor
 
 TelepathyAccount::~TelepathyAccount()
 {
+
 }
 
 void TelepathyAccount::onAccountReady(Tp::PendingOperation *op)
@@ -85,13 +91,15 @@ void TelepathyAccount::doNepomukSetup()
                 // we have a tpaccount property. See if it is the same as the path of this account.
                 if (resource.property(Nepomuk::Vocabulary::TPACCOUNT::identifier()).toString() == m_path) {
                     // Nepomuk has this account already. Don't need to do anything.
-                    // TODO: We could store some metadata of this account?
-                } else {
-                    // Nepomuk doesn't yet have this account. Add it.
-                    // TODO: Implement me!
+                    return;
                 }
             }
         }
     }
+
+    kDebug() << "Telepathy Account" << m_path << "does not exist is nepomuk yet. Add it.";
+    // Nepomuk doesn't yet have this account. Add it.
+    Nepomuk::PersonContact contact(m_path);
+    contact.setLabel(m_account->nickname());
 }
 

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list