15 #ifndef BORNAGAIN_GUI_UTIL_MESSAGESERVICE_H
16 #define BORNAGAIN_GUI_UTIL_MESSAGESERVICE_H
29 void addError(QObject* sender,
const QString& description);
30 void addWarning(QObject* sender,
const QString& description);
32 QStringList
errors(
bool includeSenders =
false)
const;
33 QStringList
warnings(
bool includeSenders =
false)
const;
36 using Messages = QList<QPair<QString, QString>>;
The service to collect messages from different senders.
QStringList descriptions(const Messages &messages, bool includeSenders) const
QList< QPair< QString, QString > > Messages
QStringList errors(bool includeSenders=false) const
QStringList warnings(bool includeSenders=false) const
void addWarning(QObject *sender, const QString &description)
void addError(QObject *sender, const QString &description)