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