[Kde-pim] Question: Akonadi::TransactionSequence

Volker Krause vkrause at kde.org
Thu Jan 31 10:17:10 GMT 2008


On Tuesday 29 January 2008 22:10:34 Kevin Krammer wrote:
> On Tuesday 29 January 2008, Volker Krause wrote:
> > On Friday 25 January 2008 13:40:08 Kevin Krammer wrote:
> > > While examining code in libakonadi, I found that ItemSync already
> > > implements this use case.
> > > I modified my local copy so it gets exported and so far everything
> > > worked fine.
> > >
> > > Any specific reason why it is marked @internal?
> >
> > It's an implementation detail of ResourceBase, so far I didn't see
> > another use case for it. However, since this has changed we of course can
> > export it.
>
> Ah, ok.
> For now I am using a copy in the project's source dir.
> Maybe it is good to keep it internal, since this save/load semantics (keep
> application local copies) should not be encouraged for new client code
> using Akonadi.
>
> > But I'm not sure if the current version actually works for your
> > application since it relies on remote ids being present, which is ok for
> > (Akonadi) resources, but is not the case for new items created by a
> > client application. So, we might need to extend it to support syncing
> > based on uids as well.
>
> It works well in my test setup, where I use the vcard resource as the input
> and since it uses the Addressee::uid() as its remote ID I do the same when
> appending an item.

This happens to work with resources where the remote id just needs to be 
unique, this will fail for resources where the remote id is assigned by the 
backend based on it's internal storage (eg. IMAP/Kolab).

> I admit that it is a hack and I hope we can have a look at these compat
> resource implementations in Osnabrück :)

Yep, let's do that.

regards
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20080131/07d9dd71/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