[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=a23d647

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

    Complete implementing checking for whether a telepathy account is in nepomuk yet.
    
    svn path=/trunk/playground/network/telepathy-integration-daemon/; revision=984607
---
 kpeople/nepomuk-feeder/telepathyaccount.cpp | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/kpeople/nepomuk-feeder/telepathyaccount.cpp b/kpeople/nepomuk-feeder/telepathyaccount.cpp
index 6948547..ee07960 100644
--- a/kpeople/nepomuk-feeder/telepathyaccount.cpp
+++ b/kpeople/nepomuk-feeder/telepathyaccount.cpp
@@ -22,8 +22,10 @@
 
 #include "nco.h"
 #include "pimo.h"
+#include "tpaccount.h"
 
 #include <Nepomuk/Thing>
+#include <Nepomuk/Variant>
 
 TelepathyAccount::TelepathyAccount(const QString &path, QObject *parent)
  : QObject(parent),
@@ -54,7 +56,16 @@ void TelepathyAccount::doNepomukSetup()
         // See if this grounding instance is of type nco:contact.
         if (resource.hasType(Nepomuk::Vocabulary::NCO::Contact())) {
             // we have an NCO:Contact. See if it is for this Telepathy Account.
-            // TODO: Implement me!
+            if (resource.hasProperty(Nepomuk::Vocabulary::TPACCOUNT::identifier())) {
+                // 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!
+                }
+            }
         }
     }
 }

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list