Support collection retrieval based on hierarchical RIDs.
svn path=/trunk/KDE/kdepimlibs/; revision=1015133