aboutsummaryrefslogtreecommitdiff
path: root/qt/person.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-04-07 12:47:27 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-04-22 18:45:40 +0200
commit5da0df2986a62e1254d27c8cfbc383ba580555e1 (patch)
tree4f75a607951d1124f3b19062593905d12f027b3a /qt/person.hxx
parent2534ea4dd7196828ba8446921c7b552087055114 (diff)
Update examples to include qt/basic and qt/date-time usage
Diffstat (limited to 'qt/person.hxx')
-rw-r--r--qt/person.hxx41
1 files changed, 0 insertions, 41 deletions
diff --git a/qt/person.hxx b/qt/person.hxx
deleted file mode 100644
index 28460c4..0000000
--- a/qt/person.hxx
+++ /dev/null
@@ -1,41 +0,0 @@
-// file : qt/person.hxx
-// author : Constantin Michael <constantin@codesynthesis.com>
-// copyright : not copyrighted - public domain
-
-#ifndef EMPLOYEE_HXX
-#define EMPLOYEE_HXX
-
-#include <QString>
-#include <QDate>
-#include <QTime>
-#include <QDateTime>
-
-#pragma db object
-struct time_punchcard
-{
- #pragma db id auto
- unsigned long id;
-
- QDateTime date_time;
-};
-
-#pragma db object
-struct person
-{
- bool
- operator== (const person& x) const
- {
- return name == x.name &&
- date_of_birth == x.date_of_birth &&
- time_of_birth == x.time_of_birth;
- }
-
- #pragma db id
- QString name;
-
- #pragma db type("DATE NOT NULL")
- QDate date_of_birth;
- QTime time_of_birth;
-};
-
-#endif // EMPLOYEE_HXX