Where to add file sort priority support?
Carsten Pfeiffer
carpdjih at sp.zrz.tu-berlin.de
Wed Jul 10 17:24:26 BST 2002
-----BEGIN PGP SIGNED MESSAGE-----
On Wednesday 10 July 2002 17:51, Sean Pecor wrote:
> A priority field could be an integer value, perhaps represented to the user
> as an index to a customizable list of enumerated strings. So a priority 1
> could be "Not important", priority 2 could be defined as "Important" and
> priority 3 could be "Very important" etc.
Sounds like a very good idea -- reminds me a lot of those "meta data for
files" discussions tho. And the lack of filesystems, supporting that and the
problem of distributing files, losing the meta information...
Anyway, we have a very generic interface to meta information for all kinds of
files with KFileMetaInfo (in kdelibs/kio/kio).
KFileMetaInfo is a plugin-based system, where every plugin handles the
extraction/insertion of meta information for some type of file(s), i.e. the
plugins are mapped to mimetypes.
To add priority support for all files (i.e. all mimetypes) we could either
extend the base-class of all plugins, so that all plugins automatically get
the priority information or allow for multiple plugins per mimetype (i.e.
merging the results of multiple plugins).
It's up to you where to store the priority information, be it a database, a
plain file, or directly in the file. As not all files formats have support
for saving meta information inside the file, you get problems when files are
moved around the filesystem.
Maybe with dnotify and/or FAM, you can track renamings of files, don't know.
Cheers
Carsten Pfeiffer
-----BEGIN PGP SIGNATURE-----
iQEVAwUBPSxfuqWgYMJuwmZtAQH6+gf9FPES4SvO1IKeB9aynfoOf8M5gth+66TX
6Q76/zSlOqmP4IXZGBoCcRTpO8tLEg/WPUgtgthDB00CUsbKK6fZSa0dJepP8JTV
zMnxmoU9mt0DYroSxvW7xeKa0zhjwgmskZfgXcThWoQqa505SoqjLoYDZNzEJ1+z
Tcg/mYzZoztOKv2XNwSKAkJ0LoucH4QpJe9ePtCPdFNTvLj2+dzm5nZi/pkn43eG
dgnDhtkgE3EbAGxmf2pJnOQ66pqMnMIm/XdPaPge3zo3aV6OcOAVaBsuc9pQua0M
HdU2qDcceme+VqpAhsrWnBSGSiTmW9UNgIMNehE5+41UfIqcizFRvw==
=nVrN
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list