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
//-----------------------------------------------------------------------------
21
class
KACTUS2_API
ConsoleMediator
:
public
MessageMediator
22
{
23
public
:
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
MessageMediator.h
ConsoleMediator::showMessage
void showMessage(QString const &message) const final
Show the given message to the user.
ConsoleMediator::showFailure
void showFailure(QString const &error) const final
Show the given failure message to the user.
ConsoleMediator::showStatusMessage
void showStatusMessage(QString const &status) const final
Show the given status to the user.
ConsoleMediator::showError
void showError(QString const &error) const final
Show the given error to the user.
ConsoleMediator::ConsoleMediator
ConsoleMediator()=default
The constructor.
ConsoleMediator::~ConsoleMediator
~ConsoleMediator() final=default
The destructor.
MessageMediator
Interface for outputting messages to the user.
Definition
MessageMediator.h:21
kactus2dev
KactusAPI
include
ConsoleMediator.h
Generated by
1.13.2