[Kde-pim] Re: Review Request: allow the client to fetch an item with a RID when he sets a collection
Kevin Krammer
kevin.krammer at gmx.at
Fri Dec 31 14:47:55 GMT 2010
On Friday, 2010-12-31, Kevin Ottens wrote:
> Hello,
>
> Adding Mario in CC, I'm not sure he's subscribed on this list.
>
> On Friday 31 December 2010 14:28:49 Kevin Krammer wrote:
> > On Friday, 2010-12-31, Mario Bensi wrote:
> > > Hello,
> > >
> > > actually the client can't fetch an item by the remoteId.
> > > This patch allow the fetch of item by the client if the collection is
> > > setted on job.
> >
> > Not discussing the patch itself so just on the list: could you give us a
> > bit of context what you would need that for?
>
> The basic idea is that in Zanshin we're displaying a tree of todo items
> (among other things) and this tree is based on the uids of the different
> todos. Now for some operations it'd be just handier to be able to request
> those items based on their uid directly... and it happens that in the iCal
> resource the remote id used is also the uid, hence this patch.
>
> > The "remote" values (identifier and revision) are considered to be only
> > of interest to the resource in charge of the collection or item so maybe
> > there is a different way of doing whatever you are trying to do with
> > that.
>
> Indeed, and so it means this patch is not interesting to the Zanshin case
> after all, since it's not always true that uid == remote id. For instance
> it's not the case for the Kolab resource. I think we'll have to end up
> listing ourselves and filtering on the client side...
You might want to have a look at ContactSearchJob. It is a specialized form of
the ItemSearchJob and allows retrieval of contacts based on their UID.
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20101231/a44f3900/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