Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
MessageMediator.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: MessageMediator.h
3//-----------------------------------------------------------------------------
4// Project: Kactus 2
5// Author: Esko Pekkarinen
6// Date: 13.02.2018
7//
8// Description:
9// Interface for outputting messages to the user.
10//-----------------------------------------------------------------------------
11
12#ifndef MESSAGEMEDIATOR_H
13#define MESSAGEMEDIATOR_H
14
15#include <QString>
16
17//-----------------------------------------------------------------------------
19//-----------------------------------------------------------------------------
21{
22public:
23
25 virtual ~MessageMediator() {};
26
28 virtual void showMessage(QString const& message) const = 0;
29
31 virtual void showError(QString const& error) const = 0;
32
34 virtual void showFailure(QString const& error) const = 0;
35
37 virtual void showStatusMessage(QString const& status) const = 0;
38};
39
40#endif // MESSAGEMEDIATOR_H
Interface for outputting messages to the user.
virtual void showFailure(QString const &error) const =0
Show the given failure message to the user.
virtual ~MessageMediator()
The destructor.
virtual void showMessage(QString const &message) const =0
Show the given message to the user.
virtual void showError(QString const &error) const =0
Show the given error to the user.
virtual void showStatusMessage(QString const &status) const =0
Show the given status to the user.