Syndication

personimpl.h
1 /*
2  This file is part of the syndication library
3  SPDX-FileCopyrightText: 2006 Frank Osterfeld <[email protected]>
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 //@cond PRIVATE
21 typedef QSharedPointer<PersonImpl> PersonImplPtr;
22 
23 /**
24  * @internal
25  */
26 class SYNDICATION_EXPORT PersonImpl : public Person
27 {
28 public:
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 
49 private:
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(StandardShortcut id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 03:56:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.