projects
/
badge
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dc6d25a
)
change type
author
Nicola De Filippo
<nicola@nicoladefilippo.it>
Mon, 30 Nov 2009 17:19:12 +0000
(18:19 +0100)
committer
Nicola De Filippo
<nicola@nicoladefilippo.it>
Mon, 30 Nov 2009 17:19:12 +0000
(18:19 +0100)
timetable.cpp
patch
|
blob
|
history
diff --git
a/timetable.cpp
b/timetable.cpp
index
8cdf06a
..
6bd31e8
100644
(file)
--- a/
timetable.cpp
+++ b/
timetable.cpp
@@
-4,12
+4,28
@@
QDataStream &operator<<(QDataStream &out, const TimeTable &timetable)
{
QDataStream &operator<<(QDataStream &out, const TimeTable &timetable)
{
+ out << timetable.day << timetable.entrance << timetable.firstPause << timetable.endFirstPause << timetable.secondPause
+ << timetable.endSecondPause << timetable.exit;
return out;
}
QDataStream &operator>>(QDataStream &in, TimeTable &timetable)
{
return out;
}
QDataStream &operator>>(QDataStream &in, TimeTable &timetable)
{
-
+ in >> timetable.day >> timetable.entrance >> timetable.firstPause >> timetable.endFirstPause >> timetable.secondPause
+ >> timetable.endSecondPause >> timetable.exit;
return in;
}
return in;
}
+
+int TimeTable::wrong()
+{
+ if (isWrong)
+ return WRONG;
+ else
+ return NO_WRONG;
+}
+
+void TimeTable::setWrong(bool wrong)
+{
+ isWrong = wrong;
+}