From 7ed412682361b89e734d04c9f9ba56f4420e81f3 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Mon, 7 Jun 2010 15:04:54 -0300 Subject: [PATCH] obexd: Fix broken assumption about the contacts We were assuming that all contacts were PersonContacts, they could be just plain nco:Contacts. --- obexd/plugins/phonebook-tracker.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/obexd/plugins/phonebook-tracker.c b/obexd/plugins/phonebook-tracker.c index e2c982c91..4c41c9571 100644 --- a/obexd/plugins/phonebook-tracker.c +++ b/obexd/plugins/phonebook-tracker.c @@ -84,7 +84,7 @@ "nmo:from ?c ; " \ "nmo:isSent false ; " \ "nmo:isAnswered false ." \ - "?c a nco:PersonContact ; " \ + "?c a nco:Contact ; " \ "nco:hasPhoneNumber ?h . " \ "OPTIONAL { " \ "?c nco:hasAffiliation ?a . " \ @@ -104,7 +104,7 @@ "nmo:from ?c ; " \ "nmo:isSent false ; " \ "nmo:isAnswered false ." \ - "?c a nco:PersonContact ; " \ + "?c a nco:Contact ; " \ "nco:hasPhoneNumber ?h . " \ "} ORDER BY DESC(nmo:receivedDate(?call))" @@ -120,7 +120,7 @@ "?call a nmo:Call ; " \ "nmo:from ?c ; " \ "nmo:isSent false . " \ - "?c a nco:PersonContact ; " \ + "?c a nco:Contact ; " \ "nco:hasPhoneNumber ?h . " \ "OPTIONAL { " \ "?c nco:hasAffiliation ?a . " \ @@ -155,7 +155,7 @@ "?call a nmo:Call ; " \ "nmo:to ?c ; " \ "nmo:isSent true . " \ - "?c a nco:PersonContact ; " \ + "?c a nco:Contact ; " \ "nco:hasPhoneNumber ?h . " \ "OPTIONAL { " \ "?c nco:hasAffiliation ?a . " \ @@ -174,7 +174,7 @@ "?call a nmo:Call ; " \ "nmo:to ?c ; " \ "nmo:isSent true . " \ - "?c a nco:PersonContact ; " \ + "?c a nco:Contact ; " \ "nco:hasPhoneNumber ?h . " \ "} ORDER BY DESC(nmo:sentDate(?call))" @@ -191,7 +191,7 @@ "?call a nmo:Call ; " \ "nmo:to ?c ; " \ "nmo:isSent true . " \ - "?c a nco:PersonContact ; " \ + "?c a nco:Contact ; " \ "nco:hasPhoneNumber ?h . " \ "OPTIONAL { " \ "?c nco:hasAffiliation ?a . " \ @@ -203,7 +203,7 @@ "?call a nmo:Call ; " \ "nmo:from ?c ; " \ "nmo:isSent false . " \ - "?c a nco:PersonContact ; " \ + "?c a nco:Contact ; " \ "nco:hasPhoneNumber ?h . " \ "OPTIONAL { " \ "?c nco:hasAffiliation ?a . " \ @@ -223,7 +223,7 @@ "?call a nmo:Call ; " \ "nmo:to ?c ; " \ "nmo:isSent true . " \ - "?c a nco:PersonContact ; " \ + "?c a nco:Contact ; " \ "nco:hasPhoneNumber ?h . " \ "} UNION { " \ "?call a nmo:Call ; " \ @@ -243,7 +243,7 @@ "nco:streetAddress(?p) nco:locality(?p) nco:region(?p) " \ "nco:postalcode(?p) nco:country(?p) " \ "WHERE { " \ - "?c a nco:PersonContact ; " \ + "?c a nco:Contact ; " \ "nco:contactUID <%s> ; " \ "nco:hasPhoneNumber ?h . " \ "OPTIONAL { " \ -- 2.47.3