-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMouseSim.hpp
48 lines (36 loc) · 833 Bytes
/
MouseSim.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef MOUSESIM_HPP
#define MOUSESIM_HPP
#include <QSystemTrayIcon>
#include <QWidget>
class QAction;
class QMenu;
class QSharedMemory;
class QSettings;
class MouseSim : public QWidget
{
Q_OBJECT
public:
MouseSim();
private slots:
void iconActivated(const QSystemTrayIcon::ActivationReason reason) const;
static void sendInput();
void enable() const;
void disable() const;
void autostart(const bool enabled) const;
static void about();
private:
const QString m_appPath;
QIcon *m_activated;
QIcon *m_deactivated;
QTimer *m_timer;
QAction *m_enableAction;
QAction *m_disableAction;
QAction *m_autostartAction;
QAction *m_aboutAction;
QAction *m_quitAction;
QSystemTrayIcon *m_trayIcon;
QMenu *m_trayIconMenu;
QSettings *m_settings;
QSharedMemory *m_mem;
};
#endif // MOUSESIM_HPP