-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbcvapdescriptor.cpp
More file actions
109 lines (89 loc) · 2.07 KB
/
Copy pathbcvapdescriptor.cpp
File metadata and controls
109 lines (89 loc) · 2.07 KB
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
107
108
109
#include <bcvapdescriptor.h>
BCVAPDescriptor::BCVAPDescriptor(const QString &identifier, const QString &name, const QString &description, const QString &updateUrl, Status status, QObject *parent)
: QObject(parent)
, identifier(identifier)
, name(name)
, description(description)
, updateUrl(updateUrl)
, status(status)
{
;
}
BCVAPDescriptor::BCVAPDescriptor(QObject *parent)
: QObject(parent)
, identifier(QString::null)
, name(QString::null)
, description(QString::null)
, updateUrl(QString::null)
, status(Status::None)
{
;
}
BCVAPDescriptor::~BCVAPDescriptor()
{
;
}
BCVAPDescriptor::BCVAPDescriptor(const BCVAPDescriptor& origin)
: QObject(origin.parent())
, name(origin.name)
, description(origin.description)
, updateUrl(origin.updateUrl)
, status(origin.status)
{
;
}
const QString& BCVAPDescriptor::getIdentifier() const
{
return identifier;
}
const QString& BCVAPDescriptor::getName() const
{
return name;
}
const QString& BCVAPDescriptor::getDescription() const
{
return description;
}
const QString& BCVAPDescriptor::getUpdateUrl() const
{
return updateUrl;
}
BCVAPDescriptor::Status BCVAPDescriptor::getStatus() const
{
return status;
}
void BCVAPDescriptor::setIdentifier(const QString& newIdentifier)
{
if(identifier == newIdentifier)
return;
identifier = newIdentifier;
emit identifierChanged();
}
void BCVAPDescriptor::setName(const QString& newName)
{
if(name == newName)
return;
name = newName;
emit nameChanged();
}
void BCVAPDescriptor::setDescription(const QString& newDescription)
{
if(description == newDescription)
return;
description = newDescription;
emit descriptionChanged();
}
void BCVAPDescriptor::setUpdateUrl(const QString& newUpdateUrl)
{
if(updateUrl == newUpdateUrl)
return;
updateUrl = newUpdateUrl;
emit updateUrlChanged();
}
void BCVAPDescriptor::setStatus(Status newStatus)
{
if(status == newStatus)
return;
status = newStatus;
emit statusChanged();
}