-
Notifications
You must be signed in to change notification settings - Fork 1
/
alarm.h
49 lines (41 loc) · 878 Bytes
/
alarm.h
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
#ifndef ALARM_H
#define ALARM_H
#include <QWidget>
#include <QTimer>
#include <QTime>
#include <QRect>
#include <QDesktopWidget>
#include <QDebug>
#include <QScreen>
#include "mthread.h"
#include <QtMultimedia/QMediaPlayer>
#include <QtMultimedia/QSound>
QT_BEGIN_NAMESPACE
namespace Ui { class Alarm; }
QT_END_NAMESPACE
class Alarm : public QWidget
{
Q_OBJECT
public:
Alarm(QWidget *parent = nullptr);
~Alarm();
// variables global
QString text2 ;
QString alarm_time ;
QString minutes ="00";
QString hours ="00";
bool flag = false;
bool isSetFlag = false ;
mThread *m_thread ;
bool f_fired = false ;
private slots:
void showTime();
void updateAlarm();
void setalarmtime();
void setAlarmStatus();
void on_btnStopAlarm_clicked();
void soundAlarm();
private:
Ui::Alarm *ui;
};
#endif // ALARM_H