-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTimeTimerMgr.h
More file actions
51 lines (39 loc) · 1008 Bytes
/
TimeTimerMgr.h
File metadata and controls
51 lines (39 loc) · 1008 Bytes
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
49
50
51
#ifndef TIMETIMERMGR_H
#define TIMETIMERMGR_H
#include <QObject>
#include <QTimer>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QQuickWindow>
#include "ConfigureDialog.h"
class TimeTimerMgr : public QObject
{
Q_OBJECT
public:
explicit TimeTimerMgr(QObject *parent = nullptr);
~TimeTimerMgr();
void SetEngine(QQmlApplicationEngine *engine);
void InitIteragte();
Q_INVOKABLE void showDialog();
public slots:
void Slot_Start();
void Slot_Pause();
void Slot_Stop();
void Slot_Timeout();
void Slot_GetColor(QColor color);
void Slot_GetOpacity(double dOpacity);
void Slot_GetAlwaysOnTop(bool bChecked);
void Slot_GetAlarmSound(QString sAlarm);
void Slot_DialogClose();
signals:
private:
ConfigureDialog* m_pDialog;
QQmlApplicationEngine* m_engine;
QQuickWindow* m_pWindow;
QObject* m_pTimeCanvas;
QString m_sAlarmSound;
QTimer timer;
int m_nTime;
int m_nCount;
};
#endif // TIMETIMERMGR_H