Skip to content

Commit

Permalink
Bind och call log with phonebook
Browse files Browse the repository at this point in the history
After outgoing call is done to number from phonebook then outgoing call
history will be shown with data about caller - downloaded in vCard
structure.
  • Loading branch information
michalskir authored and Johan Hedberg committed Sep 28, 2010
1 parent 6898ad4 commit a8337ec
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion plugins/phonebook-tracker.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,44 @@
"nco:title(?a) nco:phoneNumber(?t) nmo:receivedDate(?call) " \
"nmo:isSent(?call) nmo:isAnswered(?call) ?x " \
"WHERE { " \
"{ " \
"?x a nco:Contact . " \
"?x nco:hasPhoneNumber ?h . " \
"?call a nmo:Call ; " \
"nmo:to ?x ; " \
"nmo:isSent true . " \
"?c a nco:PersonContact . " \
"?c nco:hasPhoneNumber ?h . " \
"OPTIONAL { ?c nco:hasEmailAddress ?e . } " \
"OPTIONAL { ?c nco:hasPostalAddress ?p . } " \
"OPTIONAL { " \
"?c nco:hasAffiliation ?a . " \
"OPTIONAL { ?a nco:hasEmailAddress ?ew . } " \
"OPTIONAL { ?a nco:hasPostalAddress ?pw . } " \
"OPTIONAL { ?a nco:org ?o . } " \
"} " \
"} UNION { " \
"?x a nco:Contact . " \
"?x nco:hasPhoneNumber ?w . " \
"?call a nmo:Call ; " \
"nmo:to ?x ; " \
"nmo:isSent true . " \
"?c a nco:PersonContact . " \
"OPTIONAL { ?c nco:hasEmailAddress ?e . } " \
"OPTIONAL { ?c nco:hasPostalAddress ?p . } " \
"?c nco:hasAffiliation ?a . " \
"?a nco:hasPhoneNumber ?w . " \
"OPTIONAL { ?a nco:hasEmailAddress ?ew . } " \
"OPTIONAL { ?a nco:hasPostalAddress ?pw . } " \
"OPTIONAL { ?a nco:org ?o . } " \
"} UNION { " \
"?x a nco:Contact . " \
"?x nco:hasPhoneNumber ?t . " \
"?call a nmo:Call ; " \
"nmo:to ?x ; " \
"nmo:isSent true . " \
"} ORDER BY DESC(nmo:sentDate(?call))"
"} " \
"} ORDER BY DESC(nmo:sentDate(?call)) "

#define OUTGOING_CALLS_LIST \
"SELECT ?c nco:nameFamily(?c) " \
Expand Down

0 comments on commit a8337ec

Please sign in to comment.