libs/libkexiv2/libkexiv2
kexiv2xmp.cpp
Go to the documentation of this file.
171 KExiv2::MetaDataMap KExiv2::getXmpTagsDataList(const QStringList& xmpKeysFilter, bool invertSelection) const
384 bool KExiv2::setXmpTagString(const char* xmpTagName, const QString& value, bool setProgramName) const
468 KExiv2::AltLangMap KExiv2::getXmpTagStringListLangAlt(const char* xmpTagName, bool escapeCR) const
518 bool KExiv2::setXmpTagStringListLangAlt(const char* xmpTagName, const KExiv2::AltLangMap& values,
569 QString KExiv2::getXmpTagStringLangAlt(const char* xmpTagName, const QString& langAlt, bool escapeCR) const
891 for (QStringList::const_iterator it = oldEntries.constBegin(); it != oldEntries.constEnd(); ++it )
903 bool KExiv2::removeFromXmpTagStringBag(const char* xmpTagName, const QStringList& entriesToRemove,
913 for (QStringList::const_iterator it = currentEntries.constBegin(); it != currentEntries.constEnd(); ++it )
925 QVariant KExiv2::getXmpTagVariant(const char* xmpTagName, bool rationalAsListOfInts, bool stringEscapeCR) const
1156 bool KExiv2::setXmpSubCategories(const QStringList& newSubCategories, bool setProgramName) const
1158 return addToXmpTagStringBag("Xmp.photoshop.SupplementalCategories", newSubCategories, setProgramName);
1161 bool KExiv2::removeXmpSubCategories(const QStringList& subCategoriesToRemove, bool setProgramName)
1163 return removeFromXmpTagStringBag("Xmp.photoshop.SupplementalCategories", subCategoriesToRemove, setProgramName);
static bool canWriteXmp(const QString &filePath)
Return 'true' if Xmp can be written in file.
Definition: kexiv2xmp.cpp:34
QStringList getXmpTagStringSeq(const char *xmpTagName, bool escapeCR=true) const
Get a Xmp tag content like a sequence of strings.
Definition: kexiv2xmp.cpp:682
QStringList getXmpSubjects() const
Return a strings list of Xmp subjects from image.
Definition: kexiv2xmp.cpp:1166
Definition: kexiv2.h:115
QString fromAscii(const char *str, int size)
QStringList getXmpSubCategories() const
Return a strings list of Xmp sub-categories from image.
Definition: kexiv2xmp.cpp:1151
static bool registerXmpNameSpace(const QString &uri, const QString &prefix)
Register a namespace which Exiv2 doesn't know yet.
Definition: kexiv2xmp.cpp:1041
QByteArray getXmp() const
Return a Qt byte array copy of XMp container get from current image.
Definition: kexiv2xmp.cpp:101
QString & append(QChar ch)
QMap< QString, QString > AltLangMap
A map used to store a list of Alternative Language values.
Definition: kexiv2.h:129
Definition: kexiv2.h:116
KExiv2::AltLangMap getXmpTagStringListLangAlt(const char *xmpTagName, bool escapeCR=true) const
Get all redondant Alternative Language Xmp tags content like a map.
Definition: kexiv2xmp.cpp:468
const_iterator constBegin() const
bool setXmpTagString(const char *xmpTagName, const QString &value, bool setProgramName=true) const
Set a Xmp tag content using a string.
Definition: kexiv2xmp.cpp:384
QStringList getXmpTagStringBag(const char *xmpTagName, bool escapeCR) const
Get a Xmp tag content like a bag of strings.
Definition: kexiv2xmp.cpp:782
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool isEmpty() const
QStringList getXmpKeywords() const
Return a strings list of Xmp keywords from image.
Definition: kexiv2xmp.cpp:1136
bool setXmp(const QByteArray &data) const
Set the Xmp data using a Qt byte array.
Definition: kexiv2xmp.cpp:133
Definition: kexiv2.h:114
QString fromLocal8Bit(const char *str, int size)
void append(const T &value)
XmpTagType
Xmp tag types, used by setXmpTag, only first three types are used.
Definition: kexiv2.h:112
QString fromUtf8(const char *str, int size)
static QString detectLanguageAlt(const QString &value, QString &lang)
Language Alternative autodetection.
Definition: kexiv2comments.cpp:86
bool isEmpty() const
bool isEmpty() const
bool setXmpTagStringBag(const char *xmpTagName, const QStringList &bag, bool setProgramName=true) const
Set a Xmp tag content using the bag of strings 'bag'.
Definition: kexiv2xmp.cpp:833
QMap< QString, QString > MetaDataMap
A map used to store Tags Key and Tags Value.
Definition: kexiv2.h:123
const_iterator constEnd() const
const char * constData() const
int getXMPTagsListFromPrefix(const QString &pf, KExiv2::TagsMap &tagsMap) const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
T & first()
bool removeXmpSubjects(const QStringList &subjectsToRemove, bool setProgramName=true)
Remove those Xmp subjects that are listed in subjectsToRemove from the subjects in metadata...
Definition: kexiv2xmp.cpp:1176
bool removeXmpTag(const char *xmpTagName, bool setProgramName=true) const
Remove the Xmp tag 'xmpTagName' from Xmp metadata.
Definition: kexiv2xmp.cpp:1100
bool addToXmpTagStringBag(const char *xmpTagName, const QStringList &entriesToAdd, bool setProgramName) const
Set an Xmp tag content using a list of strings defined by the 'entriesToAdd' parameter.
Definition: kexiv2xmp.cpp:881
iterator end()
bool removeFromXmpTagStringBag(const char *xmpTagName, const QStringList &entriesToRemove, bool setProgramName) const
Remove those Xmp tag entries that are listed in entriesToRemove from the entries in metadata...
Definition: kexiv2xmp.cpp:903
iterator begin()
static bool unregisterXmpNameSpace(const QString &uri)
Unregister a previously registered custom namespace.
Definition: kexiv2xmp.cpp:1071
bool setXmpTagStringLangAlt(const char *xmpTagName, const QString &value, const QString &langAlt, bool setProgramName=true) const
Set a Xmp tag content using a string with an alternative language header.
Definition: kexiv2xmp.cpp:620
bool setXmpTagStringListLangAlt(const char *xmpTagName, const KExiv2::AltLangMap &values, bool setProgramName) const
Set an Alternative Language Xmp tag content using a map.
Definition: kexiv2xmp.cpp:518
QString getXmpTagStringLangAlt(const char *xmpTagName, const QString &langAlt, bool escapeCR) const
Get a Xmp tag content like a string set with an alternative language header 'langAlt' (like "fr-FR" f...
Definition: kexiv2xmp.cpp:569
QDateTime fromString(const QString &string, Qt::DateFormat format)
virtual bool setProgramId(bool on=true) const
Re-implement this method to set automatically the Program Name and Program Version information in Exi...
Definition: kexiv2.cpp:541
bool setXmpSubjects(const QStringList &newSubjects, bool setProgramName=true) const
Set Xmp subjects using a list of strings defined by 'newSubjects' parameter.
Definition: kexiv2xmp.cpp:1171
bool removeXmpSubCategories(const QStringList &categoriesToRemove, bool setProgramName=true)
Remove those Xmp sub-categories that are listed in categoriesToRemove from the sub-categories in meta...
Definition: kexiv2xmp.cpp:1161
QString getXmpTagTitle(const char *xmpTagName)
Return the Xmp Tag title or a null string.
Definition: kexiv2xmp.cpp:288
QString & replace(int position, int n, QChar after)
QString getXmpTagString(const char *xmpTagName, bool escapeCR=true) const
Get a Xmp tag content like a string.
Definition: kexiv2xmp.cpp:343
QMap< QString, QStringList > TagsMap
A map used to store Tags Key and a list of Tags properties :
Definition: kexiv2.h:136
QVariant getXmpTagVariant(const char *xmpTagName, bool rationalAsListOfInts=true, bool stringEscapeCR=true) const
Get an Xmp tag content as a QVariant.
Definition: kexiv2xmp.cpp:925
static void printExiv2ExceptionError(const QString &msg, Exiv2::Error &e)
Generic method to print the Exiv2 C++ Exception error message from 'e'.
===========================================================This file is a part of digiKam project htt...
bool removeXmpKeywords(const QStringList &keywordsToRemove, bool setProgramName=true)
Remove those Xmp keywords that are listed in keywordsToRemove from the keywords in metadata...
Definition: kexiv2xmp.cpp:1146
char * data()
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
bool setXmpSubCategories(const QStringList &newSubCategories, bool setProgramName=true) const
Set Xmp sub-categories using a list of strings defined by 'newSubCategories' parameter.
Definition: kexiv2xmp.cpp:1156
bool hasXmp() const
Return 'true' if metadata container in memory as Xmp.
Definition: kexiv2xmp.cpp:65
iterator insert(const Key &key, const T &value)
QString getXmpTagDescription(const char *xmpTagName)
Return the Xmp Tag description or a null string.
Definition: kexiv2xmp.cpp:316
bool isEmpty() const
KExiv2::MetaDataMap getXmpTagsDataList(const QStringList &xmpKeysFilter=QStringList(), bool invertSelection=false) const
Return a map of Xmp tags name/value found in metadata sorted by Xmp keys given by 'xmpKeysFilter'...
Definition: kexiv2xmp.cpp:171
const_iterator constEnd() const
const_iterator constBegin() const
bool setXmpTagStringSeq(const char *xmpTagName, const QStringList &seq, bool setProgramName=true) const
Set a Xmp tag content using the sequence of strings 'seq'.
Definition: kexiv2xmp.cpp:734
int size() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
bool setXmpKeywords(const QStringList &newKeywords, bool setProgramName=true) const
Set Xmp keywords using a list of strings defined by 'newKeywords' parameter.
Definition: kexiv2xmp.cpp:1141
iterator find(const Key &key)
===========================================================This file is a part of digiKam project htt...
QByteArray encodeName(const QString &fileName)
QByteArray toAscii() const
KExiv2::TagsMap getXmpTagsList() const
Return a map of all standard Xmp tags supported by Exiv2.
Definition: kexiv2xmp.cpp:1181
QByteArray toUtf8() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.