25 #ifndef DIGIKAM_ITEM_COPY_RIGHT_H
26 #define DIGIKAM_ITEM_COPY_RIGHT_H
31 #include <QStringList>
44 class ItemCopyrightCache;
87 QStringList creator()
const;
105 void setCreator(
const QString& creator, ReplaceMode mode = ReplaceAllEntries);
109 setCreator(author, mode);
114 setCreator(byline, mode);
117 void removeCreators();
126 QString provider()
const;
133 void setProvider(
const QString& provider);
140 void removeProvider();
159 QString copyrightNotice(
const QString& languageCode = QString());
161 QString
rights(
const QString& languageCode = QString())
163 return copyrightNotice(languageCode);
173 void setCopyrightNotice(
const QString& notice,
174 const QString& languageCode = QString(),
175 ReplaceMode mode = ReplaceLanguageEntry);
178 const QString& languageCode = QString(),
181 setCopyrightNotice(notice, languageCode, mode);
184 void removeCopyrightNotices();
193 QString rightsUsageTerms(
const QString& languageCode = QString());
196 void setRightsUsageTerms(
const QString& term,
197 const QString& languageCode = QString(),
198 ReplaceMode mode = ReplaceLanguageEntry);
200 void removeRightsUsageTerms();
214 void setSource(
const QString& source);
227 QString creatorJobTitle()
const;
231 return creatorJobTitle();
236 return creatorJobTitle();
239 void setCreatorJobTitle(
const QString& title);
248 setCreatorJobTitle(title);
251 void removeCreatorJobTitle();
265 QString instructions();
266 void setInstructions(
const QString& instructions);
267 void removeInstructions();
277 void removeContactInfo();
289 void setFromTemplate(
const Template& t);
305 QString readSimpleProperty(
const QString& property)
const;
308 void setSimpleProperty(
const QString& property,
const QString&
value);
309 QString readLanguageProperty(
const QString& property,
const QString& languageCode);
312 void setLanguageProperty(
const QString& property,
313 const QString&
value,
314 const QString& languageCode,
317 void removeProperties(
const QString& property);
318 void removeLanguageProperty(
const QString& property,
const QString& languageCode);
322 friend class ItemCopyrightCache;
Definition: coredbalbuminfo.h:338
Definition: itemcopyright.h:48
void setByLine(const QString &byline, ReplaceMode mode=ReplaceAllEntries)
Definition: itemcopyright.h:112
void setAuthorsPosition(const QString &position)
Definition: itemcopyright.h:241
ItemCopyrightCache * m_cache
Definition: itemcopyright.h:325
QStringList author() const
Definition: itemcopyright.h:89
QString rights(const QString &languageCode=QString())
Definition: itemcopyright.h:161
QStringList byLine() const
Definition: itemcopyright.h:94
QString authorsPosition() const
Definition: itemcopyright.h:229
QString credit() const
Definition: itemcopyright.h:128
void setRights(const QString ¬ice, const QString &languageCode=QString(), ReplaceMode mode=ReplaceLanguageEntry)
Definition: itemcopyright.h:177
ReplaceMode
Definition: itemcopyright.h:52
@ ReplaceAllEntries
Remove entries for all languages and add one new entry.
Definition: itemcopyright.h:53
@ ReplaceLanguageEntry
Only replace the entry with the given language.
Definition: itemcopyright.h:54
QString byLineTitle() const
Definition: itemcopyright.h:234
void setCredit(const QString &credit)
Definition: itemcopyright.h:135
void setByLineTitle(const QString &title)
Definition: itemcopyright.h:246
qlonglong m_id
Definition: itemcopyright.h:324
void setAuthor(const QString &author, ReplaceMode mode=ReplaceAllEntries)
Definition: itemcopyright.h:107
Definition: template.h:46
Definition: piwigotalker.h:48
qulonglong value
Definition: itemviewutilities.cpp:592
Definition: datefolderview.cpp:43