| 1 | /* |
| 2 | This file is part of the syndication library |
| 3 | SPDX-FileCopyrightText: 2006 Frank Osterfeld <osterfeld@kde.org> |
| 4 | |
| 5 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 6 | */ |
| 7 | |
| 8 | #ifndef SYNDICATION_PERSONIMPL_H |
| 9 | #define SYNDICATION_PERSONIMPL_H |
| 10 | |
| 11 | #include "syndication_export.h" |
| 12 | #include <syndication/person.h> |
| 13 | |
| 14 | #include <QString> |
| 15 | |
| 16 | namespace Syndication |
| 17 | { |
| 18 | class PersonImpl; |
| 19 | |
| 20 | typedef QSharedPointer<PersonImpl> PersonImplPtr; |
| 21 | |
| 22 | class SYNDICATION_EXPORT PersonImpl : public Person |
| 23 | { |
| 24 | public: |
| 25 | PersonImpl(); |
| 26 | PersonImpl(const QString &name, const QString &uri, const QString &email); |
| 27 | |
| 28 | Q_REQUIRED_RESULT bool isNull() const override |
| 29 | { |
| 30 | return m_null; |
| 31 | } |
| 32 | Q_REQUIRED_RESULT QString name() const override |
| 33 | { |
| 34 | return m_name; |
| 35 | } |
| 36 | Q_REQUIRED_RESULT QString uri() const override |
| 37 | { |
| 38 | return m_uri; |
| 39 | } |
| 40 | Q_REQUIRED_RESULT QString email() const override |
| 41 | { |
| 42 | return m_email; |
| 43 | } |
| 44 | |
| 45 | private: |
| 46 | bool m_null; |
| 47 | QString m_name; |
| 48 | QString m_uri; |
| 49 | QString m_email; |
| 50 | }; |
| 51 | |
| 52 | } // namespace Syndication |
| 53 | |
| 54 | #endif // SYNDICATION_PERSONIMPL_H |
| 55 | |