Commit Graph

19 Commits

Author SHA1 Message Date
Rafal Michalski
a4b6035009 obexd: Refactoring address fields handled in vcard module
This patch introduces phonebook_addr struct for more intuitive
handling address fields from backend. Now address fields are managed
by linked list (wrapped by structure) and it is used for printing vCard
address fields, instead of buffers set (combined with g_strsplit
and snprintf functions).
2012-12-04 22:48:44 +01:00
Radoslaw Jablonski
495db2b8a0 obexd: Add support for multiple URL in PBAP
Application which stores contact data changed way that URL data is
stored. Now it is possible for contact to have more than one URL defined
with different types. Place where these URL are stored has also changed
in db. This fix changes handling for URL in PBAP to make URLs visible in
pull results again.
2012-12-04 22:48:33 +01:00
Radoslaw Jablonski
427d45b239 obexd: Refactor vCard content structures
Structures for holding data about phone numbers, emails and addresses
were practically identical and there was no sense to handle them
differently. Now for saving informations about field content and type
struct "phonebook_field" is used.
2012-12-04 22:48:33 +01:00
Rafal Michalski
8065696454 obexd: Add handling of TITLE contact's field in vCard
After pulling contacts this field wasn't presented in downloaded vCard
structure in spite of that it existed (not empty). Now it shows downloaded
TITLE field (using database query).
2012-12-04 22:48:26 +01:00
Rafal Michalski
f68787fccf obexd: Remove role field from ORG tag
Previously role field was under ORG tag. Now it's single field under
ROLE tag.
2012-12-04 22:48:26 +01:00
Rafal Michalski
49fb62644e obexd: Add handling of UID contact's field in vCard
After pulling contacts this field wasn't presented in downloaded vCard
structure in spite of that it existed (not empty). Now it shows downloaded
UID (using database query).
2012-12-04 22:48:26 +01:00
Rafal Michalski
c20efca494 obexd: Add handling for more than one address in vCard
After pulling contacts only fields (pobox, extended, street, locality,
region, postal, country) of one address were present in downloaded vCard
structure (under ADR tag) in spite of that there can be more adresses
stored on phonebook. To solve this problem extending number of columns and
queries of database was needed especially. Distinguish between two types
of address (HOME and WORK) is supported.
2012-12-04 22:48:26 +01:00
Rafal Michalski
916d09bf04 obexd: Merge address fields into a single field
So far in code all seven address fields (pobox, extended, street,
locality, region, postal, country) was represented separately. In the
vCard structure address is represented by one field so all mentioned
fields can be merged into a single field.
2012-12-04 22:48:26 +01:00
Lukasz Pawlik
82dbd7cb1c obexd: Fix issues with emails category
Previously all emails sent during phonebook pull had the same
category INTERNET. Now email are sent with valid category name
(INTERNET;HOME or INTERNET;WORK)
2012-12-04 22:48:26 +01:00
Rafal Michalski
565c1e1ba7 obexd: Add handling of ORG contact's fields handled in VCARD structure
After pulling contacts these fields weren't present in downloaded
VCARD structure in spite of that these fields existed (not empty).

This patch adds handling of fields grouped under ORG tag.
To solve this problem extending number of columns and queries of database
was needed especially. Of course fields mentioned above were added to
phonebook_contact structure as char * type to save gained data.
2012-12-04 22:48:25 +01:00
Rafal Michalski
6417a2c287 obexd: Add handling of single contact's fields handled in VCARD structure
After pulling contacts these fields weren't present in downloaded
VCARD structure in spite of that these fields existed (not empty).

This patch adds handling of fields: BDAY, NICKNAME, URL, PHOTO
To solve this problem extending number of columns and queries of database
was needed especially. Displaying these fields is done by genaral
functions: vcard_printf_tag, vcard_printf_slash_tag.
Of course fields mentioned above were added to phonebook_contact structure
as char * type to save gained data.
2012-12-04 22:48:25 +01:00
Radoslaw Jablonski
2eb218abb7 obexd: Fix problem with multiple emails in vcard
Previously only one email appeared in generated vcard, even if contact
had defined multiple email addresses in contact data.
Changed vcard struct and phonebook-tracker pull_contacts func to support
multiple emails.
2012-12-04 22:48:25 +01:00
Vinicius Costa Gomes
8c1d1ada1d obexd: Add support for the X-IRMC-CALL-DATETIME field
This field indicates the type of the call and when the call was made.
2012-12-04 22:48:20 +01:00
Vinicius Costa Gomes
52edd787fd obexd: Add support for the ADR filter
This includes retrieving information from Tracker about the
contact's address.
2012-12-04 22:48:17 +01:00
Vinicius Costa Gomes
387deddcbf obexd: Add support for multiple telephone numbers 2012-12-04 22:48:17 +01:00
Vinicius Costa Gomes
aceac1923f obexd: Add support for vCard 2.1 to the Tracker backend 2012-12-04 22:48:16 +01:00
Vinicius Costa Gomes
7f735fbdfd obexd: Add the concept of phonebook_contact
This way it is easy to deal with many contact fields.
2012-12-04 22:48:15 +01:00
Vinicius Costa Gomes
c8e98708ea obexd: Add support to all fields required by vCard 3.0
This adds support to dealing with FULLNAME (FN) and the filter
application parameter.
2012-12-04 22:48:15 +01:00
Vinicius Costa Gomes
98359ac582 obexd: Add the PBAP Tracker backend
This adds support for retrieving contact information from Tracker's
(http://projects.gnome.org/tracker/) data storage. Only the main
phonebook (telecom/pb) is implemented.

The code for dealing with vCards (vcard.c and vcard.h) was stolen from
oFono.
2012-12-04 22:48:15 +01:00