digiKam
Loading...
Searching...
No Matches
Digikam::ThumbnailInfo Class Reference

#include <thumbnailinfo.h>

+ Inheritance diagram for Digikam::ThumbnailInfo:

Public Member Functions

 ThumbnailInfo ()=default
 
 ~ThumbnailInfo ()=default
 

Public Attributes

QString customIdentifier
 
QString fileName
 
QString filePath
 
qlonglong fileSize = 0
 
qlonglong id = 0
 
bool isAccessible = false
 
QString mimeType
 
QDateTime modificationDate
 
int orientationHint = DMetadata::ORIENTATION_UNSPECIFIED
 
QString uniqueHash
 

Constructor & Destructor Documentation

◆ ThumbnailInfo()

Digikam::ThumbnailInfo::ThumbnailInfo ( )
default

◆ ~ThumbnailInfo()

Digikam::ThumbnailInfo::~ThumbnailInfo ( )
default

Member Data Documentation

◆ customIdentifier

QString Digikam::ThumbnailInfo::customIdentifier

A custom identifier, if neither filePath nor uniqueHash are applicable.

◆ fileName

QString Digikam::ThumbnailInfo::fileName

The file name (the name, not the directory)

Referenced by Digikam::ThumbnailCreator::fileThumbnailInfo(), and Digikam::ItemInfo::thumbnailInfo().

◆ filePath

◆ fileSize

qlonglong Digikam::ThumbnailInfo::fileSize = 0

◆ id

◆ isAccessible

bool Digikam::ThumbnailInfo::isAccessible = false

If the original file is at all accessible on disk. May be false if a file on a removable device is used.

Referenced by Digikam::ThumbnailCreator::fileThumbnailInfo(), and Digikam::ItemInfo::thumbnailInfo().

◆ mimeType

QString Digikam::ThumbnailInfo::mimeType

The mime type of the original file. Currently "image" or "video" otherwise empty.

Referenced by Digikam::ThumbnailCreator::fileThumbnailInfo(), and Digikam::ItemInfo::thumbnailInfo().

◆ modificationDate

QDateTime Digikam::ThumbnailInfo::modificationDate

The modification date of the original file. Thumbnail will be regenerated if thumb's modification date is older than this.

Referenced by Digikam::ThumbnailCreator::fileThumbnailInfo(), and Digikam::ItemInfo::thumbnailInfo().

◆ orientationHint

int Digikam::ThumbnailInfo::orientationHint = DMetadata::ORIENTATION_UNSPECIFIED

Gives a hint at the orientation of the image. This can be used to supersede the Exif information in the file. Will not be used if DMetadata::ORIENTATION_UNSPECIFIED (default value)

Referenced by Digikam::ItemInfo::thumbnailInfo().

◆ uniqueHash

QString Digikam::ThumbnailInfo::uniqueHash

If available, the uniqueHash + fileSize pair for identification of the original file by content.

Referenced by Digikam::ItemInfo::thumbnailInfo().


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