File indexing completed on 2024-09-08 09:33:01
0001 /* 0002 This file is part of KDE. 0003 0004 SPDX-FileCopyrightText: 2011 Dan Leinir Turthra Jensen <admin@leinir.dk> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #include "publisherfield.h" 0010 0011 using namespace Attica; 0012 0013 class Q_DECL_HIDDEN PublisherField::Private : public QSharedData 0014 { 0015 public: 0016 QString name; 0017 QString type; 0018 QString data; 0019 0020 Private() 0021 { 0022 } 0023 }; 0024 0025 PublisherField::PublisherField() 0026 : d(new Private) 0027 { 0028 } 0029 0030 PublisherField::PublisherField(const PublisherField &other) 0031 : d(other.d) 0032 { 0033 } 0034 0035 PublisherField &PublisherField::operator=(const Attica::PublisherField &other) 0036 { 0037 d = other.d; 0038 return *this; 0039 } 0040 0041 PublisherField::~PublisherField() 0042 { 0043 } 0044 0045 void PublisherField::setName(const QString &value) 0046 { 0047 d->name = value; 0048 } 0049 0050 QString PublisherField::name() const 0051 { 0052 return d->name; 0053 } 0054 0055 void PublisherField::setType(const QString &value) 0056 { 0057 d->type = value; 0058 } 0059 0060 QString PublisherField::type() const 0061 { 0062 return d->type; 0063 } 0064 0065 void PublisherField::setData(const QString &value) 0066 { 0067 d->data = value; 0068 } 0069 0070 QString PublisherField::data() const 0071 { 0072 return d->data; 0073 } 0074 0075 bool PublisherField::isValid() const 0076 { 0077 return true; 0078 }