digiKam
Digikam::ItemInfo Class Reference

Public Types

typedef DatabaseFields::Hash< QVariant > DatabaseFieldsHashRaw
 

Public Member Functions

ItemInfo copyItem (int dstAlbumID, const QString &dstFileName)
 
bool isLocationAvailable () const
 
 ItemInfo ()
 
 ItemInfo (const ItemInfo &info)
 
 ItemInfo (const ItemListerRecord &record)
 
 ItemInfo (qlonglong ID)
 
bool operator!= (const ItemInfo &info) const
 
bool operator< (const ItemInfo &info) const
 
ItemInfooperator= (const ItemInfo &info)
 
bool operator== (const ItemInfo &info) const
 
 ~ItemInfo ()
 
Operations with Properties
bool isNull () const
 
QString name () const
 
QDateTime dateTime () const
 
QDateTime modDateTime () const
 
qlonglong fileSize () const
 
QSize dimensions () const
 
QUrl fileUrl () const
 
QString filePath () const
 
qlonglong id () const
 
int albumId () const
 
int albumRootId () const
 
double aspectRatio () const
 
qlonglong manualOrder () const
 
DatabaseItem::Category category () const
 
QString format () const
 
bool isVisible () const
 
bool isRemoved () const
 
int orientation () const
 
QString title () const
 
QString comment () const
 
int faceCount () const
 
int unconfirmedFaceCount () const
 
QMap< QString, QString > getSuggestedNames () const
 
void setName (const QString &newName)
 
void setDateTime (const QDateTime &dateTime)
 
void setModDateTime (const QDateTime &dateTime)
 
void setManualOrder (qlonglong value)
 
void setOrientation (int value)
 
void setVisible (bool isVisible)
 
DatabaseFieldsHashRaw getDatabaseFieldsRaw (const DatabaseFields::Set &requestedSet) const
 
QVariant getDatabaseFieldRaw (const DatabaseFields::Set &requestedField) const
 
Operations with Geolocation
ItemPosition imagePosition () const
 
double longitudeNumber () const
 
double latitudeNumber () const
 
double altitudeNumber () const
 
bool hasCoordinates () const
 
bool hasAltitude () const
 
Operations with History
DImageHistory imageHistory () const
 
void setItemHistory (const DImageHistory &history)
 
bool hasImageHistory () const
 
QString uuid () const
 
void setUuid (const QString &uuid)
 
HistoryImageId historyImageId () const
 
bool hasDerivedImages () const
 
bool hasAncestorImages () const
 
QList< ItemInfoderivedImages () const
 
QList< ItemInfoancestorImages () const
 
QList< QPair< qlonglong, qlonglong > > relationCloud () const
 
void markDerivedFrom (const ItemInfo &ancestorImage)
 
Operations with Groups
bool isGrouped () const
 
bool hasGroupedImages () const
 
int numberOfGroupedImages () const
 
ItemInfo groupImage () const
 
qlonglong groupImageId () const
 
QList< ItemInfogroupedImages () const
 
void addToGroup (const ItemInfo &info)
 
void removeFromGroup ()
 
void clearGroup ()
 
Operations with Containers
ImageCommonContainer imageCommonContainer () const
 
ImageMetadataContainer imageMetadataContainer () const
 
VideoMetadataContainer videoMetadataContainer () const
 
PhotoInfoContainer photoInfoContainer () const
 
VideoInfoContainer videoInfoContainer () const
 
Template metadataTemplate () const
 
void setMetadataTemplate (const Template &t)
 
void removeMetadataTemplate ()
 
ItemComments imageComments (CoreDbAccess &access) const
 
ItemCopyright imageCopyright () const
 
ItemExtendedProperties imageExtendedProperties () const
 
Operations with Labels
int pickLabel () const
 
int colorLabel () const
 
int rating () const
 
void setPickLabel (int value)
 
void setColorLabel (int value)
 
void setRating (int value)
 

Static Public Member Functions

static ItemInfo fromLocalFile (const QString &path)
 
static ItemInfo fromLocationAlbumAndName (int locationId, const QString &album, const QString &name)
 
static ItemInfo fromUrl (const QUrl &url)
 

Operations with Similarity

class ItemInfoCache
 
class ItemInfoList
 
double similarityTo (const qlonglong imageId) const
 
