| 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 | #ifndef PUBLISHERFIELD_H |
| 10 | #define PUBLISHERFIELD_H |
| 11 | |
| 12 | #include "attica_export.h" |
| 13 | #include "buildservice.h" |
| 14 | |
| 15 | namespace Attica |
| 16 | { |
| 17 | |
| 18 | /*! |
| 19 | * \class Attica::PublisherField |
| 20 | * \inheaderfile Attica/PublisherField |
| 21 | * \inmodule Attica |
| 22 | * |
| 23 | * \brief Represents a publisher field. |
| 24 | */ |
| 25 | class ATTICA_EXPORT PublisherField |
| 26 | { |
| 27 | public: |
| 28 | /*! |
| 29 | * |
| 30 | */ |
| 31 | typedef QList<PublisherField> List; |
| 32 | class Parser; |
| 33 | |
| 34 | /*! |
| 35 | * |
| 36 | */ |
| 37 | PublisherField(); |
| 38 | PublisherField(const PublisherField &other); |
| 39 | PublisherField &operator=(const PublisherField &other); |
| 40 | ~PublisherField(); |
| 41 | |
| 42 | /*! |
| 43 | * |
| 44 | */ |
| 45 | void setName(const QString &value); |
| 46 | |
| 47 | /*! |
| 48 | * |
| 49 | */ |
| 50 | QString name() const; |
| 51 | |
| 52 | /*! |
| 53 | * |
| 54 | */ |
| 55 | void setType(const QString &value); |
| 56 | |
| 57 | /*! |
| 58 | * |
| 59 | */ |
| 60 | QString type() const; |
| 61 | |
| 62 | /*! |
| 63 | * |
| 64 | */ |
| 65 | void setData(const QString &value); |
| 66 | |
| 67 | /*! |
| 68 | * |
| 69 | */ |
| 70 | QString data() const; |
| 71 | |
| 72 | /*! |
| 73 | * |
| 74 | */ |
| 75 | bool isValid() const; |
| 76 | |
| 77 | private: |
| 78 | class Private; |
| 79 | QSharedDataPointer<Private> d; |
| 80 | }; |
| 81 | |
| 82 | } // namespace Attica |
| 83 | |
| 84 | #endif // PUBLISHERFIELD_H |
| 85 | |