26 #ifndef DIGIKAM_ITEM_COMMENTS_H
27 #define DIGIKAM_ITEM_COMMENTS_H
33 #include <QSharedDataPointer>
34 #include <QSharedData>
79 ReturnMatchingDefaultOrFirstLanguage
92 UniquePerLanguageAndAuthor
126 void setUniqueBehavior(UniqueBehavior behavior);
142 QString commentForLanguage(
const QString& languageCode,
int*
const index =
nullptr,
143 LanguageChoiceBehavior behavior = ReturnMatchingDefaultOrFirstLanguage)
const;
148 int numberOfComments()
const;
158 QString language(
int index)
const;
160 QString author(
int index)
const;
161 QDateTime date(
int index)
const;
162 QString comment(
int index)
const;
171 void addComment(
const QString& comment,
172 const QString& language = QString(),
173 const QString& author = QString(),
174 const QDateTime& date = QDateTime(),
180 void addHeadline(
const QString& headline,
181 const QString& language = QString(),
182 const QString& author = QString(),
183 const QDateTime& date = QDateTime());
188 void addTitle(
const QString& title,
189 const QString& language = QString(),
190 const QString& author = QString(),
191 const QDateTime& date = QDateTime());
203 void remove(
int index);
213 void removeAllComments();
224 void changeComment(
int index,
const QString& comment);
225 void changeLanguage(
int index,
const QString& language);
226 void changeAuthor(
int index,
const QString& author);
227 void changeDate(
int index,
const QDateTime& date);
249 void addCommentDirectly(
const QString& comment,
250 const QString& language,
251 const QString& author,
253 const QDateTime& date);
260 QSharedDataPointer<Private>
d;
Definition: captionvalues.h:69
Definition: coredbaccess.h:56
Definition: datefolderview.cpp:43