Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
NullChannel.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: NullChannel.h
3//-----------------------------------------------------------------------------
4// Project: Kactus 2
5// Author: Esko Pekkarinen
6// Date: 09.11.2023
7//
8// Description:
9// Null output for user messages.
10//-----------------------------------------------------------------------------
11
12#ifndef NULL_CHANNEL_H
13#define NULL_CHANNEL_H
14
15#include "MessageMediator.h"
16
17//-----------------------------------------------------------------------------
19//-----------------------------------------------------------------------------
21{
22public:
23
25 explicit NullChannel() = default;
26
28 ~NullChannel() final = default;
29
31 void showMessage([[maybe_unused]] QString const& message) const final;
32
34 void showError([[maybe_unused]] QString const& error) const final;
35
37 void showFailure([[maybe_unused]] QString const& error) const final;
38
40 void showStatusMessage([[maybe_unused]] QString const& status) const final;
41
42};
43
44#endif // NULL_CHANNEL_H
Interface for outputting messages to the user.
NullChannel()=default
The constructor.
void showMessage(QString const &message) const final
Show the given message to the user.
void showError(QString const &error) const final
Show the given error to the user.
void showFailure(QString const &error) const final
Show the given failure message to the user.
~NullChannel() final=default
The destructor.
void showStatusMessage(QString const &status) const final
Show the given status to the user.