double currentSimilarity () const
 
qlonglong currentReferenceImage () const
 
uint hash () const
 
QList< ItemInfofromUniqueHash (const QString &uniqueHash, qlonglong fileSize)
 
QString uniqueHash () const
 

Operations with Tags

void setTag (int tagID)
 
void addTagPaths (const QStringList &tagPaths)
 
void removeTag (int tagID)
 
void removeAllTags ()
 
ItemTagPair imageTagPair (int tagId) const
 
QList< ItemTagPairavailableItemTagPairs () const
 
QList< int > tagIds () const
 

Operations with Thumbnails

ThumbnailIdentifier thumbnailIdentifier () const
 
ThumbnailInfo thumbnailInfo () const
 
static ThumbnailIdentifier thumbnailIdentifier (qlonglong id)
 

Detailed Description

The ItemInfo class contains provides access to the database for a single image. The properties can be read and written. Information will be cached.

NOTE: access rules for all methods in this class: ItemInfoData members shall be accessed only under CoreDbAccess lock. The id and albumId are the exception to this rule, as they are primitive and will never change during the lifetime of an object.

Member Typedef Documentation

◆ DatabaseFieldsHashRaw

Constructor & Destructor Documentation

◆ ItemInfo() [1/4]

Digikam::ItemInfo::ItemInfo ( )

Constructor Creates a null image info

Referenced by copyItem(), fromLocalFile(), fromLocationAlbumAndName(), fromUniqueHash(), and groupImage().

◆ ItemInfo() [2/4]

Digikam::ItemInfo::ItemInfo ( qlonglong  ID)
explicit

Constructor. Creates an ItemInfo object without any cached data initially.

Parameters
IDthe unique ID for this image

◆ ItemInfo() [3/4]

◆ ItemInfo() [4/4]

Digikam::ItemInfo::ItemInfo ( const ItemInfo info)

Copy constructor.

◆ ~ItemInfo()

Digikam::ItemInfo::~ItemInfo ( )

Member Function Documentation

◆ addTagPaths()

void Digikam::ItemInfo::addTagPaths ( const QStringList &  tagPaths)

Adds tags in the list to the item. Tags are created if they do not yet exist

References Digikam::CoreDB::addTagsToItems(), Digikam::CoreDbAccess::db(), Digikam::TagsCache::instance(), tagIds(), and Digikam::TagsCache::tagsForPaths().

◆ addToGroup()

◆ albumId()

◆ albumRootId()

int Digikam::ItemInfo::albumRootId ( ) const

◆ altitudeNumber()

double Digikam::ItemInfo::altitudeNumber ( ) const

◆ ancestorImages()

QList< ItemInfo > Digikam::ItemInfo::ancestorImages ( ) const

◆ aspectRatio()

double Digikam::ItemInfo::aspectRatio ( ) const
Returns
the id of the Aspect Ratio for this item

References RETURN_ASPECTRATIO_IF_IMAGESIZE_CACHED.

Referenced by Digikam::ItemFilterSettings::matches().

◆ availableItemTagPairs()

QList< ItemTagPair > Digikam::ItemInfo::availableItemTagPairs ( ) const

◆ category()

◆ clearGroup()

void Digikam::ItemInfo::clearGroup ( )

◆ colorLabel()

◆ comment()

◆ copyItem()

ItemInfo Digikam::ItemInfo::copyItem ( int  dstAlbumID,
const QString &  dstFileName 
)

Copy database information of this item to a newly created item

Parameters
dstAlbumIDdestination album id
dstFileNamenew filename
Returns
an ItemInfo object of the new item

References Digikam::CoreDB::copyItem(), Digikam::CoreDbAccess::db(), and ItemInfo().

◆ currentReferenceImage()

qlonglong Digikam::ItemInfo::currentReferenceImage ( ) const

◆ currentSimilarity()

◆ dateTime()

◆ derivedImages()

QList< ItemInfo > Digikam::ItemInfo::derivedImages ( ) const

◆ dimensions()

◆ faceCount()

int Digikam::ItemInfo::faceCount ( ) const

◆ filePath()

QString Digikam::ItemInfo::filePath ( ) const

◆ fileSize()

◆ fileUrl()

◆ format()

◆ fromLocalFile()

◆ fromLocationAlbumAndName()

