[Kde-pim] Synchronization support for Akonadi

Tobias Koenig tokoe at kde.org
Tue Oct 20 08:13:18 BST 2009


Hej,

during the weekend Sascha told about his work on the SyncML
support for Akonadi and mentioned that an important property
is missing in Akonadi to make implementation of synchronization
software easier. Synchronization software has to be aware of
changes in the data storage since the last synchronization,
so if Akonadi would provide methods like

  Akonadi::Item::Id::List newItemsSince( const QDateTime& ) const;
  Akonadi::Item::Id::List changedItemsSince( const QDateTime& ) const;
  Akonadi::Item::Id::List deletedItemsSince( const QDateTime& ) const;

it would makes implementors life much easier.
The bad news are that the Akonadi server doesn't support the tracking of
these changes itself, the database only stores the last modification date
of an item. However the good news are, that there is no need that
Akonadi keeps track itself. The tracking of changes and keeping a log
of them can be done by a separated agent application that is always
started together with the server. So this SLA (Synchronization Log Agent)
can on the one side listen to all changes in the storage via Akonadi::Monitor
and on the other side it can provide a DBus interface to request informations
like the above ones. The SLA can store the item ids of deleted items in
its log file and could provide profiles, so that different synchronization
applications can have its own synchronization history (e.g. app A synchronized
last today and app B on wednesday last week). Furthermore it can optimize
changes (e.g. removing a 'new item' followed by a 'delete item' event with the same id) to reduce the amount of data that have to be synchronized.

What do you think about it?
Sascha, what additional functionality would you need?

Ciao,
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20091020/3fc73cef/attachment.sig>
-------------- next part --------------
_______________________________________________
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