-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharticles.cpp
65 lines (53 loc) · 1020 Bytes
/
articles.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
#include "articles.h"
Articles::Articles()
{
m_artnr = 0;
m_unit = "";
m_description = "";
m_price = 0;
}
Articles::Articles(const int &artnr,
const QString &description,
const QString &unit,
const double &price)
{
m_artnr = artnr;
m_description = description;
m_unit = unit;
m_price = price;
}
Articles::~Articles()
{
}
int Articles::getArtNr() const
{
return m_artnr;
}
void Articles::setArtNr(const int &artnr)
{
m_artnr = artnr;
}
QString Articles::getDescription() const
{
return m_description;
}
void Articles::setDescription(const QString &description)
{
m_description = description;
}
QString Articles::getUnit() const
{
return m_unit;
}
void Articles::setUnit(const QString &unit)
{
m_unit = unit;
}
double Articles::getPrice() const
{
return m_price;
}
void Articles::setPrice(double price)
{
m_price = price;
}