[Nepomuk] kdelibs/nepomuk to nepomuk-core

laurent Montel montel at kde.org
Sat Jul 7 09:55:35 UTC 2012


Le samedi 7 juillet 2012 03:17:34 Vishesh Handa a écrit :
> On Fri, Jul 6, 2012 at 6:06 PM, laurent Montel <montel at kde.org> wrote:
> > Hi Vishesh
> > 
> > I want to port kdepim trunk to nepomuk-core and "Nepomuk::Tag::allTags()"
> > What function I must use now ?
> 
> Well, I can provide an allTags function if you want.

It's necessary in kmail :)
We need to have allTag() to allow to show all tag and select which tag which 
want to apply. Otherwise we don't know which tag we can apply.

> The reason I'd removed
> it was cause it was blocking, and the number of tags could be quite high.

I understand.

> One should ideally be using an asynchronous query for the tags (maybe via
> the QueryServiceClient)
> 
> Then again, listing all the tags is such a common operation that maybe we
> should be providing it.
> 
> @Sebastian: What do you think?
> 
> > Thanks :)
> > Regards
> > 
> >   foreach( const Nepomuk::Tag &tag, Nepomuk::Tag::allTags() ) {
> >   
> >     mParameterList.append( tag.label() );
> >     mLabelList.append( tag.resourceUri().toString() );
> >   
> >   }
> > 
> > --
> > Laurent Montel | laurent.montel at kdab.com | KDE/Qt Senior Software Engineer
> > KDAB (France) S.A.S., a KDAB Group company
> > Tel. France +33 (0)4 90 84 08 53, Sweden (HQ) +46-563-540090
> > KDAB - Qt Experts - Platform-independent software solutions
-- 
Laurent Montel | laurent.montel at kdab.com | KDE/Qt Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions


More information about the Nepomuk mailing list