OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
DelayedShowHideHandler.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
10
11namespace ot {
12
14 Q_OBJECT
16 public:
19
20 void show(void);
21 void setShowDelay(int _delayInMs) { m_showHandler.setDelay(_delayInMs); };
22 int getShowDelay(void) const { return m_showHandler.getDelay(); };
23
24 void hide(void);
25 void setHideDelay(int _delayInMs) { m_hideHandler.setDelay(_delayInMs); };
26 int getHideDelay(void) const { return m_hideHandler.getDelay(); };
27
28 void stop(void);
29
30 Q_SIGNALS:
31 void showRequest(void);
32 void hideRequest(void);
33
34 private Q_SLOTS:
35 void slotShow(void);
36 void slotHide(void);
37
38 private:
39 DelayedCallHandler m_showHandler;
40 DelayedCallHandler m_hideHandler;
41 };
42
43}
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
Definition DelayedCallHandler.h:17
Definition DelayedShowHideHandler.h:13
int getShowDelay(void) const
Definition DelayedShowHideHandler.h:22
void setHideDelay(int _delayInMs)
Definition DelayedShowHideHandler.h:25
int getHideDelay(void) const
Definition DelayedShowHideHandler.h:26
void setShowDelay(int _delayInMs)
Definition DelayedShowHideHandler.h:21
Definition Connector.h:8