-
Notifications
You must be signed in to change notification settings - Fork 1
/
qnewalarmdialog.h
59 lines (50 loc) · 1.33 KB
/
qnewalarmdialog.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
50
51
52
53
54
55
56
57
58
59
#ifndef QNEWALARMDIALOG_H
#define QNEWALARMDIALOG_H
#include <QDialog>
#include <QDateTime>
#include <QAbstractButton>
#include <QTimer>
#include <stdint.h>
namespace Ui {
class QNewAlarmDialog;
}
class QNewAlarmDialog : public QDialog
{
Q_OBJECT
public:
explicit QNewAlarmDialog(QWidget *parent = 0, bool edit = false,
QString Aname = "", const QTime &time = QTime(),
uint32_t wday = 0,
bool Acheck = false, long Acook = 0, bool show = true);
~QNewAlarmDialog();
void shrink();
bool isEditing;
long realcookie;
bool enabled;
QString name;
QTime time;
uint32_t wday;
int deleted;
bool showed;
private:
Ui::QNewAlarmDialog *ui;
public Q_SLOTS:
void removeAlarm(long cookie);
void addAlarm();
protected Q_SLOTS:
void timeout();
void enableSave(bool enable);
bool enableSaveIfDateInFuture();
bool alarmDateInFuture();
private slots:
void on_portraitButtonBox_clicked(QAbstractButton* button);
void orientationChanged();
void on_landscapeButtonBox_clicked(QAbstractButton* button);
void timeChanged(const QTime &time);
void dateChanged(const QDate &date);
void daysChanged(uint32_t days);
void on_soundButton_pressed();
protected:
QTimer timer;
};
#endif // QNEWALARMDIALOG_H