File indexing completed on 2024-10-06 06:38:02

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 #ifndef PUBLISHERFIELD_H
0010 #define PUBLISHERFIELD_H
0011 
0012 #include "attica_export.h"
0013 #include "buildservice.h"
0014 
0015 namespace Attica
0016 {
0017 
0018 /**
0019  * @class PublisherField publisherfield.h <Attica/PublisherField>
0020  *
0021  * Represents a publisher field.
0022  */
0023 class ATTICA_EXPORT PublisherField
0024 {
0025 public:
0026     typedef QList<PublisherField> List;
0027     class Parser;
0028 
0029     PublisherField();
0030     PublisherField(const PublisherField &other);
0031     PublisherField &operator=(const PublisherField &other);
0032     ~PublisherField();
0033 
0034     void setName(const QString &value);
0035     QString name() const;
0036 
0037     void setType(const QString &value);
0038     QString type() const;
0039 
0040     void setData(const QString &value);
0041     QString data() const;
0042 
0043     bool isValid() const;
0044 
0045 private:
0046     class Private;
0047     QSharedDataPointer<Private> d;
0048 };
0049 
0050 } // namespace Attica
0051 
0052 #endif // PUBLISHERFIELD_H