-
Notifications
You must be signed in to change notification settings - Fork 4
/
staffmember.h
56 lines (41 loc) · 1.19 KB
/
staffmember.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
#ifndef STAFFMEMBER_H
#define STAFFMEMBER_H
#include <QString>
#include <QVector>
#include "person.h"
#include "course.h"
#include <QSqlDatabase>
#include <QSql>
#include <QSqlError>
#include <QDir>
#include <QFile>
#include <QDebug>
#include <QSqlQuery>
#include <QString>
#include <QStringList>
#include <QSqlError>
class StaffMember : public Person
{
private:
QString degree;
QString department;
QVector<Course> courses;
public:
StaffMember();
StaffMember(QString first_name, QString last_name, QString gendre, QString picture, QString birth_date, QString address, QString college_id, QString password, QString degree, QString department);
void setDegree(QString degree);
QString getDegree();
void setDepartment(QString department);
QString getDepartment();
QVector<Course> getCourses();
void addCourse(QString course_name);
void deleteCourse(QString course_name);
bool save();
static bool isInDatabase(long long id);
static QVector<StaffMember> all();
static StaffMember find(long long id);
QVector<StaffMember> static where(QString column, QString value);
void delete1();
static int getLastId();
};
#endif // STAFFMEMBER_H