libs/libkexiv2/libkexiv2
kexiv2xmp.cpp
Go to the documentation of this file.
155 KExiv2::MetaDataMap KExiv2::getXmpTagsDataList(const QStringList& xmpKeysFilter, bool invertSelection) const
331 bool KExiv2::setXmpTagString(const char* xmpTagName, const QString& value, bool setProgramName) const
407 KExiv2::AltLangMap KExiv2::getXmpTagStringListLangAlt(const char* xmpTagName, bool escapeCR) const
453 bool KExiv2::setXmpTagStringListLangAlt(const char* xmpTagName, const KExiv2::AltLangMap& values,
500 QString KExiv2::getXmpTagStringLangAlt(const char* xmpTagName, const QString& langAlt, bool escapeCR) const
798 for (QStringList::const_iterator it = oldEntries.constBegin(); it != oldEntries.constEnd(); ++it )
810 bool KExiv2::removeFromXmpTagStringBag(const char* xmpTagName, const QStringList& entriesToRemove,
820 for (QStringList::const_iterator it = currentEntries.constBegin(); it != currentEntries.constEnd(); ++it )
832 QVariant KExiv2::getXmpTagVariant(const char* xmpTagName, bool rationalAsListOfInts, bool stringEscapeCR) const
1047 bool KExiv2::setXmpSubCategories(const QStringList& newSubCategories, bool setProgramName) const
1049 return addToXmpTagStringBag("Xmp.photoshop.SupplementalCategories", newSubCategories, setProgramName);
1052 bool KExiv2::removeXmpSubCategories(const QStringList& subCategoriesToRemove, bool setProgramName)
1054 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:605
QStringList getXmpSubjects() const
Return a strings list of Xmp subjects from image.
Definition: kexiv2xmp.cpp:1057
Definition: kexiv2.h:115
QStringList getXmpSubCategories() const
Return a strings list of Xmp sub-categories from image.
Definition: kexiv2xmp.cpp:1042
static bool registerXmpNameSpace(const QString &uri, const QString &prefix)
Register a namespace which Exiv2 doesn't know yet.
Definition: kexiv2xmp.cpp:944
QByteArray getXmp() const
Return a Qt byte array copy of XMp container get from current image.
Definition: kexiv2xmp.cpp:93
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:407
bool setXmpTagString(const char *xmpTagName, const QString &value, bool setProgramName=true) const
Set a Xmp tag content using a string.
Definition: kexiv2xmp.cpp:331
QStringList getXmpTagStringBag(const char *xmpTagName, bool escapeCR) const
Get a Xmp tag content like a bag of strings.
Definition: kexiv2xmp.cpp:697
QStringList getXmpKeywords() const
Return a strings list of Xmp keywords from image.
Definition: kexiv2xmp.cpp:1027
bool setXmp(const QByteArray &data) const
Set the Xmp data using a Qt byte array.
Definition: kexiv2xmp.cpp:121
Definition: kexiv2.h:114
XmpTagType
Xmp tag types, used by setXmpTag, only first three types are used.
Definition: kexiv2.h:112
static QString detectLanguageAlt(const QString &value, QString &lang)
Language Alternative autodetection.
Definition: kexiv2comments.cpp:82
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:744
QMap< QString, QString > MetaDataMap
A map used to store Tags Key and Tags Value.
Definition: kexiv2.h:123
int getXMPTagsListFromPrefix(const QString &pf, KExiv2::TagsMap &tagsMap) const
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:1067
bool removeXmpTag(const char *xmpTagName, bool setProgramName=true) const
Remove the Xmp tag 'xmpTagName' from Xmp metadata.
Definition: kexiv2xmp.cpp:995
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:788
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:810
static bool unregisterXmpNameSpace(const QString &uri)
Unregister a previously registered custom namespace.
Definition: kexiv2xmp.cpp:970
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:547
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:453
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:500
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:526
bool setXmpSubjects(const QStringList &newSubjects, bool setProgramName=true) const
Set Xmp subjects using a list of strings defined by 'newSubjects' parameter.
Definition: kexiv2xmp.cpp:1062
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:1052
QString getXmpTagTitle(const char *xmpTagName)
Return the Xmp Tag title or a null string.
Definition: kexiv2xmp.cpp:247
QString getXmpTagString(const char *xmpTagName, bool escapeCR=true) const
Get a Xmp tag content like a string.
Definition: kexiv2xmp.cpp:294
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:832
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:1037
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:1047
bool hasXmp() const
Return 'true' if metadata container in memory as Xmp.
Definition: kexiv2xmp.cpp:61
QString getXmpTagDescription(const char *xmpTagName)
Return the Xmp Tag description or a null string.
Definition: kexiv2xmp.cpp:271
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:653
KExiv2::MetaDataMap getXmpTagsDataList(const QStringList &xmpKeysFilter, 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:155
bool setXmpKeywords(const QStringList &newKeywords, bool setProgramName=true) const
Set Xmp keywords using a list of strings defined by 'newKeywords' parameter.
Definition: kexiv2xmp.cpp:1032
===========================================================This file is a part of digiKam project htt...
KExiv2::TagsMap getXmpTagsList() const
Return a map of all standard Xmp tags supported by Exiv2.
Definition: kexiv2xmp.cpp:1072
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.