digiKam
Digikam::PositionKeys Class Reference
+ Inheritance diagram for Digikam::PositionKeys:

Public Member Functions

QString collectionName () const
 
QString getValue (const QString &key, ParseSettings &settings)
 
DbKeyIdsMap ids () const
 
 PositionKeys ()
 
 ~PositionKeys () override
 

Protected Member Functions

void addId (const QString &id, const QString &description)
 
QString getDbValue (const QString &key, ParseSettings &settings) override
 

Constructor & Destructor Documentation

◆ PositionKeys()

Digikam::PositionKeys::PositionKeys ( )
explicit

◆ ~PositionKeys()

Digikam::PositionKeys::~PositionKeys ( )
inlineoverride

Member Function Documentation

◆ addId()

void Digikam::DbKeysCollection::addId ( const QString &  id,
const QString &  description 
)
protectedinherited

Add an ID to the key collection.

Parameters
idthe id of the database key
descriptiona short description of the database key

Referenced by Digikam::CommonKeys::CommonKeys(), Digikam::MetadataKeys::MetadataKeys(), and PositionKeys().

◆ collectionName()

QString Digikam::DbKeysCollection::collectionName ( ) const
inherited

Get the name of the DbKeysCollection

Returns
the name of the collection

◆ getDbValue()

QString Digikam::PositionKeys::getDbValue ( const QString &  key,
ParseSettings settings 
)
overrideprotectedvirtual

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.

Parameters
keythe key representing the value in the database
settingsthe ParseSettings object holding all relevant information about the image.
Returns
the value of the given database key
See also
DbKeysCollection::getValue()

Implements Digikam::DbKeysCollection.

References Digikam::ParseSettings::fileUrl, Digikam::ItemInfo::fromUrl(), and Digikam::ItemInfo::imagePosition().

◆ getValue()

QString Digikam::DbKeysCollection::getValue ( const QString &  key,
ParseSettings settings 
)
inherited

Get a value from the database.

Parameters
keythe key representing the value in the database
settingsthe ParseSettings object holding all relevant information about the image.
Returns
the value of the given database key

References Digikam::DbKeysCollection::getDbValue().

◆ ids()

DbKeyIdsMap Digikam::DbKeysCollection::ids ( ) const
inherited

Get all IDs associated with this key collection.

Returns
a map of all associated ids and their description

The documentation for this class was generated from the following files: