forked from CountMurphy/QTalarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschedule.h
83 lines (64 loc) · 1.8 KB
/
schedule.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#ifndef SCHEDULE_H
#define SCHEDULE_H
#include <QObject>
#include <QTime>
#include <QDateTime>
#include <QString>
//ew, why did I do this this way?
//The entire scheduling class needs a rewrite.
//Left over from my jr days....
class Schedule : public QObject
{
Q_OBJECT
public:
explicit Schedule(QObject *parent = 0);
void SetCustEnabled(bool);
void SetTime(QTime);
void SetCust(QDate);
void SetCustomSound(QString);
void SetCustomSoundEnabled(bool);
void SetIsBastard(bool);
bool GetCustomEnabled();
bool GetCustomSoundEnabled();
QTime GetTime();
QDate GetCustomDate();
QString GetCustomSound();
int Index;
bool isMonEnabled() const;
void setIsMonEnabled(bool isMonEnabled);
bool isTueEnabled() const;
void setIsTueEnabled(bool isTueEnabled);
bool isWedEnabled() const;
void setIsWedEnabled(bool isWedEnabled);
bool isThurEnabled() const;
void setIsThurEnabled(bool isThurEnabled);
bool isFriEnabled() const;
void setIsFriEnabled(bool isFriEnabled);
bool isSatEnabled() const;
void setIsSatEnabled(bool isSatEnabled);
bool isSunEnabled() const;
void setIsSunEnabled(bool isSunEnabled);
bool isCustomEnabled() const;
void setIsCustomEnabled(bool isCustomEnabled);
bool isCustomSoundEnabled() const;
void setIsCustomSoundEnabled(bool isCustomSoundEnabled);
bool isBastard() const;
QString Name();
private:
QTime _AlarmTime;
QDate _CustomAlarm;
QString _CustomSound;
bool _isMonEnabled;
bool _isTueEnabled;
bool _isWedEnabled;
bool _isThurEnabled;
bool _isFriEnabled;
bool _isSatEnabled;
bool _isSunEnabled;
bool _isCustomEnabled;
bool _isCustomSoundEnabled;
bool _isBastard;
signals:
public slots:
};
#endif // SCHEDULE_H