![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
A class for managing / grouping database keys. More...
Inheritance diagram for Digikam::DbKeysCollection:Public Member Functions | |
| DbKeysCollection (const QString &n) | |
| Default constructor. | |
| QString | collectionName () const |
| Get the name of the DbKeysCollection. | |
| QString | getValue (const QString &key, ParseSettings &settings) |
| Get a value from the database. | |
| DbKeyIdsMap | ids () const |
| Get all IDs associated with this key collection. | |
Protected Member Functions | |
| void | addId (const QString &id, const QString &description) |
| Add an ID to the key collection. | |
| virtual QString | getDbValue (const QString &key, ParseSettings &settings)=0 |
| Abstract method for retrieving the value from the database for the given key. | |
This class manages database keys and provides methods to get the appropriate value from the database.
|
explicit |
| n | collection name |
|
protected |
| id | the id of the database key |
| description | a short description of the database key |
| QString Digikam::DbKeysCollection::collectionName | ( | ) | const |
|
protectedpure virtual |
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::CommonKeys, Digikam::MetadataKeys, and Digikam::PositionKeys.
| QString Digikam::DbKeysCollection::getValue | ( | const QString & | key, |
| ParseSettings & | settings | ||
| ) |
| key | the key representing the value in the database |
| settings | the ParseSettings object holding all relevant information about the image. |
| DbKeyIdsMap Digikam::DbKeysCollection::ids | ( | ) | const |