OpenTwin
0.1
OpenTwin
Loading...
Searching...
No Matches
DelayedCallHandler.h
Go to the documentation of this file.
1
4
// ###########################################################################################################################################################################################################################################################################################################################
5
6
#pragma once
7
8
// OpenTwin header
9
#include "
OTCore/OTClassHelper.h
"
10
#include "
OTWidgets/OTWidgetsAPIExport.h
"
11
12
// Qt header
13
#include <QtCore/qtimer.h>
14
15
namespace
ot
{
16
17
class
OT_WIDGETS_API_EXPORT
DelayedCallHandler
:
public
QObject {
18
Q_OBJECT
19
OT_DECL_NOCOPY
(
DelayedCallHandler
)
20
public
:
21
DelayedCallHandler
(
int
_delayInMs = 0);
22
23
void
setDelay(
int
_delayInMs);
24
int
getDelay(
void
)
const
;
25
26
void
callDelayed(
bool
_waitUntilCalled =
false
);
27
void
stop(
void
);
28
29
Q_SIGNALS:
30
void
timeout
(
void
);
31
32
private
Q_SLOTS:
33
void
slotTimeout(
void
);
34
35
private
:
36
QTimer m_timer;
37
bool
m_waitForCall;
38
};
39
40
}
OTClassHelper.h
This file contains defines that may be used simplyfy class creation.
OT_DECL_NOCOPY
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition
OTClassHelper.h:14
OTWidgetsAPIExport.h
OT_WIDGETS_API_EXPORT
#define OT_WIDGETS_API_EXPORT
Definition
OTWidgetsAPIExport.h:12
ot::DelayedCallHandler
Definition
DelayedCallHandler.h:17
ot::DelayedCallHandler::timeout
void timeout(void)
ot
Definition
Connector.h:8
Libraries
OTWidgets
include
OTWidgets
DelayedCallHandler.h
Generated by
1.10.0