ItemInfo Digikam::ItemInfo::fromLocationAlbumAndName ( int  locationId,
const QString &  album,
const QString &  name 
)
static

◆ fromUniqueHash()

QList< ItemInfo > Digikam::ItemInfo::fromUniqueHash ( const QString &  uniqueHash,
qlonglong  fileSize 
)

Scans the database for items with the given signature.

References Digikam::CoreDbAccess::db(), fileSize(), Digikam::CoreDB::getIdenticalFiles(), Digikam::ItemScanInfo::id, ItemInfo(), and uniqueHash().

◆ fromUrl()

◆ getDatabaseFieldRaw()

QVariant Digikam::ItemInfo::getDatabaseFieldRaw ( const DatabaseFields::Set requestedField) const

References getDatabaseFieldsRaw(), and value.

◆ getDatabaseFieldsRaw()

◆ getSuggestedNames()

QMap< QString, QString > Digikam::ItemInfo::getSuggestedNames ( ) const
Returns
the map of Tag Region (in XML form) to Suggested Names for all Faces in the Image. Used to categorize images based on Face Suggestions.

References Digikam::FaceTagsEditor::getSuggestedNames(), and RETURN_IF_CACHED.

Referenced by Digikam::ItemFilterModel::categoryIdentifier(), and Digikam::ItemSortSettings::compareCategories().

◆ groupedImages()

QList< ItemInfo > Digikam::ItemInfo::groupedImages ( ) const

◆ groupImage()

ItemInfo Digikam::ItemInfo::groupImage ( ) const

Returns the leading image of the group. Returns a null image if this image is not grouped (isGrouped())

References groupImageId(), and ItemInfo().

Referenced by addToGroup(), groupImageId(), Digikam::GroupItemFilterSettings::matches(), and Digikam::ItemInfoList::singleGroupMainItem().

◆ groupImageId()

◆ hasAltitude()

◆ hasAncestorImages()

bool Digikam::ItemInfo::hasAncestorImages ( ) const

◆ hasCoordinates()

◆ hasDerivedImages()

bool Digikam::ItemInfo::hasDerivedImages ( ) const

Retrieve information about images from which this image is derived (ancestorImages) and images that have been derived from this images (derivedImages).

References Digikam::CoreDbAccess::db(), Digikam::DatabaseRelation::DerivedFrom, and Digikam::CoreDB::hasImagesRelatingTo().

◆ hasGroupedImages()

bool Digikam::ItemInfo::hasGroupedImages ( ) const

◆ hash()

uint Digikam::ItemInfo::hash ( ) const

Return a signature for the item.

References qHash().

Referenced by Digikam::qHash().

◆ hasImageHistory()

bool Digikam::ItemInfo::hasImageHistory ( ) const

◆ historyImageId()

◆ id()

qlonglong Digikam::ItemInfo::id ( ) const
Returns
the unique image id for this item

