Revision 741554

Go back to digest for 2nd December 2007

Features in Graphics

Marcel Wiesweg committed changes in /trunk/extragear/graphics/digikam/libs/database:

To uniquely identify the storage media of an album root, the UUID is a very good identifier, but it is not always available.

There need to be other means of identification for the storage of an album root.

Change the format of the album root identifier to a KUrl based string which allows easy storage of a variety of identifiers:
- label
- hash of the file names in the top level directory (CD/DVD)
- mount path
- path

Add private methods to create such identifiers, match Solid volumes to a given identifier,
and find a volume for a given path. Adapt the code to the new situation.

Add a method to return an user-visible information string on how a given path can be detected.

This can inform the user e.g. that a CD is identified by its label, or a removable USB disk can be uniquely identified by its UUID.

This commit invalidates existing album roots; Either delete and readd them, or edit the AlbumRoots table field "identifier" by prepending "volumeid:?uuid=".

File Changes

Modified 2 files
  • /trunk/extragear/graphics/digikam/libs/database
  •   /collectionmanager.cpp
  •   /collectionmanager.h
2 files changed in total