digiKam
Digikam::MetaEngine::Private Class Reference

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::Privatedata
 
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
 

Constructor & Destructor Documentation

◆ Private()

Digikam::MetaEngine::Private::Private ( )
explicit

◆ ~Private()

Digikam::MetaEngine::Private::~Private ( )

Member Function Documentation

◆ convertCommentValue()

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().

◆ copyPrivateData()

◆ detectEncodingAndDecode()

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().

◆ exifMetadata() [1/2]

Exiv2::ExifData & Digikam::MetaEngine::Private::exifMetadata ( )

◆ exifMetadata() [2/2]

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().

◆ extractIptcTagString()

QString Digikam::MetaEngine::Private::extractIptcTagString ( const Exiv2::IptcData &  iptcData,
const Exiv2::Iptcdatum &  iptcTag 
) const

◆ getXMPTagsListFromPrefix()

int Digikam::MetaEngine::Private::getXMPTagsListFromPrefix ( const QString &  pf,
MetaEngine::TagsMap tagsMap 
) const

◆ iptcMetadata() [1/2]

Exiv2::IptcData & Digikam::MetaEngine::Private::iptcMetadata ( )

◆ iptcMetadata() [2/2]

◆ isUtf8()

bool Digikam::MetaEngine::Private::isUtf8 ( const char *const  buffer) const

UTF8 autodetection from a string.

References F, I, T, and X.

◆ itemComments() [1/2]

std::string & Digikam::MetaEngine::Private::itemComments ( )

◆ itemComments() [2/2]

◆ printExiv2ExceptionError()

void Digikam::MetaEngine::Private::printExiv2ExceptionError ( const QString &  msg,
Exiv2::AnyError &  e 
)
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().

◆ printExiv2MessageHandler()

void Digikam::MetaEngine::Private::printExiv2MessageHandler ( int  lvl,
const char *  msg 
)
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().

◆ saveOperations()

bool Digikam::MetaEngine::Private::saveOperations ( const QFileInfo &  finfo,
Exiv2::Image::AutoPtr  image 
) const

◆ saveToFile()

bool Digikam::MetaEngine::Private::saveToFile ( const QFileInfo &  finfo) const

◆ saveToXMPSidecar()

bool Digikam::MetaEngine::Private::saveToXMPSidecar ( const QFileInfo &  finfo) const

Member Data Documentation

◆ data

QExplicitlySharedDataPointer<MetaEngineData::Private> Digikam::MetaEngine::Private::data

◆ filePath

◆ loadedFromSidecar

bool Digikam::MetaEngine::Private::loadedFromSidecar

XMP, and parts of EXIF/IPTC, were loaded from an XMP sidecar file.

◆ metadataWritingMode

int Digikam::MetaEngine::Private::metadataWritingMode

◆ mimeType

QString Digikam::MetaEngine::Private::mimeType

◆ pixelSize

QSize Digikam::MetaEngine::Private::pixelSize

◆ updateFileTimeStamp

bool Digikam::MetaEngine::Private::updateFileTimeStamp

◆ useCompatibleFileName

bool Digikam::MetaEngine::Private::useCompatibleFileName

◆ useXMPSidecar4Reading

◆ writeDngFiles

bool Digikam::MetaEngine::Private::writeDngFiles

◆ writeRawFiles

bool Digikam::MetaEngine::Private::writeRawFiles

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