Referenced by Digikam::FacePipeline::addManually(), Digikam::MetadataHubMngr::addPending(), addToGroup(), Digikam::ItemHistoryGraph::allImageIds(), Digikam::FileActionMngrDatabaseWorker::assignColorLabel(), Digikam::FileActionMngrDatabaseWorker::assignPickLabel(), Digikam::FileActionMngrDatabaseWorker::assignRating(), Digikam::ItemTagPair::availablePairs(), Digikam::ScanController::beginFileMetadataWrite(), Digikam::ItemSortSettings::compare(), Digikam::TableViewColumns::ColumnItemProperties::compare(), Digikam::CollectionScanner::copyFileProperties(), Digikam::SearchModificationHelper::createFuzzySearchFromImage(), Digikam::ItemDragDropHandler::createMimeData(), Digikam::TableViewColumns::ColumnItemProperties::data(), Digikam::ItemViewUtilities::deleteImages(), Digikam::ItemViewUtilities::deleteImagesDirectly(), Digikam::DigikamItemView::dragDropSort(), Digikam::ScanStateFilter::filter(), Digikam::QueueListView::findItemById(), Digikam::ScanController::finishFileMetadataWrite(), Digikam::SimilarityDb::getDirtyOrMissingFingerprints(), Digikam::SimilarityDb::getDirtyOrMissingFingerprintURLs(), Digikam::GroupedImagesFinder::GroupedImagesFinder(), Digikam::DigikamItemView::groupIndicatorClicked(), Digikam::SimilarityDb::hasDirtyOrMissingFingerprint(), Digikam::DigikamItemView::hasHiddenGroupedImages(), Digikam::TableViewTreeView::hasHiddenGroupedImages(), Digikam::ItemModel::hasImage(), historyImageId(), Digikam::ItemModel::indexesForItemInfo(), Digikam::ItemModel::indexForItemInfo(), Digikam::HaarIface::indexImage(), Digikam::FaceGroup::load(), Digikam::MetadataHub::loadFaceTags(), Digikam::LightTableWindow::loadItemInfos(), markDerivedFrom(), Digikam::VersionItemFilterSettings::matches(), Digikam::GroupItemFilterSettings::matches(), Digikam::ItemFilterSettings::matches(), Digikam::ItemModel::numberOfIndexesForItemInfo(), Digikam::LessThanByProximityToSubject::operator()(), Digikam::operator<<(), Digikam::HistoryVertexProperties::operator==(), Digikam::ItemDelegate::paint(), Digikam::GPSMarkerTiler::pixmapFromRepresentativeIndex(), Digikam::ItemFilterModelFilterer::process(), Digikam::FaceGroup::rejectAll(), Digikam::ItemHistoryGraph::relationCloud(), Digikam::ItemHistoryGraph::relationCloudParallel(), Digikam::QueueListView::removeItemById(), Digikam::QueueListView::removeItemByInfo(), Digikam::ItemModel::removeItemInfos(), Digikam::FaceUtils::rotateFaces(), Digikam::FingerprintsTask::run(), Digikam::ItemGPS::saveChanges(), Digikam::CollectionScanner::scanFile(), Digikam::ItemViewUtilities::setAsAlbumThumbnail(), Digikam::ItemAlbumModel::slotData(), Digikam::ItemIconView::slotGotoAlbumAndItem(), Digikam::ItemIconView::slotGotoDateAndItem(), Digikam::TableView::slotSetCurrentUrlWhenAvailable(), Digikam::FileActionMngr::Private::startingToWrite(), Digikam::ItemFilterModel::subSortLessThan(), thumbnailIdentifier(), Digikam::ItemInfoList::toImageIdList(), and Digikam::ItemModel::uniqueItemInfos().

◆ imageComments()

ItemComments Digikam::ItemInfo::imageComments ( CoreDbAccess access) const

Retrieve the ItemComments object for this item. This object allows full read and write access to all comments and their properties. You need to hold CoreDbAccess to ensure the validity. For simple, cached read access see comment().

Referenced by Digikam::MetadataHub::load(), Digikam::DisjointMetadata::load(), and Digikam::DisjointMetadata::write().

◆ imageCommonContainer()

ImageCommonContainer Digikam::ItemInfo::imageCommonContainer ( ) const

Retrieve information about the image, in form of numbers and user presentable strings, for certain defined fields of information (see databaseinfocontainers.h)

References Digikam::ItemScanner::fillCommonContainer().

Referenced by Digikam::TableViewColumns::ColumnItemProperties::compare(), Digikam::TableViewColumns::ColumnItemProperties::data(), Digikam::CommonKeys::getDbValue(), and Digikam::ToolTipFiller::imageInfoTipContents().

◆ imageCopyright()

ItemCopyright Digikam::ItemInfo::imageCopyright ( ) const

Retrieve the ItemCopyright object for this item. This object allows full read and write access to all copyright values.

Referenced by Digikam::CommonKeys::getDbValue(), Digikam::DBInfoIface::itemInfo(), metadataTemplate(), removeMetadataTemplate(), and setMetadataTemplate().

◆ imageExtendedProperties()

ItemExtendedProperties Digikam::ItemInfo::imageExtendedProperties ( ) const

Retrieve the ItemExtendedProperties object for this item. This object allows full read and write access to all extended properties values.

Referenced by metadataTemplate(), removeMetadataTemplate(), setMetadataTemplate(), and similarityTo().

◆ imageHistory()

DImageHistory Digikam::ItemInfo::imageHistory ( ) const

Retrieves and sets the image history from the database. Note: The image history retrieved here does typically include all steps from the original to this image, but does not reference this image itself.

References Digikam::CoreDbAccess::db(), Digikam::DImageHistory::fromXml(), Digikam::CoreDB::getItemHistory(), and Digikam::ImageHistoryEntry::history.

