libs/libkexiv2/libkexiv2
kexiv2iptc.cpp
Go to the documentation of this file.
149 KExiv2::MetaDataMap KExiv2::getIptcTagsDataList(const QStringList& iptcKeysFilter, bool invertSelection) const
337 bool KExiv2::setIptcTagData(const char* iptcTagName, const QByteArray& data, bool setProgramName) const
426 bool KExiv2::setIptcTagString(const char* iptcTagName, const QString& value, bool setProgramName) const
788 bool KExiv2::setIptcSubCategories(const QStringList& oldSubCategories, const QStringList& newSubCategories,
861 QString key = QLatin1String( Exiv2::IptcKey( (*it)->number_, (*it)->recordId_ ).key().c_str() );
KExiv2::MetaDataMap getIptcTagsDataList(const QStringList &iptcKeysFilter=QStringList(), bool invertSelection=false) const
Return a map of Iptc tags name/value found in metadata sorted by Iptc keys given by 'iptcKeysFilter'...
Definition: kexiv2iptc.cpp:149
QString getIptcTagString(const char *iptcTagName, bool escapeCR=true) const
Get an Iptc tag content like a string.
Definition: kexiv2iptc.cpp:393
QString & append(QChar ch)
QStringList getIptcKeywords() const
Return a strings list of Iptc keywords from image.
Definition: kexiv2iptc.cpp:558
void truncate(int position)
KExiv2::TagsMap getIptcTagsList() const
Return a map of all standard Iptc tags supported by Exiv2.
Definition: kexiv2iptc.cpp:848
const Exiv2::IptcData & iptcMetadata() const
Definition: kexiv2_p.h:164
bool setIptcTagData(const char *iptcTagName, const QByteArray &data, bool setProgramName=true) const
Set an Iptc tag content using a bytes array.
Definition: kexiv2iptc.cpp:337
QStringList getIptcSubCategories() const
Return a strings list of Iptc sub-categories from image.
Definition: kexiv2iptc.cpp:753
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool isEmpty() const
QString join(const QString &separator) const
bool hasIptc() const
Return 'true' if metadata container in memory as Iptc.
Definition: kexiv2iptc.cpp:58
bool setIptc(const QByteArray &data) const
Set the Iptc data using a Qt byte array.
Definition: kexiv2iptc.cpp:122
QStringList getIptcTagsStringList(const char *iptcTagName, bool escapeCR=true) const
Returns a strings list with of multiple Iptc tags from the image.
Definition: kexiv2iptc.cpp:451
QByteArray getIptcTagData(const char *iptcTagName) const
Get an Iptc tag content as a bytes array.
Definition: kexiv2iptc.cpp:363
QString fromLocal8Bit(const char *str, int size)
void append(const T &value)
QString fromUtf8(const char *str, int size)
bool setIptcSubCategories(const QStringList &oldSubCategories, const QStringList &newSubCategories, bool setProgramName=true) const
Set Iptc sub-categories using a list of strings defined by 'newSubCategories' parameter.
Definition: kexiv2iptc.cpp:788
bool setIptcTagsStringList(const char *iptcTagName, int maxSize, const QStringList &oldValues, const QStringList &newValues, bool setProgramName=true) const
Set multiple Iptc tags contents using a strings list.
Definition: kexiv2iptc.cpp:491
bool isEmpty() const
QString getIptcTagDescription(const char *iptcTagName)
Return the Iptc Tag description or a null string.
Definition: kexiv2iptc.cpp:277
bool isEmpty() const
QMap< QString, QString > MetaDataMap
A map used to store Tags Key and Tags Value.
Definition: kexiv2.h:123
const char * constData() const
iterator end()
iterator end()
bool removeIptcTag(const char *iptcTagName, bool setProgramName=true) const
Remove the all instance of Iptc tags 'iptcTagName' from Iptc metadata.
Definition: kexiv2iptc.cpp:297
bool setIptcTagString(const char *iptcTagName, const QString &value, bool setProgramName=true) const
Set an Iptc tag content using a string.
Definition: kexiv2iptc.cpp:426
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
static bool canWriteIptc(const QString &filePath)
Return 'true' if Iptc can be written in file.
Definition: kexiv2iptc.cpp:34
QString & replace(int position, int n, QChar after)
QMap< QString, QStringList > TagsMap
A map used to store Tags Key and a list of Tags properties :
Definition: kexiv2.h:136
static void printExiv2ExceptionError(const QString &msg, Exiv2::Error &e)
Generic method to print the Exiv2 C++ Exception error message from 'e'.
bool setIptcKeywords(const QStringList &oldKeywords, const QStringList &newKeywords, bool setProgramName=true) const
Set Iptc keywords using a list of strings defined by 'newKeywords' parameter.
Definition: kexiv2iptc.cpp:595
===========================================================This file is a part of digiKam project htt...
char * data()
QString section(QChar sep, int start, int end, QFlags< QString::SectionFlag > flags) const
QString getIptcTagTitle(const char *iptcTagName)
Return the Iptc Tag title or a null string.
Definition: kexiv2iptc.cpp:257
bool setIptcSubjects(const QStringList &oldSubjects, const QStringList &newSubjects, bool setProgramName=true) const
Set Iptc subjects using a list of strings defined by 'newSubjects' parameter.
Definition: kexiv2iptc.cpp:694
iterator insert(const Key &key, const T &value)
QStringList getIptcSubjects() const
Return a strings list of Iptc subjects from image.
Definition: kexiv2iptc.cpp:659
int size() const
iterator find(const Key &key)
iterator begin()
QByteArray getIptc(bool addIrbHeader=false) const
Return a Qt byte array copy of Iptc container get from current image.
Definition: kexiv2iptc.cpp:82
===========================================================This file is a part of digiKam project htt...
QByteArray encodeName(const QString &fileName)
QByteArray toAscii() const
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.