[Digikam-devel] [digikam] [Bug 332665] digiKam should use Baloo for KDE 4.13

Konrad Renner koni_renner at gmx.at
Tue Aug 5 08:01:10 BST 2014


https://bugs.kde.org/show_bug.cgi?id=332665

--- Comment #25 from Konrad Renner <koni_renner at gmx.at> ---
(In reply to Veaceslav Munteanu from comment #23)

> 2. I'm still looking for a tutorial for get/set with Ballo, CMake rules and
> API (I don't know, google does not return relevant searches for Baloo API or
> tutorial)

Hi,

you don't need baloo for setting or getting the attributes from a file. The
important part is, that the attributes are stored in a namespace as defined
here: http://www.freedesktop.org/wiki/CommonExtendedAttributes/

baloo uses the following namespaces for attributes:
 - user.xdg.comment
 - user.xdg.tags => tags are separated with , 
 - user.baloo.ratig => rating range is from 0 to 10 (9 is displayed as 4.5
Stars in dolphin)

In "the near future" baloo will detect changes on this attributes on its own,
see Bug 337602 for more information.

I think the real cool part is, that every application which uses the
freedesktop defined namespaces will be able to interpret those attributes and
is not depened to another software or library.

I don't know how to set the attributes with C/C++ but I have found these:
 -
http://stackoverflow.com/questions/9979864/system-file-read-write-o-create-custom-metadata-or-attributes-extended
 - http://www.lesbonscomptes.com/pxattr/

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Digikam-devel mailing list