Referenced by Digikam::ItemHistoryGraph::fromInfo(), and Digikam::ItemPropertiesVersionsTab::setItem().

◆ imageMetadataContainer()

ImageMetadataContainer Digikam::ItemInfo::imageMetadataContainer ( ) const

References Digikam::ImageMetadataContainer::allFieldsNull, Digikam::DatabaseFields::Aperture, Digikam::ImageMetadataContainer::aperture, Digikam::DatabaseImageMetadataFieldsToMetadataInfoField(), Digikam::DatabaseFields::ExposureMode, Digikam::ImageMetadataContainer::exposureMode, Digikam::DatabaseFields::ExposureProgram, Digikam::ImageMetadataContainer::exposureProgram, Digikam::DatabaseFields::ExposureTime, Digikam::ImageMetadataContainer::exposureTime, Digikam::DatabaseFields::FlashMode, Digikam::ImageMetadataContainer::flashMode, Digikam::DatabaseFields::FocalLength, Digikam::ImageMetadataContainer::focalLength, Digikam::DatabaseFields::FocalLength35, Digikam::ImageMetadataContainer::focalLength35, getDatabaseFieldsRaw(), Digikam::DatabaseFields::ImageMetadataAll, Digikam::DatabaseFields::Lens, Digikam::ImageMetadataContainer::lens, Digikam::DatabaseFields::Make, Digikam::ImageMetadataContainer::make, Digikam::DatabaseFields::Model, Digikam::ImageMetadataContainer::model, Digikam::DatabaseFields::Sensitivity, Digikam::ImageMetadataContainer::sensitivity, Digikam::DatabaseFields::SubjectDistance, Digikam::ImageMetadataContainer::subjectDistance, Digikam::DatabaseFields::SubjectDistanceCategory, Digikam::ImageMetadataContainer::subjectDistanceCategory, Digikam::DMetadata::valueToString(), Digikam::DatabaseFields::WhiteBalance, Digikam::ImageMetadataContainer::whiteBalance, Digikam::DatabaseFields::WhiteBalanceColorTemperature, and Digikam::ImageMetadataContainer::whiteBalanceColorTemperature.

Referenced by Digikam::MetadataKeys::getDbValue(), Digikam::ToolTipFiller::imageInfoTipContents(), and photoInfoContainer().

◆ imagePosition()

◆ imageTagPair()

ItemTagPair Digikam::ItemInfo::imageTagPair ( int  tagId) const

Retrieve an ItemTagPair object for a single tag, or for all image/tag pairs for which properties are available (not necessarily the assigned tags)

◆ isGrouped()

bool Digikam::ItemInfo::isGrouped ( ) const

The image is grouped in the group of another (leading) image.

References groupImageId().

Referenced by addToGroup(), Digikam::GroupItemFilterSettings::matches(), and removeFromGroup().

◆ isLocationAvailable()

bool Digikam::ItemInfo::isLocationAvailable ( ) const

Returns true if this is a valid ItemInfo, and the location of the image is currently available (information freshly obtained from CollectionManager)

References Digikam::CollectionManager::instance(), Digikam::CollectionLocation::isAvailable(), and Digikam::CollectionManager::locationForAlbumRootId().

Referenced by Digikam::CollectionScanner::scanFile().

◆ isNull()

bool Digikam::ItemInfo::isNull ( ) const

Returns if this objects contains valid data

