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