Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
ConsoleMediator.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: ConsoleMediator.h
3//-----------------------------------------------------------------------------
4// Project: Kactus 2
5// Author: Esko Pekkarinen
6// Date: 13.02.2018
7//
8// Description:
9// Console output for user messages.
10//-----------------------------------------------------------------------------
11
12#ifndef CONSOLEMEDIATOR_H
13#define CONSOLEMEDIATOR_H
14
15#include <KactusAPI/KactusAPIGlobal.h>
16
17#include "MessageMediator.h"
18//-----------------------------------------------------------------------------
20//-----------------------------------------------------------------------------
21class KACTUS2_API ConsoleMediator: public MessageMediator
22{
23public:
24
26 explicit ConsoleMediator() = default;
27
29 ~ConsoleMediator() final = default;
30
32 void showMessage(QString const& message) const final;
33
35 void showError(QString const& error) const final;
36
38 void showFailure(QString const& error) const final;
39
41 void showStatusMessage(QString const& status) const final;
42
43};
44
45#endif // CONSOLEMEDIATOR_H
void showMessage(QString const &message) const final
Show the given message to the user.
void showFailure(QString const &error) const final
Show the given failure message to the user.
void showStatusMessage(QString const &status) const final
Show the given status to the user.
void showError(QString const &error) const final
Show the given error to the user.
ConsoleMediator()=default
The constructor.
~ConsoleMediator() final=default
The destructor.
Interface for outputting messages to the user.