1
|
1 |
#include "BuildStatus.h"
|
|
2 |
|
|
3 |
BuildStatus::BuildStatus(QObject *parent)
|
|
4 |
{
|
|
5 |
setParent(parent);
|
|
6 |
}
|
|
7 |
|
|
8 |
void BuildStatus::setTime(QDateTime w)
|
|
9 |
{
|
|
10 |
this->m_when = w;
|
|
11 |
this->m_status = true;
|
|
12 |
}
|
|
13 |
|
|
14 |
QString BuildStatus::Time()
|
|
15 |
{
|
|
16 |
return this->m_when.toString();
|
|
17 |
}
|
|
18 |
|
|
19 |
void BuildStatus::setName(QString n)
|
|
20 |
{
|
|
21 |
if (m_packageName)
|
|
22 |
{
|
|
23 |
delete m_packageName;
|
|
24 |
m_packageName = NULL;
|
|
25 |
}
|
|
26 |
m_packageName = new QString(n);
|
|
27 |
}
|
|
28 |
|
|
29 |
QString BuildStatus::name()
|
|
30 |
{
|
|
31 |
return *m_packageName;
|
|
32 |
}
|