-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.cpp
49 lines (38 loc) · 818 Bytes
/
run.cpp
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
#include "run.h"
Run::Run(int place, int time, const QString& user, const QDateTime& submittedDate):
m_place(place),
m_time(time)
{
m_user = QString(user);
m_submittedDate = QDateTime(submittedDate);
}
int Run::getPlace() {
return m_place;
}
void Run::setPlace(int place) {
m_place = place;
}
int Run::getTime() {
return m_time;
}
void Run::setTime(int time) {
m_time = time;
}
QString& Run::getUser() {
return m_user;
}
const QString& Run::getUser() const {
return m_user;
}
void Run::setUser(const QString& user) {
m_user = user;
}
QDateTime& Run::getSubmittedDate() {
return m_submittedDate;
}
const QDateTime& Run::getSubmittedDate() const {
return m_submittedDate;
}
void Run::setSubmittedDate(const QDateTime& date) {
m_submittedDate = date;
}