[Kde-pim] Checking a collection's existence using remote ID

Kevin Krammer krammer at kde.org
Sat Jun 16 15:00:11 BST 2012


On Friday, 2012-06-08, David Jarvie wrote:
> What is the best way for a resource to check the existence of a collection,
> given a remote ID (when the collection ID is not known)?

CollectionFetchJob with the remote ID set.
If this is the top level collection, an alternative is to use a collection 
fetch job on the root collection, fetch depth firstlevel and set the resource 
ID on the CollectionFetchJob

> The format of
> remote IDs for single file resources seems to have changed to include
> "file://" for local files, but some older collections use a simple file
> path, so the resource needs to find out which was actually used to create
> the resource.

This sounds more like a bug to me, i.e. why did the format of the remote ID 
change?

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/20120616/fda1f90c/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