[Kde-pim] How to update the akonadi storage format of KABC::ContactGroup?

Christian Mollekopf chrigi_1 at fastmail.fm
Fri May 17 15:51:23 BST 2013


The only solution I could find is making a ContactGroup2, which should replace 
ContactGroup for KDE5, maps onto vcard, uses uid's only for references and is 
supported by the vcard serializer.

I'll then port the kolabproxy to ContactGroup2 as well as all relevant 
applications in kdepim (kaddressbook, addresseeautocompletion, ...), so 
they'll support both ContactGroup and ContactGroup2.

Cheers,
Christian

On Thursday 16 May 2013 23.17:49 Christian Mollekopf wrote:
> Hey,
> 
> I want to replace the serialization format of KABC::ContactGroups, which is
> currently a custom xml format, with vcard, as it is also used for contacts.
> 
> The primary reason as mentioned in the other thread is that I want to switch
> contact references from akonadi item id's to UID's.
> 
> As it seems to be difficult to do that with the current format, it's
> probably going to be cleaner if all contacts are migrated to the new
> format, and in the process it's easy to resolve all akonadi item id's to
> UIDs.
> 
> What I don't understand though is how such a migration would look like.
> 
> I can extend KABC::ContactGroup with the necessary methods while maintaining
> binary compatibility, and I can extend the vcard serializer to support
> KABC::ContactGroups. But how would I migrate i.e. a Kolab Resource to the
> new format, and can I somehow drop support for the old format before KDE5?
> Because otherwise it's going to be a bit of a mess anyways as we have to
> support links by akonadi item id and by UID...
> 
> If we can migrate all uses of KABC::ContactGroup, we can assume afterwards
> that all serialized groups contain UID's as references instead of akonadi
> item id's resulting in clean code.
> 
> Cheers,
> Christian
> _______________________________________________
> KDE PIM mailing list kde-pim at kde.org
> https://mail.kde.org/mailman/listinfo/kde-pim
> KDE PIM home page at http://pim.kde.org/
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list