-
Notifications
You must be signed in to change notification settings - Fork 5
/
report.h
57 lines (45 loc) · 1.04 KB
/
report.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
#ifndef REPORT_H
#define REPORT_H
#include "patient.h"
#include "therapist.h"
#include "function.h"
/*
* Entity class. Holds attributes of a Report.
*/
class Report
{
public:
Report(QDate date);
~Report();
QDate getDate() const;
void setDate(const QDate &value);
QString getFreeText() const;
void setFreeText(const QString &value);
int sizeOfFunctions() {
return functions.size();
}
Function* getFunction(int i) {
return functions.at(i);
}
void addFunction(Function* funct) {
functions.append(funct);
}
QList<Function*> getFunctions(Function::Art actArt);
int getPatientId() const;
void setPatientId(int value);
int getTherapistId() const;
void setTherapistId(int value);
int getId() const;
void setId(int value);
QString getType() const;
void setType(const QString &value);
private:
int id;
int patientId;
int therapistId;
QDate date;
QList<Function*> functions;
QString freeText;
QString type;
};
#endif // REPORT_H