digiKam
|
A class for managing / grouping database keys. More...
Public Member Functions | |
QString | collectionName () const |
DbKeysCollection (const QString &n) | |
QString | getValue (const QString &key, ParseSettings &settings) |
DbKeyIdsMap | ids () const |
virtual | ~DbKeysCollection () |
Protected Member Functions | |
void | addId (const QString &id, const QString &description) |
virtual QString | getDbValue (const QString &key, ParseSettings &settings)=0 |
A class for managing / grouping database keys.
This class manages database keys and provides methods to get the appropriate value from the database.
|
explicit |
Default constructor.
n | collection name |
|
virtual |
|
protected |
Add an ID to the key collection.
id | the id of the database key |
description | a short description of the database key |
Referenced by Digikam::CommonKeys::CommonKeys(), Digikam::MetadataKeys::MetadataKeys(), and Digikam::PositionKeys::PositionKeys().
QString Digikam::DbKeysCollection::collectionName | ( | ) | const |
Get the name of the DbKeysCollection
|
protectedpure virtual |
Abstract method for retrieving the value from the database for the given key.
This method has to be implemented by all child classes. It is called by the getValue() method.
key | the key representing the value in the database |
settings | the ParseSettings object holding all relevant information about the image. |
Implemented in Digikam::PositionKeys, Digikam::MetadataKeys, and Digikam::CommonKeys.
Referenced by getValue().
QString Digikam::DbKeysCollection::getValue | ( | const QString & | key, |
ParseSettings & | settings | ||
) |
Get a value from the database.
key | the key representing the value in the database |
settings | the ParseSettings object holding all relevant information about the image. |
References getDbValue().
DbKeyIdsMap Digikam::DbKeysCollection::ids | ( | ) | const |
Get all IDs associated with this key collection.