Referenced by Digikam::DigikamItemView::activated(), Digikam::ContextMenuHelper::addGotoMenu(), addToGroup(), Digikam::ItemTagPair::availablePairs(), Digikam::LightTableView::checkForSelection(), Digikam::CollectionScanner::copyFileProperties(), Digikam::SearchModificationHelper::createFuzzySearchFromImage(), Digikam::ItemThumbnailModel::data(), Digikam::DigikamItemView::dragDropSort(), Digikam::ItemDragDropHandler::dropEvent(), Digikam::LightTableThumbBar::findItemByInfo(), Digikam::DigikamItemView::groupIndicatorClicked(), Digikam::ItemIconView::hasCurrentItem(), Digikam::ItemCategorizedView::hintAt(), Digikam::ItemCategorizedView::indexActivated(), Digikam::ItemHistoryGraphModel::indexForInfo(), Digikam::HaarIface::indexImage(), Digikam::ItemViewUtilities::insertToLightTableAuto(), Digikam::MapViewModelHelper::itemCoordinates(), Digikam::DBInfoIface::itemInfo(), Digikam::FaceGroup::load(), Digikam::FocusPointGroup::load(), Digikam::LightTableWindow::loadItemInfos(), markDerivedFrom(), Digikam::FuzzySearchSideBarWidget::newSimilarSearch(), Digikam::ItemViewUtilities::openInfos(), Digikam::LessThanByProximityToSubject::operator()(), Digikam::HistoryVertexProperties::operator+=(), Digikam::TableViewColumns::ColumnThumbnail::paint(), Digikam::ItemDelegate::paint(), Digikam::CameraNameOption::parseOperation(), Digikam::DateOption::parseOperation(), Digikam::MapViewModelHelper::pixmapFromRepresentativeIndex(), Digikam::LightTableThumbBar::removeItemByInfo(), Digikam::MetadataHubMngr::requestShutDown(), Digikam::ItemScanner::resolvedImageHistory(), Digikam::DatabaseTask::run(), Digikam::MetadataTask::run(), Digikam::CollectionScanner::scanFile(), Digikam::ScanController::scannedInfo(), Digikam::ItemPropertiesVersionsTab::setItem(), Digikam::ItemDescEditTab::setItem(), Digikam::ItemPreviewView::setItemInfo(), Digikam::LightTableView::setLeftItemInfo(), Digikam::StackedView::setPreviewItem(), Digikam::LightTableView::setRightItemInfo(), Digikam::MetadataHubMngr::slotApplyPending(), Digikam::DBInfoIface::slotDateTimeForUrl(), Digikam::ItemIconView::slotEditor(), Digikam::LightTableWindow::slotFileChanged(), Digikam::ItemIconView::slotImageFindSimilar(), Digikam::TableView::slotItemActivated(), Digikam::TagModificationHelper::slotMultipleFaceTagDel(), Digikam::ItemIconView::slotQueueMgr(), Digikam::VersionsWidget::slotViewCurrentChanged(), Digikam::ItemScanner::sortByProximity(), Digikam::ItemScanner::tagItemHistoryGraph(), and Digikam::ThumbsDbInfoProvider::thumbnailInfo().

◆ isRemoved()

◆ isVisible()

bool Digikam::ItemInfo::isVisible ( ) const

◆ latitudeNumber()

double Digikam::ItemInfo::latitudeNumber ( ) const

◆ longitudeNumber()

double Digikam::ItemInfo::longitudeNumber ( ) const

Retrieves the coordinates and the altitude. Returns 0 if hasCoordinates(), or hasAltitude resp, is false.

References imagePosition().

Referenced by Digikam::TableViewColumns::ColumnGeoProperties::data(), and Digikam::MapViewModelHelper::itemCoordinates().

◆ manualOrder()

◆ markDerivedFrom()

void Digikam::ItemInfo::markDerivedFrom ( const ItemInfo ancestorImage)

Add a relation to the database: This image is derived from the ancestorImage.

References Digikam::CoreDB::addImageRelation(), Digikam::CoreDbAccess::db(), Digikam::DatabaseRelation::DerivedFrom, id(), and isNull().

◆ metadataTemplate()

◆ modDateTime()

◆ name()

◆ numberOfGroupedImages()

◆ operator!=()

bool Digikam::ItemInfo::operator!= ( const ItemInfo info) const

◆ operator<()

bool Digikam::ItemInfo::operator< ( const ItemInfo info) const

◆ operator=()

ItemInfo & Digikam::ItemInfo::operator= ( const ItemInfo info)

◆ operator==()

bool Digikam::ItemInfo::operator== ( const ItemInfo info) const

◆ orientation()

◆ photoInfoContainer()

◆ pickLabel()

◆ rating()

◆ relationCloud()

QList< QPair< qlonglong, qlonglong > > Digikam::ItemInfo::relationCloud ( ) const

Returns the cloud of all directly or indirectly related images, derived images or ancestors, in from of "a derived from b" pairs.

References Digikam::CoreDbAccess::db(), Digikam::DatabaseRelation::DerivedFrom, and Digikam::CoreDB::getRelationCloud().

