digiKam
Digikam::DItemInfo Class Reference

Public Member Functions

int albumId () const
 
double altitude () const
 
QString aperture () const
 
int colorLabel () const
 
QString comment () const
 
QStringList creators () const
 
QString credit () const
 
QDateTime dateTime () const
 
QSize dimensions () const
 
 DItemInfo (const DInfoInterface::DInfoMap &)
 
QString exposureTime () const
 
qlonglong fileSize () const
 
QString focalLength () const
 
QString focalLength35mm () const
 
bool hasGeolocationInfo () const
 
QStringList keywords () const
 
double latitude () const
 
QString lens () const
 
double longitude () const
 
QString make () const
 
QString model () const
 
QString name () const
 
int orientation () const
 
int pickLabel () const
 
int rating () const
 
QString rights () const
 
QString sensitivity () const
 
void setColorLabel (int)
 
void setOrientation (int)
 
void setPickLabel (int)
 
void setRating (int)
 
QString source () const
 
QStringList tagsPath () const
 
QString title () const
 
QString videoCodec () const
 
 ~DItemInfo ()
 

Detailed Description

DItemInfo is a class to get item information from host application (Showfoto or digiKam) The interface is re-implemented in host and depend how item information must be retrieved (from a database or by file metadata). The easy way to use this container is given below:

// READ INFO FROM HOST ------------------------------------------—

QUrl itemUrl; // The item url that you want to retrieve information. DInfoInterface* hostIface; // The host application interface instance.

DInfoInterface::DInfoMap info = hostIface->itemInfo(itemUrl); // First stage is to get the information map from host application. DItemInfo item(info); // Second stage, is to create the DIntenInfo instance for this item by url. QString title = item.name(); // Now you can retrieve the title, QString description = item.comment(); // The comment, QDateTime time = item.dateTime(); // The time stamp, etc.

// WRITE INFO TO HOST -------------------------------------------—

QUrl itemUrl; // The item url that you want to retrieve information. DInfoInterface* hostIface; // The host application interface instance.

DInfoInterface::DInfoMap info; // First stage is to create an empty information storage map for this item. DItemInfo item(info); // Second stage, is to create the DIntenInfo instance for this item. item.setRating(3); // Store rating to info map. item.setColorLabel(1); // Store color label to info map. hostIface->setItemInfo(url, info); // Update item information to host using map.

Constructor & Destructor Documentation

◆ DItemInfo()

Digikam::DItemInfo::DItemInfo ( const DInfoInterface::DInfoMap info)
explicit

◆ ~DItemInfo()

Digikam::DItemInfo::~DItemInfo ( )

Member Function Documentation

◆ albumId()

int Digikam::DItemInfo::albumId ( ) const

◆ altitude()

◆ aperture()

QString Digikam::DItemInfo::aperture ( ) const

◆ colorLabel()

int Digikam::DItemInfo::colorLabel ( ) const

◆ comment()

◆ creators()

QStringList Digikam::DItemInfo::creators ( ) const

◆ credit()

QString Digikam::DItemInfo::credit ( ) const

◆ dateTime()

◆ dimensions()

QSize Digikam::DItemInfo::dimensions ( ) const

◆ exposureTime()

QString Digikam::DItemInfo::exposureTime ( ) const

◆ fileSize()

qlonglong Digikam::DItemInfo::fileSize ( ) const

◆ focalLength()

QString Digikam::DItemInfo::focalLength ( ) const

◆ focalLength35mm()

QString Digikam::DItemInfo::focalLength35mm ( ) const

◆ hasGeolocationInfo()

◆ keywords()

◆ latitude()

◆ lens()

QString Digikam::DItemInfo::lens ( ) const

◆ longitude()

◆ make()

QString Digikam::DItemInfo::make ( ) const

◆ model()

QString Digikam::DItemInfo::model ( ) const

◆ name()

◆ orientation()

◆ pickLabel()

int Digikam::DItemInfo::pickLabel ( ) const

◆ rating()

◆ rights()

QString Digikam::DItemInfo::rights ( ) const

◆ sensitivity()

QString Digikam::DItemInfo::sensitivity ( ) const

◆ setColorLabel()

void Digikam::DItemInfo::setColorLabel ( int  color)

◆ setOrientation()

void Digikam::DItemInfo::setOrientation ( int  val)

◆ setPickLabel()

void Digikam::DItemInfo::setPickLabel ( int  pick)

◆ setRating()

void Digikam::DItemInfo::setRating ( int  rating)

References rating().

◆ source()

QString Digikam::DItemInfo::source ( ) const

◆ tagsPath()

QStringList Digikam::DItemInfo::tagsPath ( ) const

◆ title()

◆ videoCodec()

QString Digikam::DItemInfo::videoCodec ( ) const

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