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
11using namespace Attica;
12
13class Q_DECL_HIDDEN PublisherField::Private : public QSharedData
14{
15public:
16 QString name;
17 QString type;
18 QString data;
19
20 Private()
21 {
22 }
23};
24
25PublisherField::PublisherField()
26 : d(new Private)
27{
28}
29
30PublisherField::PublisherField(const PublisherField &other)
31 : d(other.d)
32{
33}
34
35PublisherField &PublisherField::operator=(const Attica::PublisherField &other)
36{
37 d = other.d;
38 return *this;
39}
40
41PublisherField::~PublisherField()
42{
43}
44
45void PublisherField::setName(const QString &value)
46{
47 d->name = value;
48}
49
50QString PublisherField::name() const
51{
52 return d->name;
53}
54
55void PublisherField::setType(const QString &value)
56{
57 d->type = value;
58}
59
60QString PublisherField::type() const
61{
62 return d->type;
63}
64
65void PublisherField::setData(const QString &value)
66{
67 d->data = value;
68}
69
70QString PublisherField::data() const
71{
72 return d->data;
73}
74
75bool PublisherField::isValid() const
76{
77 return true;
78}
79

source code of attica/src/publisherfield.cpp