-
Notifications
You must be signed in to change notification settings - Fork 0
/
strike.cpp
107 lines (85 loc) · 1.51 KB
/
strike.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#include "strike.h"
#include <QtDebug>
Strike::Strike()
{
}
Strike::Strike(const Strike &s2)
{
this->sid = s2.sid;
this->desc = s2.desc;
this->status = s2.status;
this->textColor = s2.textColor;
this->fontStyle = s2.fontStyle;
this->created = s2.created;
this->updated = s2.updated;
}
Strike::~Strike()
{
qDebug() << "destructor strike " << sid << "," << desc << ", " <<this;
}
void Strike::cloneStrike(Strike *s2)
{
sid = s2->getSid();
desc = s2->getDesc();
status = s2->getStatus();
textColor = s2->getTextColor();
fontStyle = s2->getFontStyle();
created = s2->getCreated();
updated = s2->getUpdated();
}
QString Strike::getSid() const
{
return sid;
}
void Strike::setSid(const QString &value)
{
sid = value;
}
QString Strike::getTextColor() const
{
return textColor;
}
void Strike::setTextColor(const QString &value)
{
textColor = value;
}
QString Strike::getFontStyle() const
{
return fontStyle;
}
void Strike::setFontStyle(const QString &value)
{
fontStyle = value;
}
QDateTime Strike::getCreated() const
{
return created;
}
void Strike::setCreated(const QDateTime &value)
{
created = value;
}
QDateTime Strike::getUpdated() const
{
return updated;
}
void Strike::setUpdated(const QDateTime &value)
{
updated = value;
}
QString Strike::getDesc() const
{
return desc;
}
void Strike::setDesc(const QString &value)
{
desc = value;
}
int Strike::getStatus() const
{
return status;
}
void Strike::setStatus(int value)
{
status = value;
}