Referenced by Digikam::ItemHistoryGraph::fromInfo().

◆ removeAllTags()

void Digikam::ItemInfo::removeAllTags ( )

Remove all tags from the item (removes it from database)

References Digikam::CoreDbAccess::db(), Digikam::CoreDB::removeItemAllTags(), and tagIds().

◆ removeFromGroup()

void Digikam::ItemInfo::removeFromGroup ( )

This image is grouped behind another image: Remove this image from its group

References Digikam::CoreDbAccess::db(), Digikam::DatabaseRelation::Grouped, isGrouped(), and Digikam::CoreDB::removeAllImageRelationsFrom().

Referenced by addToGroup(), and Digikam::FileActionMngrDatabaseWorker::editGroup().

◆ removeMetadataTemplate()

void Digikam::ItemInfo::removeMetadataTemplate ( )

◆ removeTag()

◆ setColorLabel()

void Digikam::ItemInfo::setColorLabel ( int  value)

◆ setDateTime()

void Digikam::ItemInfo::setDateTime ( const QDateTime &  dateTime)

Set the date and time (write it to database)

Parameters
dateTimethe new date and time.

References Digikam::CoreDB::changeItemInformation(), Digikam::DatabaseFields::CreationDate, dateTime(), and Digikam::CoreDbAccess::db().

Referenced by Digikam::DBInfoIface::slotDateTimeForUrl(), and Digikam::DisjointMetadata::write().

◆ setItemHistory()

void Digikam::ItemInfo::setItemHistory ( const DImageHistory history)

◆ setManualOrder()

void Digikam::ItemInfo::setManualOrder ( qlonglong  value)

Set the manual sorting order for the item

References Digikam::CoreDbAccess::db(), Digikam::CoreDB::setItemManualOrder(), and value.

Referenced by Digikam::DigikamItemView::dragDropSort().

◆ setMetadataTemplate()

◆ setModDateTime()

void Digikam::ItemInfo::setModDateTime ( const QDateTime &  dateTime)

Set the modification date and time (write it to database)

Parameters
dateTimethe new modification date and time.

References dateTime(), Digikam::CoreDbAccess::db(), and Digikam::CoreDB::setItemModificationDate().

Referenced by Digikam::DBInfoIface::slotDateTimeForUrl().

◆ setName()

void Digikam::ItemInfo::setName ( const QString &  newName)

Set the name (write it to database)

Parameters
newNamethe new name.

References Digikam::ItemInfoStatic::cache(), Digikam::ItemInfoCache::cacheByName(), Digikam::CoreDbAccess::db(), and Digikam::CoreDB::renameItem().

◆ setOrientation()

◆ setPickLabel()

◆ setRating()

void Digikam::ItemInfo::setRating ( int  value)

◆ setTag()

◆ setUuid()

void Digikam::ItemInfo::setUuid ( const QString &  uuid)

◆ setVisible()

void Digikam::ItemInfo::setVisible ( bool  isVisible)

Set the visibility flag - triggers between Visible and Hidden

References Digikam::CoreDbAccess::db(), Digikam::DatabaseItem::Hidden, isVisible(), Digikam::CoreDB::setItemStatus(), and Digikam::DatabaseItem::Visible.

◆ similarityTo()

double Digikam::ItemInfo::similarityTo ( const qlonglong  imageId) const

◆ tagIds()

◆ thumbnailIdentifier() [1/2]

◆ thumbnailIdentifier() [2/2]

ThumbnailIdentifier Digikam::ItemInfo::thumbnailIdentifier ( qlonglong  id)
static

References thumbnailIdentifier().

◆ thumbnailInfo()

◆ title()

◆ unconfirmedFaceCount()

int Digikam::ItemInfo::unconfirmedFaceCount ( ) const
Returns
the number of Unconfirmed Faces in this item.

References RETURN_IF_CACHED, and Digikam::FaceTagsEditor::unconfirmedNameFaceTagsIfaces().

Referenced by Digikam::ItemSortSettings::compare().

◆ uniqueHash()

◆ uuid()

QString Digikam::ItemInfo::uuid ( ) const

◆ videoInfoContainer()

◆ videoMetadataContainer()

Friends And Related Function Documentation

◆ ItemInfoCache

friend class ItemInfoCache
friend

◆ ItemInfoList

friend class ItemInfoList
friend

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