Summary: | Akonadi Google resource does not synchronize custom (date) fields | ||
---|---|---|---|
Product: | [Frameworks and Libraries] libkgapi | Reporter: | Karol Slanina <karol.slanina> |
Component: | contacts | Assignee: | Daniel Vrátil <dvratil> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 0.4.2 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/akonadi-google/184a3eddcbfbc9610cdae586fbd028bd71f00326 | Version Fixed In: | 0.4.5 |
Sentry Crash Report: |
Description
Karol Slanina
2013-01-16 00:43:14 UTC
The vCard standard (RFC 6350) specifies only how to store birthday, nothing about namedays. We could store it as a KDE-specific extension to vCard (X-KDE-NameDay or something), but in order for this to make any sense, it should be supported by KABC::Addressee and by KAddressbook. Addressbook and KABC::Addressee do support such custom fields (at least in local vcard-based collections such as Personal Contacts or old KDE Address Book). You can add a custom date field, e.g. Nameday in the 'Custom Fields' tab. Kaddressbook asks for the name, key and value of the given field. By default some random-generated UUID is provided as the key, but it can be changed to be the same as the name. In the vcard file, the custom field is stored as follows: "X-KADDRESSBOOK-<key>:2000-05-20", e.g. "X-KADDRESSBOOK-Nameday:2000-05-20" KABC::Addressee supports such fields, you can get them by calling kabcAddressee.custom("KADDRESSBOOK", key); and they are also provided in the stringlist provided by kabcAddressee.customs(). By the way, in a similar way also anniversaries are supported. As a custom field key, "X-Anniversary" is used, both in the vcard file as well as in the kabcAddressee.custom(). This way it works even in the Akonadi Google resource. Git commit 184a3eddcbfbc9610cdae586fbd028bd71f00326 by Dan Vrátil. Committed on 16/01/2013 at 14:04. Pushed by dvratil into branch 'LibKGAPI/0.4'. Display gContact$userDefinedField in KAddressbook FIXED-IN: 0.4.5 FIXED-IN: 0.5 M +5 -2 libkgapi/services/contacts.cpp http://commits.kde.org/akonadi-google/184a3eddcbfbc9610cdae586fbd028bd71f00326 |