projects
/
badge
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NFC support
[badge]
/
timetable.h
diff --git
a/timetable.h
b/timetable.h
index
b07d5f5
..
bace014
100644
(file)
--- a/
timetable.h
+++ b/
timetable.h
@@
-2,18
+2,29
@@
#define TIMETABLE_H
#include <QDataStream>
#define TIMETABLE_H
#include <QDataStream>
+#include <QDate>
+#include <QTime>
+
class TimeTable
{
class TimeTable
{
- unsigned int day;
- unsigned int entrance;
- unsigned int firstPause;
- unsigned int endFirstPause;
- unsigned int secondPause;
- unsigned int endSecondPause;
- unsigned int exit;
+ private:
+ bool isWrong;
public:
public:
- TimeTable() {;}
+ enum {WRONG, NO_WRONG};
+ QDate day;
+ QTime entrance;
+ QTime firstPause;
+ QTime endFirstPause;
+ QTime secondPause;
+ QTime endSecondPause;
+ QTime exit;
+
+
+ TimeTable() {isWrong = false;}
+ int wrong();
+ void setWrong(bool wrong);
+
};
QDataStream &operator<<(QDataStream &out, const TimeTable &timetable);
};
QDataStream &operator<<(QDataStream &out, const TimeTable &timetable);