Syndication

personimpl.h
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
16namespace Syndication
17{
18class PersonImpl;
19
20//@cond PRIVATE
21typedef QSharedPointer<PersonImpl> PersonImplPtr;
22
23/**
24 * @internal
25 */
26class SYNDICATION_EXPORT PersonImpl : public Person
27{
28public:
29 PersonImpl();
30 PersonImpl(const QString &name, const QString &uri, const QString &email);
31
32 Q_REQUIRED_RESULT bool isNull() const override
33 {
34 return m_null;
35 }
36 Q_REQUIRED_RESULT QString name() const override
37 {
38 return m_name;
39 }
40 Q_REQUIRED_RESULT QString uri() const override
41 {
42 return m_uri;
43 }
44 Q_REQUIRED_RESULT QString email() const override
45 {
46 return m_email;
47 }
48
49private:
50 bool m_null;
51 QString m_name;
52 QString m_uri;
53 QString m_email;
54};
55//@endcond
56
57} // namespace Syndication
58
59#endif // SYNDICATION_PERSONIMPL_H
QString name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.