| 3e52d5a7 |
obexd: Fix possible crash when obex_get_name returns NULL
Make use of g_strcmp0 which is a NULL-safe string comparison function |
Luiz Augusto Von Dentz |
13 years ago |
1 file, +1, -1 |
| d9cff588 |
obexd: Fix crash when receiving small objects
When the received object fits in only one packet, when we reach
obex_read_stream we may not have the driver. We must wait the driver
to be set before writing. |
Vinicius Costa Gomes |
13 years ago |
1 file, +2, -1 |
| 52edd787 |
obexd: Add support for the ADR filter
This includes retrieving information from Tracker about the
contact's address. |
Vinicius Costa Gomes |
13 years ago |
3 files, +66, -15 |
| 6b7ddd9d |
obexd: Fix the email attribute was badly formatted
It was using the nco:EmailAddress uri instead of the proper
email address. |
Vinicius Costa Gomes |
13 years ago |
1 file, +13, -6 |
| 7c6e016d |
obexd: Fix the order of the calls handles
On the mch, ich and och folders the handles must be ordered by the
received date or the sent date of each call. |
Vinicius Costa Gomes |
13 years ago |
1 file, +6, -6 |
| 387deddc |
obexd: Add support for multiple telephone numbers |
Vinicius Costa Gomes |
13 years ago |
3 files, +128, -41 |
| 13a97df8 |
obexd: Fix the queries taking too long
Tracker was taking a long time to process the queries. Use functions,
instead of OPTIONAL arguments, to make Tracker's life easier and
speed this processing time. |
Vinicius Costa Gomes |
13 years ago |
1 file, +89, -153 |
| 8742923b |
obexd: Fix sending the Not Found response asynchronously
When we only discover that the requested resource can't be found
in the async callback, we set the error using the
obex_object_set_io_flags method, the Not Found case was not being
handled |
Vinicius Costa Gomes |
13 years ago |
3 files, +11, -2 |
| 0dda092b |
obexd: Fix not resetting buffered data count when resetting the session |
Luiz Augusto Von Dentz |
13 years ago |
1 file, +1, -0 |
| 8c2cfd34 |
obexd: Returns OBEX service unavailable when ebook async get contacts fails
PullvCardListing shall return OBEX error service unavailable when
ebook can process a valid contact query. Given the available error
codes for PBAP, service unvailable is the code more suitable for
this scenario. |
Claudio Takahasi |
13 years ago |
1 file, +5, -2 |
| 6b6e1c15 |
obexd: Add folder name verification for PullvCardListing on ebook backend
All contacts of evolution back-end will be mapped into /telecom/pb
folder. PullvCardListing of other folders shall return OBEX Not
Found error. |
Claudio Takahasi |
13 years ago |
1 file, +3, -0 |
| aa617cd1 |
obexd: Fix wrong response code for dummy PullvCardListing
When the folder doesn't exist OBEX Not Found error shall be returned
instead of Bad Request. |
Claudio Takahasi |
13 years ago |
1 file, +1, -1 |
| 3052f587 |
obexd: Fix not initialized return value for dummy SetPhoneBook
For success cases the variable used to store the return value is
not initialized. |
Claudio Takahasi |
13 years ago |
1 file, +1, -1 |
| e86c39c0 |
obexd: Add some debug statements to PBAP |
Vinicius Costa Gomes |
13 years ago |
2 files, +44, -0 |
| eba0b1b4 |
obexd: Fix inverting the list with wrong search attribute
When trying to use a search attribute that the contacts don't have we
should fallback to using the default sorting algorithm (Indexed). |
Vinicius Costa Gomes |
13 years ago |
1 file, +8, -11 |
| 3a6be99b |
obexd: Fix sending the wrong response code
When the backend implementation is not able to find the vCard we must
return the -ENOENT error, which is translated to the Not Found OBEX
response. |
Vinicius Costa Gomes |
13 years ago |
3 files, +7, -7 |
| df9dd740 |
obexd: Coding style fixes |
Vinicius Costa Gomes |
13 years ago |
27 files, +691, -672 |
| 1cce8a4c |
obexd: Fix owner vCard not having the first handle
The spec mandates that the owner vCard must have handle 0.vcf. |
Vinicius Costa Gomes |
13 years ago |
1 file, +6, -1 |
| e85450cc |
obexd: Fix PullBusinessCard ignoring the file argument
These five commits should solve the issue reported by Daniel Abraham
on the mailing list. |
Vinicius Costa Gomes |
13 years ago |
1 file, +15, -1 |
| 15820b3a |
obexd: Fix not passing filename for pull requests
Now we can store the received response somewhere. |
Vinicius Costa Gomes |
13 years ago |
1 file, +1, -1 |
| 6b28669b |
obexd: Fix misuse of the listing callback
The listing callback was being used for anything that included a type
header. |
Vinicius Costa Gomes |
13 years ago |
1 file, +6, -3 |
| ff418f11 |
obexd: Return Bad Request when search value is empty on PullvCardListing
No matter the search attribute, search value can't be an empty
string. OBEX error bad request is returned for this scenario. |
Claudio Takahasi |
13 years ago |
1 file, +3, -0 |
| 9f1ed843 |
obexd: Fix glib type system initialization
Type system initialization is required to create Evolution
addressbook client object. |
Claudio Takahasi |
13 years ago |
1 file, +2, -0 |
| 33256b79 |
obexd: create the cache when doing a PullvCardEntry
This covers the case when a PullvCardEntry is done without doing a listing
before. |
Vinicius Costa Gomes |
13 years ago |
1 file, +27, -0 |
| a6d9a0ea |
obexd: export contacts even if they lack information
Sometimes Tracker has contacts missing information, like fullname,
given name or family name, we should still consider those contacts. The
only required information is phone number. |
Vinicius Costa Gomes |
13 years ago |
1 file, +35, -34 |
| 1a6def17 |
obexd: Fix sending the reply for pull requests too early
This reply was being sent too early and it was being sent on the complete
callback anyway. This was causing the sender to exit the bus too soon.
Which was causing the daemon to close the connection. |
Vinicius Costa Gomes |
13 years ago |
1 file, +0, -1 |
| aceac192 |
obexd: Add support for vCard 2.1 to the Tracker backend |
Vinicius Costa Gomes |
13 years ago |
3 files, +17, -7 |
| 38c2f10f |
obexd: Fix regression on opp put when name is not set
OBEX specification 1.3 says:
"Though the Name header is very useful for operations like file transfer,
it is optional"
To fix this the drivers .chkput can now return -EBADR which will be
translated to bad request, so in case of opp if the auto answer is not
active it will let the agent to set a proper name to the object. |
Luiz Augusto von Dentz |
13 years ago |
3 files, +11, -6 |
| ce6f6814 |
obexd: Add ListStartOffSet and MaxListCount support on PBAP dummy back-end
PullPhoneBook and PullvCardListing shall compute the offset from the
first phonebook object and return only the amount of entries requested. |
Claudio Takahasi |
13 years ago |
1 file, +40, -6 |
| 07e687ad |
obexd: Add sort function for PullvCardListing
Listing object can be sorted using three approaches: alphabetical,
Indexed or Phonetical. When Order parameter is not given, the default
order is Indexed. |
Claudio Takahasi |
13 years ago |
1 file, +100, -30 |
| d6db9d15 |
obexd: Fix memory leak when adding entries to the cache |
Vinicius Costa Gomes |
13 years ago |
1 file, +2, -0 |
| 3a55cafd |
obexd: use nmo:isSent and nmo:isAnswered properties
Instead of comparing nmo:to and nmo:from with the default owner contact,
check whether the message was sent. nmo:isAnswered is used to tell if
that call was missed. |
Vinicius Costa Gomes |
13 years ago |
1 file, +14, -14 |
| 7f735fbd |
obexd: Add the concept of phonebook_contact
This way it is easy to deal with many contact fields. |
Vinicius Costa Gomes |
13 years ago |
3 files, +66, -28 |
| c8e98708 |
obexd: Add support to all fields required by vCard 3.0
This adds support to dealing with FULLNAME (FN) and the filter
application parameter. |
Vinicius Costa Gomes |
13 years ago |
3 files, +78, -20 |
| 0756125d |
obexd: Fix stream buffering
Stream must be buffered in order to deal with -EAGAIN when calling .write
on mimetype driver, otherwise the data is lost and async io won't work
because there is nothing to be read from the stream while the request is
suspended. |
Luiz Augusto Von Dentz |
13 years ago |
2 files, +21, -30 |
| ab5c9548 |
obexd: Interpret EACCES as EPERM
There are some cases where EACCES is generate, such as for remove/unlink. |
Luiz Augusto Von Dentz |
13 years ago |
1 file, +1, -0 |
| 2861fd5d |
obexd: Add sort function for vcards files in the file system
PBAP dummy back-end needs a sorting function based on the vcard
file name to address later offset and maxlist count. scandir function
can't be used because it requires versionsort function which is a
GNU extension. |
Claudio Takahasi |
13 years ago |
1 file, +31, -2 |
| 18432567 |
obexd: Add support to multiple folders to tracker backend
This adds support to ich, och, mch and cch folders to the tracker
backend. |
Vinicius Costa Gomes |
13 years ago |
1 file, +252, -25 |
| 77f1e5fd |
obexd: Fix PhoneBookSize request for PullPhoneBook function
When MaxListCount is zero, PCE wants to know the number of used indexes
in the phonebook of interest. All other application parameters shall be
ignored. |
Claudio Takahasi |
13 years ago |
1 file, +10, -0 |
| 98359ac5 |
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. |
Vinicius Costa Gomes |
13 years ago |
3 files, +633, -0 |
| f34bc5d9 |
obexd: Add PBAP PullPhoneBook function for dummy back-end
"Filter" paramenter is not been treated. Also, this implementation does
not take into account the use of MaxListCount and ListStartOffSet. |
Alvaro Silva |
13 years ago |
1 file, +168, -25 |
| 9bd2e41a |
obexd: Add support to more application parameters
Adds support to MaxListCount and ListStartOffset to the tracker backend. |
Vinicius Costa Gomes |
13 years ago |
1 file, +16, -2 |
| 8d5b21b9 |
obexd: Add current folder argument for phonebook_get_entry function calls
Current folder is necessary to address multiple sessions. For some
back-ends this argument is irrelevant since the folder doesn't exist
in the file system or it is not applicable. For others, it is necessary
to define from which folder/SIM to fetch contacts. |
Claudio Takahasi |
13 years ago |
4 files, +45, -47 |
| 01cd007c |
obexd: Implement contacts cache for dummy back-end
Initial support for contacts cache. It doesn't implement all required
features. Values(name and tel) are hard-coded since it is necessary to
use a library to parse the vcards content. |
Claudio Takahasi |
13 years ago |
4 files, +99, -15 |
| c5cafe4a |
obexd: Add PBAP PullvCardEntry function for dummy back-end
Given vcard file is read from the current folder. This patch returns
all vCard content, "Filter" parameter is not being addressed yet. |
Claudio Takahasi |
13 years ago |
1 file, +93, -9 |
| 5929aea1 |
obexd: Add SetPhoneBook function for dummy back-end
Current PBAP dummy implementation has a fixed root folder:
$HOME/phonebook. It doesn't follow the fixed PBAP virtual folder
architecture, it only checks if the folder exists in the file system. |
Claudio Takahasi |
13 years ago |
1 file, +96, -2 |
| ad610c83 |
obexd: Change PBAP set folder function
PBAP core should not build the new folder name since the flags
in the non header data and the name of the child folder should
be analyzed by the backend only. |
Claudio Takahasi |
13 years ago |
4 files, +69, -44 |
| 217169ef |
obexd: Remove unused functions and constants |
Claudio Takahasi |
13 years ago |
2 files, +2, -25 |
| e4446f4a |
obexd: Implement SearchValue and SearchAttribute handling for PullvCardListing
Only vCards matching the SearchValue for the attribute as indicated in
the SearchAttribute shall be contained in the listing object. Matching
routine is implementation specific. This implementation checks if the
field CONTAINS the search value ignoring case sensitive. |
Claudio Takahasi |
13 years ago |
1 file, +77, -13 |
| 581b305d |
obexd: Changes the interface between the PBAP core and backends
Removes phonebook vcard list operation in the backends. Adds initial
functions to build the contacts cache. Adds phonebook pull vcard
for ebook integrated with the cache information. |
Claudio Takahasi |
13 years ago |
7 files, +336, -210 |