Torc
0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
outputs
torcnetworkbuttonoutput.h
Go to the documentation of this file.
1
#ifndef TORCNETWORKBUTTONOUTPUT_H
2
#define TORCNETWORKBUTTONOUTPUT_H
3
4
// Qt
5
#include <QTimer>
6
7
// Torc
8
#include "
torcnetworkswitchoutput.h
"
9
10
class
TorcNetworkButtonOutput
final :
public
TorcNetworkSwitchOutput
11
{
12
Q_OBJECT
13
14
public
:
15
TorcNetworkButtonOutput
(
double
Default,
const
QVariantMap &Details);
16
~TorcNetworkButtonOutput
() =
default
;
17
18
QStringList
GetDescription
(
void
)
override
;
19
TorcOutput::Type
GetType
(
void
)
override
;
20
21
signals:
22
void
Pushed
(
void
);
23
24
public
slots:
25
void
SetValue
(
double
Value)
override
;
26
27
private
slots:
28
void
EndPulse (
void
);
29
void
StartTimer (
void
);
30
31
private
:
32
QTimer m_pulseTimer;
33
};
34
35
#endif // TORCNETWORKBUTTONOUTPUT_H
TorcNetworkButtonOutput::Pushed
void Pushed(void)
TorcNetworkButtonOutput::~TorcNetworkButtonOutput
~TorcNetworkButtonOutput()=default
TorcNetworkButtonOutput
A network output that mimics the behaviour of a mechanical push button.
Definition:
torcnetworkbuttonoutput.h:10
TorcNetworkButtonOutput::GetType
TorcOutput::Type GetType(void) override
Definition:
torcnetworkbuttonoutput.cpp:58
torcnetworkswitchoutput.h
TorcOutput::Type
Type
Definition:
torcoutput.h:23
TorcNetworkButtonOutput::GetDescription
QStringList GetDescription(void) override
Definition:
torcnetworkbuttonoutput.cpp:53
TorcNetworkSwitchOutput
Definition:
torcnetworkswitchoutput.h:7
TorcNetworkButtonOutput::SetValue
void SetValue(double Value) override
Toggle the value of the button.
Definition:
torcnetworkbuttonoutput.cpp:69
TorcNetworkButtonOutput::TorcNetworkButtonOutput
TorcNetworkButtonOutput(double Default, const QVariantMap &Details)
Definition:
torcnetworkbuttonoutput.cpp:40
Generated on Sat Jan 5 2019 21:54:03 for Torc by
1.8.11