forked from DOMjudge/DOMjura
-
Notifications
You must be signed in to change notification settings - Fork 0
/
submission.h
45 lines (36 loc) · 1013 Bytes
/
submission.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
#ifndef DJ_MODEL_SUBMISSION_H
#define DJ_MODEL_SUBMISSION_H
#include <QObject>
#include <QDateTime>
namespace DJ
{
namespace Model
{
class Problem;
class Team;
class Contest;
class Submission : public QObject
{
Q_OBJECT
public:
explicit Submission(QJsonObject submission,
QHash<QString, Team *> teams,
QHash<QString, Problem *> problems,
QObject *parent = nullptr);
QString getId();
Problem *getProblem();
Team *getTeam();
QDateTime getTime();
bool inTime(Contest *contest);
bool inFreeze(Contest *contest);
signals:
public slots:
private:
QString id;
Problem *problem;
Team *team;
QDateTime time;
};
} // namespace Model
} // namespace DJ
#endif // DJ_MODEL_SUBMISSION_H