Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
ChannelRelay.h
Go to the documentation of this file.
1//-----------------------------------------------------------------------------
2// File: StdOutChannel.h
3//-----------------------------------------------------------------------------
4// Project: Kactus2
5// Author: Esko Pekkarinen
6// Date: 05.02.2021
7//
8// Description:
9// <Short description of the class/file contents>
10//-----------------------------------------------------------------------------
11
12#ifndef CHANNELRELAY_H
13#define CHANNELRELAY_H
14
16
17#include <QObject>
18#include <QString>
19
20class ChannelRelay: public QObject, public WriteChannel
21{
22 Q_OBJECT
23public:
24
26 explicit ChannelRelay(QObject* parent = nullptr);
27
29 virtual ~ChannelRelay() = default;
30
31 virtual void write(QString const& text) override final;
32
33signals:
34
35 void data(QString const& text);
36};
37
38
39#endif // CHANNELRELAY_H
void data(QString const &text)
ChannelRelay(QObject *parent=nullptr)
The constructor.
virtual void write(QString const &text) override final
virtual ~ChannelRelay()=default
The destructor.
WriteChannel()=default
The constructor.