[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: KDE/kdepim/akonadi/agents
From: Sebastian =?iso-8859-15?q?Tr=FCg?= <trueg () kde ! org>
Date: 2009-09-16 15:18:37
Message-ID: 200909161718.37986.trueg () kde ! org
[Download RAW message or body]
On Wednesday 16 September 2009 16:30:33 Volker Krause wrote:
> On Wednesday 16 September 2009 16:27:25 Sebastian Trüg wrote:
> > On Wednesday 16 September 2009 15:54:22 Volker Krause wrote:
> > > +void NepomukFeederAgent::tagsFromCategories(NepomukFast::Resource&
> > > resource, const QStringList& categories) +{
> > > + // FIXME: this voids the usage of the XFast classes...
> > > + Nepomuk::Resource res( resource.uri() );
> > > + foreach ( const QString &category, categories ) {
> > > + const Nepomuk::Tag tag( category );
> > > + res.addTag( tag );
> > > + }
> > > +}
> >
> > better do this:
> > resource.setProperty( Soprano::Vocabulary::NAO::hasTag(),
> > tag.resourceUri() );
>
> tried that already, but NepomukFast::Resource has no method setProperty().
that is easy to add. We can do that in Berlin maybe.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic