BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
The service to collect messages from different senders.
Definition at line 27 of file MessageService.h.
Public Member Functions | |
void | addError (QObject *sender, const QString &description) |
void | addWarning (QObject *sender, const QString &description) |
QStringList | errors (bool includeSenders=false) const |
QStringList | warnings (bool includeSenders=false) const |
Private Types | |
using | Messages = QList< QPair< QString, QString > > |
Private Member Functions | |
QStringList | descriptions (const Messages &messages, bool includeSenders) const |
Private Attributes | |
Messages | m_errors |
Messages | m_warnings |
|
private |
Definition at line 36 of file MessageService.h.
void MessageService::addError | ( | QObject * | sender, |
const QString & | description | ||
) |
Definition at line 31 of file MessageService.cpp.
References m_errors.
Referenced by ProjectDocument::loadProjectFile(), and ProjectDocument::readProject().
void MessageService::addWarning | ( | QObject * | sender, |
const QString & | description | ||
) |
Definition at line 36 of file MessageService.cpp.
References m_warnings.
Referenced by DatafieldIOService::loadDataFiles().
|
private |
QStringList MessageService::errors | ( | bool | includeSenders = false | ) | const |
Definition at line 41 of file MessageService.cpp.
References descriptions(), and m_errors.
Referenced by ProjectManager::riseProjectLoadFailedDialog().
QStringList MessageService::warnings | ( | bool | includeSenders = false | ) | const |
Definition at line 46 of file MessageService.cpp.
References descriptions(), and m_warnings.
Referenced by ProjectDocument::loadProjectFile(), ProjectDocument::readProject(), and ProjectManager::riseProjectLoadProblemDialog().
|
private |
Definition at line 41 of file MessageService.h.
Referenced by addError(), and errors().
|
private |
Definition at line 40 of file MessageService.h.
Referenced by addWarning(), and warnings().