1 | /* |
---|---|
2 | This file is part of KDE. |
3 | |
4 | SPDX-FileCopyrightText: 2011 Dan Leinir Turthra Jensen <admin@leinir.dk> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
7 | */ |
8 | |
9 | #include "publisherfield.h" |
10 | |
11 | using namespace Attica; |
12 | |
13 | class Q_DECL_HIDDEN PublisherField::Private : public QSharedData |
14 | { |
15 | public: |
16 | QString name; |
17 | QString type; |
18 | QString data; |
19 | |
20 | Private() |
21 | { |
22 | } |
23 | }; |
24 | |
25 | PublisherField::PublisherField() |
26 | : d(new Private) |
27 | { |
28 | } |
29 | |
30 | PublisherField::PublisherField(const PublisherField &other) |
31 | : d(other.d) |
32 | { |
33 | } |
34 | |
35 | PublisherField &PublisherField::operator=(const Attica::PublisherField &other) |
36 | { |
37 | d = other.d; |
38 | return *this; |
39 | } |
40 | |
41 | PublisherField::~PublisherField() |
42 | { |
43 | } |
44 | |
45 | void PublisherField::setName(const QString &value) |
46 | { |
47 | d->name = value; |
48 | } |
49 | |
50 | QString PublisherField::name() const |
51 | { |
52 | return d->name; |
53 | } |
54 | |
55 | void PublisherField::setType(const QString &value) |
56 | { |
57 | d->type = value; |
58 | } |
59 | |
60 | QString PublisherField::type() const |
61 | { |
62 | return d->type; |
63 | } |
64 | |
65 | void PublisherField::setData(const QString &value) |
66 | { |
67 | d->data = value; |
68 | } |
69 | |
70 | QString PublisherField::data() const |
71 | { |
72 | return d->data; |
73 | } |
74 | |
75 | bool PublisherField::isValid() const |
76 | { |
77 | return true; |
78 | } |
79 |