digiKam
|
Public Member Functions | |
QString | convertCommentValue (const Exiv2::Exifdatum &exifDatum) const |
void | copyPrivateData (const Private *const other) |
QString | detectEncodingAndDecode (const std::string &value) const |
Exiv2::ExifData & | exifMetadata () |
const Exiv2::ExifData & | exifMetadata () const |
QString | extractIptcTagString (const Exiv2::IptcData &iptcData, const Exiv2::Iptcdatum &iptcTag) const |
int | getXMPTagsListFromPrefix (const QString &pf, MetaEngine::TagsMap &tagsMap) const |
Exiv2::IptcData & | iptcMetadata () |
const Exiv2::IptcData & | iptcMetadata () const |
bool | isUtf8 (const char *const buffer) const |
std::string & | itemComments () |
const std::string & | itemComments () const |
Private () | |
bool | saveOperations (const QFileInfo &finfo, Exiv2::Image::AutoPtr image) const |
bool | saveToFile (const QFileInfo &finfo) const |
bool | saveToXMPSidecar (const QFileInfo &finfo) const |
~Private () | |
Static Public Member Functions | |
static void | printExiv2ExceptionError (const QString &msg, Exiv2::AnyError &e) |
static void | printExiv2MessageHandler (int lvl, const char *msg) |
Public Attributes | |
QExplicitlySharedDataPointer< MetaEngineData::Private > | data |
QString | filePath |
bool | loadedFromSidecar |
XMP, and parts of EXIF/IPTC, were loaded from an XMP sidecar file. More... | |
int | metadataWritingMode |
A mode from MetadataWritingMode enum. More... | |
QString | mimeType |
QSize | pixelSize |
bool | updateFileTimeStamp |
bool | useCompatibleFileName |
bool | useXMPSidecar4Reading |
bool | writeDngFiles |
bool | writeRawFiles |
|
explicit |
References printExiv2MessageHandler(), and Digikam::s_metaEngineMutex.
Digikam::MetaEngine::Private::~Private | ( | ) |
QString Digikam::MetaEngine::Private::convertCommentValue | ( | const Exiv2::Exifdatum & | exifDatum | ) | const |
Wrapper method to convert a Comments content to a QString.
References Digikam::s_metaEngineMutex.
Referenced by Digikam::MetaEngine::getExifComment(), and Digikam::MetaEngine::getExifTagsDataList().
void Digikam::MetaEngine::Private::copyPrivateData | ( | const Private *const | other | ) |
References Digikam::MetaEngine::data(), data, filePath, Digikam::MetaEngine::metadataWritingMode(), metadataWritingMode, Digikam::s_metaEngineMutex, Digikam::MetaEngine::updateFileTimeStamp(), updateFileTimeStamp, Digikam::MetaEngine::useCompatibleFileName(), useCompatibleFileName, Digikam::MetaEngine::useXMPSidecar4Reading(), useXMPSidecar4Reading, Digikam::MetaEngine::writeDngFiles(), writeDngFiles, Digikam::MetaEngine::writeRawFiles(), and writeRawFiles.
QString Digikam::MetaEngine::Private::detectEncodingAndDecode | ( | const std::string & | value | ) | const |
Charset autodetection to convert a string to a QString.
References value.
Referenced by Digikam::MetaEngine::getCommentsDecoded().
Exiv2::ExifData & Digikam::MetaEngine::Private::exifMetadata | ( | ) |
References Digikam::MetaEngine::data().
const Exiv2::ExifData & Digikam::MetaEngine::Private::exifMetadata | ( | ) | const |
References Digikam::MetaEngine::data().
Referenced by Digikam::MetaEngine::clearExif(), Digikam::MetaEngine::exportChanges(), Digikam::MetaEngine::getDigitizationDateTime(), Digikam::MetaEngine::getExifComment(), Digikam::MetaEngine::getExifEncoded(), Digikam::MetaEngine::getExifTagData(), Digikam::MetaEngine::getExifTagLong(), Digikam::MetaEngine::getExifTagRational(), Digikam::MetaEngine::getExifTagsDataList(), Digikam::MetaEngine::getExifTagString(), Digikam::MetaEngine::getExifTagVariant(), Digikam::MetaEngine::getExifThumbnail(), Digikam::MetaEngine::getGPSAltitude(), Digikam::MetaEngine::getGPSLatitudeNumber(), Digikam::MetaEngine::getGPSLongitudeNumber(), Digikam::MetaEngine::getItemDateTime(), Digikam::MetaEngine::getItemDimensions(), Digikam::MetaEngine::getItemOrientation(), Digikam::MetaEngine::hasExif(), Digikam::MetaEngine::initializeGPSInfo(), Digikam::MetaEngine::load(), Digikam::MetaEngine::loadFromData(), Digikam::MetaEngine::removeExifTag(), Digikam::MetaEngine::removeExifThumbnail(), Digikam::MetaEngine::removeGPSInfo(), Digikam::MetaEngine::setExif(), Digikam::MetaEngine::setExifComment(), Digikam::MetaEngine::setExifTagData(), Digikam::MetaEngine::setExifTagLong(), Digikam::MetaEngine::setExifTagRational(), Digikam::MetaEngine::setExifTagString(), Digikam::MetaEngine::setExifTagVariant(), Digikam::MetaEngine::setExifThumbnail(), Digikam::MetaEngine::setGPSInfo(), Digikam::MetaEngine::setImageDateTime(), Digikam::MetaEngine::setItemColorWorkSpace(), Digikam::MetaEngine::setItemDimensions(), Digikam::MetaEngine::setItemOrientation(), Digikam::MetaEngine::setItemProgramId(), and Digikam::MetaEngine::setTiffThumbnail().
QString Digikam::MetaEngine::Private::extractIptcTagString | ( | const Exiv2::IptcData & | iptcData, |
const Exiv2::Iptcdatum & | iptcTag | ||
) | const |
Helper method to decode IPTC tag string contents following characters encoding preset.
References value.
Referenced by Digikam::MetaEngine::getIptcKeywords(), Digikam::MetaEngine::getIptcSubCategories(), Digikam::MetaEngine::getIptcSubjects(), Digikam::MetaEngine::getIptcTagsDataList(), Digikam::MetaEngine::getIptcTagsStringList(), and Digikam::MetaEngine::getIptcTagString().
int Digikam::MetaEngine::Private::getXMPTagsListFromPrefix | ( | const QString & | pf, |
MetaEngine::TagsMap & | tagsMap | ||
) | const |
References Digikam::s_metaEngineMutex.
Referenced by Digikam::MetaEngine::getXmpTagsList().
Exiv2::IptcData & Digikam::MetaEngine::Private::iptcMetadata | ( | ) |
References Digikam::MetaEngine::data().
const Exiv2::IptcData & Digikam::MetaEngine::Private::iptcMetadata | ( | ) | const |
References Digikam::MetaEngine::data().
Referenced by Digikam::MetaEngine::clearIptc(), Digikam::MetaEngine::exportChanges(), Digikam::MetaEngine::getDigitizationDateTime(), Digikam::MetaEngine::getIptc(), Digikam::MetaEngine::getIptcKeywords(), Digikam::MetaEngine::getIptcSubCategories(), Digikam::MetaEngine::getIptcSubjects(), Digikam::MetaEngine::getIptcTagData(), Digikam::MetaEngine::getIptcTagsDataList(), Digikam::MetaEngine::getIptcTagsStringList(), Digikam::MetaEngine::getIptcTagString(), Digikam::MetaEngine::getItemDateTime(), Digikam::MetaEngine::hasIptc(), Digikam::MetaEngine::load(), Digikam::MetaEngine::loadFromData(), Digikam::MetaEngine::removeIptcTag(), Digikam::MetaEngine::setImageDateTime(), Digikam::MetaEngine::setIptc(), Digikam::MetaEngine::setIptcKeywords(), Digikam::MetaEngine::setIptcSubCategories(), Digikam::MetaEngine::setIptcSubjects(), Digikam::MetaEngine::setIptcTagData(), Digikam::MetaEngine::setIptcTagsStringList(), Digikam::MetaEngine::setIptcTagString(), Digikam::MetaEngine::setItemPreview(), and Digikam::MetaEngine::setItemProgramId().
bool Digikam::MetaEngine::Private::isUtf8 | ( | const char *const | buffer | ) | const |
std::string & Digikam::MetaEngine::Private::itemComments | ( | ) |
References Digikam::MetaEngine::data().
const std::string & Digikam::MetaEngine::Private::itemComments | ( | ) | const |
|
static |
Generic method to print the Exiv2 C++ Exception error message from 'e'. 'msg' string is printed using qDebug rules.
Referenced by Digikam::MetaEngine::clearExif(), Digikam::MetaEngine::clearIptc(), Digikam::MetaEngine::clearXmp(), Digikam::MetaEngine::createExifUserStringFromValue(), Digikam::MetaEnginePreviews::data(), Digikam::MetaEngine::exportChanges(), Digikam::MetaEngine::getDigitizationDateTime(), Digikam::MetaEngine::getExifComment(), Digikam::MetaEngine::getExifEncoded(), Digikam::MetaEngine::getExifTagData(), Digikam::MetaEngine::getExifTagDescription(), Digikam::MetaEngine::getExifTagLong(), Digikam::MetaEngine::getExifTagRational(), Digikam::MetaEngine::getExifTagsDataList(), Digikam::MetaEngine::getExifTagString(), Digikam::MetaEngine::getExifTagTitle(), Digikam::MetaEngine::getExifTagVariant(), Digikam::MetaEngine::getExifThumbnail(), Digikam::MetaEngine::getGPSAltitude(), Digikam::MetaEngine::getGPSLatitudeNumber(), Digikam::MetaEngine::getGPSLongitudeNumber(), Digikam::MetaEngine::getIptc(), Digikam::MetaEngine::getIptcKeywords(), Digikam::MetaEngine::getIptcSubCategories(), Digikam::MetaEngine::getIptcSubjects(), Digikam::MetaEngine::getIptcTagData(), Digikam::MetaEngine::getIptcTagDescription(), Digikam::MetaEngine::getIptcTagsDataList(), Digikam::MetaEngine::getIptcTagsList(), Digikam::MetaEngine::getIptcTagsStringList(), Digikam::MetaEngine::getIptcTagString(), Digikam::MetaEngine::getIptcTagTitle(), Digikam::MetaEngine::getItemDateTime(), Digikam::MetaEngine::getItemDimensions(), Digikam::MetaEngine::getItemOrientation(), Digikam::MetaEngine::getItemPreview(), Digikam::MetaEngine::getMakernoteTagsList(), Digikam::MetaEngine::getStdExifTagsList(), Digikam::MetaEngine::getXmp(), Digikam::MetaEngine::getXmpTagDescription(), Digikam::MetaEngine::getXmpTagsDataList(), Digikam::MetaEngine::getXmpTagString(), Digikam::MetaEngine::getXmpTagStringBag(), Digikam::MetaEngine::getXmpTagStringLangAlt(), Digikam::MetaEngine::getXmpTagStringListLangAlt(), Digikam::MetaEngine::getXmpTagStringSeq(), Digikam::MetaEngine::getXmpTagTitle(), Digikam::MetaEngine::getXmpTagVariant(), Digikam::MetaEngine::initializeGPSInfo(), Digikam::MetaEngine::load(), Digikam::MetaEngine::loadFromData(), Digikam::MetaEngine::loadFromSidecarAndMerge(), Digikam::MetaEnginePreviews::MetaEnginePreviews(), Digikam::MetaEngine::registerXmpNameSpace(), Digikam::MetaEngine::removeExifTag(), Digikam::MetaEngine::removeExifThumbnail(), Digikam::MetaEngine::removeGPSInfo(), Digikam::MetaEngine::removeIptcTag(), Digikam::MetaEngine::removeXmpTag(), Digikam::MetaEngine::setExif(), Digikam::MetaEngine::setExifComment(), Digikam::MetaEngine::setExifTagData(), Digikam::MetaEngine::setExifTagLong(), Digikam::MetaEngine::setExifTagRational(), Digikam::MetaEngine::setExifTagString(), Digikam::MetaEngine::setExifTagVariant(), Digikam::MetaEngine::setExifThumbnail(), Digikam::MetaEngine::setGPSInfo(), Digikam::MetaEngine::setImageDateTime(), Digikam::MetaEngine::setIptc(), Digikam::MetaEngine::setIptcKeywords(), Digikam::MetaEngine::setIptcSubCategories(), Digikam::MetaEngine::setIptcSubjects(), Digikam::MetaEngine::setIptcTagData(), Digikam::MetaEngine::setIptcTagsStringList(), Digikam::MetaEngine::setIptcTagString(), Digikam::MetaEngine::setItemColorWorkSpace(), Digikam::MetaEngine::setItemDimensions(), Digikam::MetaEngine::setItemOrientation(), Digikam::MetaEngine::setItemPreview(), Digikam::MetaEngine::setItemProgramId(), Digikam::MetaEngine::setTiffThumbnail(), Digikam::MetaEngine::setXmp(), Digikam::MetaEngine::setXmpTagString(), Digikam::MetaEngine::setXmpTagStringBag(), Digikam::MetaEngine::setXmpTagStringLangAlt(), Digikam::MetaEngine::setXmpTagStringListLangAlt(), Digikam::MetaEngine::setXmpTagStringSeq(), and Digikam::MetaEngine::unregisterXmpNameSpace().
|
static |
Generic method to print debug message from Exiv2. 'msg' string is printed using qDebug rules. 'lvl' is the debug level of Exiv2 message.
Referenced by Private().
bool Digikam::MetaEngine::Private::saveOperations | ( | const QFileInfo & | finfo, |
Exiv2::Image::AutoPtr | image | ||
) | const |
References Digikam::s_metaEngineMutex, and Digikam::MetaEngine::updateFileTimeStamp().
bool Digikam::MetaEngine::Private::saveToFile | ( | const QFileInfo & | finfo | ) | const |
References AutoPtr, Digikam::s_metaEngineMutex, Digikam::MetaEngine::writeDngFiles(), and Digikam::MetaEngine::writeRawFiles().
Referenced by Digikam::MetaEngine::save().
bool Digikam::MetaEngine::Private::saveToXMPSidecar | ( | const QFileInfo & | finfo | ) | const |
References AutoPtr, Digikam::s_metaEngineMutex, Digikam::MetaEngine::sidecarFilePathForFile(), and Digikam::MetaEngine::useCompatibleFileName().
Referenced by Digikam::MetaEngine::save().
QExplicitlySharedDataPointer<MetaEngineData::Private> Digikam::MetaEngine::Private::data |
Referenced by copyPrivateData(), Digikam::MetaEngine::data(), and Digikam::MetaEngine::setData().
QString Digikam::MetaEngine::Private::filePath |
Referenced by Digikam::MetaEngine::applyChanges(), copyPrivateData(), Digikam::MetaEngine::exportChanges(), Digikam::MetaEngine::getExifEncoded(), Digikam::MetaEngine::getFilePath(), Digikam::MetaEngine::getIptc(), Digikam::MetaEngine::getXmp(), Digikam::MetaEngine::load(), Digikam::MetaEngine::loadFromData(), Digikam::MetaEngine::loadFromSidecarAndMerge(), Digikam::MetaEngine::setExif(), Digikam::MetaEngine::setFilePath(), Digikam::MetaEngine::setIptc(), Digikam::MetaEngine::setIptcKeywords(), Digikam::MetaEngine::setIptcTagsStringList(), and Digikam::MetaEngine::setXmp().
bool Digikam::MetaEngine::Private::loadedFromSidecar |
XMP, and parts of EXIF/IPTC, were loaded from an XMP sidecar file.
int Digikam::MetaEngine::Private::metadataWritingMode |
A mode from MetadataWritingMode enum.
Referenced by copyPrivateData(), Digikam::MetaEngine::metadataWritingMode(), Digikam::MetaEngine::save(), and Digikam::MetaEngine::setMetadataWritingMode().
QString Digikam::MetaEngine::Private::mimeType |
QSize Digikam::MetaEngine::Private::pixelSize |
bool Digikam::MetaEngine::Private::updateFileTimeStamp |
bool Digikam::MetaEngine::Private::useCompatibleFileName |
bool Digikam::MetaEngine::Private::useXMPSidecar4Reading |
bool Digikam::MetaEngine::Private::writeDngFiles |
Referenced by copyPrivateData(), Digikam::MetaEngine::setWriteDngFiles(), and Digikam::MetaEngine::writeDngFiles().
bool Digikam::MetaEngine::Private::writeRawFiles |
Referenced by copyPrivateData(), Digikam::MetaEngine::setWriteRawFiles(), and Digikam::MetaEngine::writeRawFiles().