[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE/kdepim/akonadi/agents
From:       Sebastian =?utf-8?q?Tr=C3=BCg?= <trueg () kde ! org>
Date:       2009-09-16 14:27:25
Message-ID: 200909161627.25598.trueg () kde ! org
[Download RAW message or body]

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() );

Cheers,
Sebastian
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic