digiKam
|
Public Types | |
enum | Type { InvalidType = 0 , Original = 1 << 0 , Intermediate = 1 << 1 , Source = 1 << 2 , Current = 1 << 3 } |
Public Member Functions | |
QDateTime | creationDate () const |
QString | fileName () const |
If a file on disk is referenced: Returns the file name (without folder) More... | |
QString | filePath () const |
If a file on disk is referenced: Returns the full file path (folder + filename) More... | |
qlonglong | fileSize () const |
bool | hasCreationDate () const |
bool | hasFileName () const |
bool | hasFileOnDisk () const |
bool | hasUniqueHashIdentifier () const |
bool | hasUuid () const |
HistoryImageId () | |
Creates an invalid HistoryImageId. More... | |
HistoryImageId (const QString &uuid, Type type=Current) | |
Creates an id with the given UUID and type. More... | |
bool | isCurrentFile () const |
bool | isIntermediateFile () const |
bool | isOriginalFile () const |
bool | isSourceFile () const |
bool | isValid () const |
A valid id needs at least a valid type and a UUID or a filename. More... | |
bool | operator== (const HistoryImageId &other) const |
QString | originalUuid () const |
QString | path () const |
If a file on disk is referenced: Returns the path, without filename, with a trailing slash. More... | |
void | setCreationDate (const QDateTime &creationDate) |
void | setFileName (const QString &fileName) |
void | setPath (const QString &path) |
void | setPathOnDisk (const QString &filePath) |
void | setType (HistoryImageId::Type type) |
void | setUniqueHash (const QString &uniqueHash, qlonglong fileSize) |
void | setUuid (const QString &uuid) |
Type | type () const |
QString | uniqueHash () const |
QString | uuid () const |
Public Attributes | |
QDateTime | m_creationDate |
The creationDate of the original image. More... | |
QString | m_fileName |
The filename of the referred file. More... | |
QString | m_filePath |
The path of the referred file (NOTE: without file name!, including trailing slash) More... | |
qlonglong | m_fileSize |
The file size of the referred file. More... | |
QString | m_originalUUID |
Type | m_type |
Type of this History Image Id. More... | |
QString | m_uniqueHash |
The uniqueHash of the referred file. More... | |
QString | m_uuid |
Digikam::HistoryImageId::HistoryImageId | ( | ) |
Creates an invalid HistoryImageId.
Note: In this class, the Type is used as a simple enum, but it is also prepared for usage as flags.
Creates an id with the given UUID and type.
QDateTime Digikam::HistoryImageId::creationDate | ( | ) | const |
References m_creationDate.
Referenced by setCreationDate().
QString Digikam::HistoryImageId::fileName | ( | ) | const |
If a file on disk is referenced: Returns the file name (without folder)
References m_fileName.
Referenced by setFileName().
QString Digikam::HistoryImageId::filePath | ( | ) | const |
If a file on disk is referenced: Returns the full file path (folder + filename)
References m_fileName, and m_filePath.
Referenced by Digikam::ItemScanner::resolveHistoryImageId(), and setPathOnDisk().
qlonglong Digikam::HistoryImageId::fileSize | ( | ) | const |
References m_fileSize.
Referenced by setUniqueHash().
bool Digikam::HistoryImageId::hasCreationDate | ( | ) | const |
References m_creationDate.
Referenced by Digikam::ItemScanner::resolveHistoryImageId(), and Digikam::ItemScanner::sameReferredImage().
bool Digikam::HistoryImageId::hasFileName | ( | ) | const |
References m_fileName.
Referenced by Digikam::ItemScanner::resolveHistoryImageId(), and Digikam::ItemScanner::sameReferredImage().
bool Digikam::HistoryImageId::hasFileOnDisk | ( | ) | const |
References m_fileName, and m_filePath.
Referenced by Digikam::ItemScanner::resolveHistoryImageId(), and Digikam::ItemScanner::sameReferredImage().
bool Digikam::HistoryImageId::hasUniqueHashIdentifier | ( | ) | const |
References m_fileSize, and m_uniqueHash.
Referenced by Digikam::ItemScanner::resolveHistoryImageId(), and Digikam::ItemScanner::sameReferredImage().
bool Digikam::HistoryImageId::hasUuid | ( | ) | const |
|
inline |
Referenced by Digikam::DImageHistory::toXml().
|
inline |
|
inline |
Referenced by Digikam::DImageHistory::fromXml(), and Digikam::DImageHistory::toXml().
|
inline |
Referenced by Digikam::DImageHistory::toXml().
bool Digikam::HistoryImageId::isValid | ( | ) | const |
A valid id needs at least a valid type and a UUID or a filename.
References InvalidType, m_fileName, m_type, and m_uuid.
Referenced by Digikam::ItemHistoryGraph::addHistory(), Digikam::ItemHistoryGraphData::addVertex(), Digikam::DImageHistory::fromXml(), Digikam::ItemScanner::sameReferredImage(), and Digikam::DImageHistory::toXml().
bool Digikam::HistoryImageId::operator== | ( | const HistoryImageId & | other | ) | const |
References m_creationDate, m_fileName, m_filePath, m_fileSize, m_originalUUID, m_type, m_uniqueHash, and m_uuid.
QString Digikam::HistoryImageId::originalUuid | ( | ) | const |
References m_originalUUID.
QString Digikam::HistoryImageId::path | ( | ) | const |
If a file on disk is referenced: Returns the path, without filename, with a trailing slash.
References m_filePath.
Referenced by Digikam::ItemScanner::resolveHistoryImageId(), and setPath().
void Digikam::HistoryImageId::setCreationDate | ( | const QDateTime & | creationDate | ) |
References creationDate(), and m_creationDate.
Referenced by Digikam::DImageHistory::fromXml().
void Digikam::HistoryImageId::setFileName | ( | const QString & | fileName | ) |
References fileName(), and m_fileName.
Referenced by Digikam::DImageHistory::fromXml().
void Digikam::HistoryImageId::setPath | ( | const QString & | path | ) |
References m_filePath, and path().
Referenced by Digikam::DImageHistory::fromXml().
void Digikam::HistoryImageId::setPathOnDisk | ( | const QString & | filePath | ) |
References filePath(), and m_filePath.
void Digikam::HistoryImageId::setType | ( | HistoryImageId::Type | type | ) |
References m_type, and type().
Referenced by Digikam::ItemScanner::resolvedImageHistory().
void Digikam::HistoryImageId::setUniqueHash | ( | const QString & | uniqueHash, |
qlonglong | fileSize | ||
) |
References fileSize(), m_fileSize, m_uniqueHash, and uniqueHash().
Referenced by Digikam::DImageHistory::fromXml().
HistoryImageId::Type Digikam::HistoryImageId::type | ( | ) | const |
QString Digikam::HistoryImageId::uniqueHash | ( | ) | const |
References m_uniqueHash.
Referenced by setUniqueHash().
QString Digikam::HistoryImageId::uuid | ( | ) | const |
References m_uuid.
Referenced by Digikam::EditorCore::ensureHasCurrentUuid(), and setUuid().
QDateTime Digikam::HistoryImageId::m_creationDate |
The creationDate of the original image.
Referenced by creationDate(), Digikam::DImageHistory::fromXml(), hasCreationDate(), operator==(), Digikam::ItemScanner::resolveHistoryImageId(), Digikam::ItemScanner::sameReferredImage(), setCreationDate(), and Digikam::DImageHistory::toXml().
QString Digikam::HistoryImageId::m_fileName |
The filename of the referred file.
Referenced by fileName(), filePath(), hasFileName(), hasFileOnDisk(), isValid(), operator==(), Digikam::ItemScanner::resolveHistoryImageId(), Digikam::ItemScanner::sameReferredImage(), setFileName(), and Digikam::DImageHistory::toXml().
QString Digikam::HistoryImageId::m_filePath |
The path of the referred file (NOTE: without file name!, including trailing slash)
Referenced by filePath(), hasFileOnDisk(), operator==(), path(), Digikam::ItemScanner::sameReferredImage(), setPath(), setPathOnDisk(), and Digikam::DImageHistory::toXml().
qlonglong Digikam::HistoryImageId::m_fileSize |
The file size of the referred file.
Referenced by fileSize(), hasUniqueHashIdentifier(), operator==(), Digikam::ItemScanner::resolveHistoryImageId(), Digikam::ItemScanner::sameReferredImage(), setUniqueHash(), and Digikam::DImageHistory::toXml().
QString Digikam::HistoryImageId::m_originalUUID |
A unique identifier designating the original image from which the referred image was created. Typically, this is a RAW or JPEG created by the camera in the moment of taking the photograph.
Referenced by Digikam::DImageHistory::fromXml(), operator==(), and originalUuid().
Type Digikam::HistoryImageId::m_type |
Type of this History Image Id.
Referenced by Digikam::HistoryVertexProperties::alwaysMarkedAs(), Digikam::DImageHistory::fromXml(), isValid(), Digikam::HistoryVertexProperties::markedAs(), operator==(), setType(), and type().
QString Digikam::HistoryImageId::m_uniqueHash |
The uniqueHash of the referred file.
Referenced by hasUniqueHashIdentifier(), operator==(), Digikam::ItemScanner::resolveHistoryImageId(), Digikam::ItemScanner::sameReferredImage(), setUniqueHash(), Digikam::DImageHistory::toXml(), and uniqueHash().
QString Digikam::HistoryImageId::m_uuid |
A unique identifier for the referred file. This id shall be changed each time the image is edited.
Referenced by Digikam::DImageHistory::fromXml(), hasUuid(), isValid(), Digikam::HistoryVertexProperties::operator==(), operator==(), Digikam::ItemScanner::resolveHistoryImageId(), Digikam::ItemScanner::sameReferredImage(), setUuid(), Digikam::DImageHistory::toXml(), and uuid().