-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubjectdata.h
44 lines (33 loc) · 1.02 KB
/
subjectdata.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
#ifndef SUBJECTDATA_H
#define SUBJECTDATA_H
#include "datasheet.h"
#include "synchandler.h"
#include <QObject>
/*!
* \brief SubjectData stores everything related to particular subject entry.
*
* Instance of this class is created and added to SubjectHandler when user
* decides to track data for one more subject.
*/
class SubjectData : public QObject
{
Q_OBJECT
public:
SubjectData(int id, QString title, QObject *parent = 0);
SubjectData(QString title, QObject *parent = 0);
~SubjectData();
DataSheet* getDataSheet() const;
SyncHandler* getSyncHandler() const;
void attachProcessor(int processorId, int processorTypeId, QString additionalData = "LabStat");
void disconnectAll();
QString getTitle() const;
void setTitle(const QString& value);
int getId() const;
void setId(int value);
private:
int id;
QString title;
DataSheet* dataSheet;
SyncHandler* syncHandler;
};
#endif // SUBJECTDATA_H