digiKam
|
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 () | |
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.
|
explicit |
Digikam::DItemInfo::~DItemInfo | ( | ) |
int Digikam::DItemInfo::albumId | ( | ) | const |
Referenced by DigikamGenericFileCopyPlugin::FCTask::run().
double Digikam::DItemInfo::altitude | ( | ) | const |
QString Digikam::DItemInfo::aperture | ( | ) | const |
int Digikam::DItemInfo::colorLabel | ( | ) | const |
References Digikam::NoColorLabel.
Referenced by DigikamGenericSlideShowPlugin::SlideOSD::setCurrentUrl().
QString Digikam::DItemInfo::comment | ( | ) | const |
Referenced by DigikamGenericPiwigoPlugin::PiwigoTalker::addPhoto(), DigikamGenericPrintCreatorPlugin::AdvPrintCaptionPage::captionFormatter(), DigikamGenericHtmlGalleryPlugin::GalleryElement::GalleryElement(), DigikamGenericGeolocationEditPlugin::KmlExport::generateImagesthumb(), DigikamGenericUnifiedPlugin::WSAuthentication::getImageCaption(), DigikamGenericMjpegStreamPlugin::MjpegFrameOsd::PopulateOSD(), and Digikam::DItemsListViewItem::updateInformation().
QStringList Digikam::DItemInfo::creators | ( | ) | const |
Referenced by DigikamGenericPiwigoPlugin::PiwigoTalker::addPhoto().
QString Digikam::DItemInfo::credit | ( | ) | const |
QDateTime Digikam::DItemInfo::dateTime | ( | ) | const |
Referenced by DigikamGenericPiwigoPlugin::PiwigoTalker::addPhoto(), DigikamGenericINatPlugin::INatTalker::computerVision(), DigikamGenericHtmlGalleryPlugin::GalleryElement::GalleryElement(), DigikamGenericGeolocationEditPlugin::KmlExport::generateImagesthumb(), DigikamGenericMediaWikiPlugin::MediaWikiWidget::loadItemInfo(), and DigikamGenericMjpegStreamPlugin::MjpegFrameOsd::PopulateOSD().
QSize Digikam::DItemInfo::dimensions | ( | ) | const |
QString Digikam::DItemInfo::exposureTime | ( | ) | const |
qlonglong Digikam::DItemInfo::fileSize | ( | ) | const |
QString Digikam::DItemInfo::focalLength | ( | ) | const |
QString Digikam::DItemInfo::focalLength35mm | ( | ) | const |
bool Digikam::DItemInfo::hasGeolocationInfo | ( | ) | const |
References latitude(), and longitude().
Referenced by DigikamGenericINatPlugin::INatTalker::computerVision(), DigikamGenericGeolocationEditPlugin::KmlExport::generate(), DigikamGenericGeolocationEditPlugin::KmlExport::generateImagesthumb(), and DigikamGenericMediaWikiPlugin::MediaWikiWidget::loadItemInfo().
QStringList Digikam::DItemInfo::keywords | ( | ) | const |
double Digikam::DItemInfo::latitude | ( | ) | const |
QString Digikam::DItemInfo::lens | ( | ) | const |
double Digikam::DItemInfo::longitude | ( | ) | const |
QString Digikam::DItemInfo::make | ( | ) | const |
QString Digikam::DItemInfo::model | ( | ) | const |
QString Digikam::DItemInfo::name | ( | ) | const |
int Digikam::DItemInfo::orientation | ( | ) | const |
int Digikam::DItemInfo::pickLabel | ( | ) | const |
References Digikam::NoPickLabel.
Referenced by DigikamGenericSlideShowPlugin::SlideOSD::setCurrentUrl().
int Digikam::DItemInfo::rating | ( | ) | const |
QString Digikam::DItemInfo::rights | ( | ) | const |
QString Digikam::DItemInfo::sensitivity | ( | ) | const |
void Digikam::DItemInfo::setColorLabel | ( | int | color | ) |
void Digikam::DItemInfo::setOrientation | ( | int | val | ) |
Referenced by DigikamGenericGLViewerPlugin::GLViewerTexture::rotate().
void Digikam::DItemInfo::setPickLabel | ( | int | pick | ) |
void Digikam::DItemInfo::setRating | ( | int | rating | ) |
References rating().
QString Digikam::DItemInfo::source | ( | ) | const |
QStringList Digikam::DItemInfo::tagsPath | ( | ) | const |
QString Digikam::DItemInfo::title | ( | ) | const |
QString Digikam::DItemInfo::videoCodec | ( | ) | const |
Referenced by Digikam::MediaPlayerView::setCurrentItem(), and Digikam::SlideVideo::setCurrentUrl().