[Kde-pim] [PATCH] Akonadi::ItemSync customization

Dmitry Ivanov vonami at gmail.com
Fri Jun 27 19:32:54 BST 2008


On Friday 27 June 2008 16:00:56 Dmitry Ivanov wrote:
> Hello,
>
> The attached patch allows to customize the behaviour of  Akonadi::ItemSync:
>
> 1. Allows subsclasses to "plug in" their own sync algorithms by
> reimplementing virtual bool updateItem( const Item &local, Item &remote )
> const
>
> 2. Allows to specify how much data ItemSync should fetch from the cache
> when building a list of all items for the collection being synchronized, by
> calling
>    fetchScope() or setFetchScope().
>
> The default behaviour of ItemSync changes since its now fetches the full
> payload from the cache by default (it was disabled before due to a possible
> deadlock).
>
> Since the patch breaks BC and my work on the SoC project is partially
> blocked, I'd like to get this patch in ASAP. (note: no apidocs yet).

Small fix: I will remove constness of updateItem() as I can imagine scenarios 
where the decision for the current items depends on data collected from 
previous items.

Dmitry

-- 
A: Because it destroys the flow of the conversation
Q: Why is top-posting bad?
_______________________________________________
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