1 | /* |
2 | * This file is part of the syndication library |
3 | * |
4 | * Copyright (C) 2006 Frank Osterfeld <osterfeld@kde.org> |
5 | * |
6 | * This library is free software; you can redistribute it and/or |
7 | * modify it under the terms of the GNU Library General Public |
8 | * License as published by the Free Software Foundation; either |
9 | * version 2 of the License, or (at your option) any later version. |
10 | * |
11 | * This library is distributed in the hope that it will be useful, |
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | * Library General Public License for more details. |
15 | * |
16 | * You should have received a copy of the GNU Library General Public License |
17 | * along with this library; see the file COPYING.LIB. If not, write to |
18 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 | * Boston, MA 02110-1301, USA. |
20 | * |
21 | */ |
22 | |
23 | #ifndef SYNDICATION_PERSONIMPL_H |
24 | #define SYNDICATION_PERSONIMPL_H |
25 | |
26 | #include <syndication/person.h> |
27 | #include "ksyndication_export.h" |
28 | |
29 | #include <QtCore/QString> |
30 | |
31 | #include <boost/shared_ptr.hpp> |
32 | |
33 | namespace Syndication { |
34 | |
35 | class PersonImpl; |
36 | |
37 | //@cond PRIVATE |
38 | typedef boost::shared_ptr<PersonImpl> PersonImplPtr; |
39 | |
40 | /** |
41 | * @internal |
42 | */ |
43 | class SYNDICATION_EXPORT PersonImpl : public Person |
44 | { |
45 | public: |
46 | |
47 | PersonImpl(); |
48 | PersonImpl(const QString& name, const QString& uri, const QString& email); |
49 | |
50 | virtual bool isNull() const { return m_null; } |
51 | virtual QString name() const { return m_name; } |
52 | virtual QString uri() const { return m_uri; } |
53 | virtual QString email() const { return m_email; } |
54 | |
55 | private: |
56 | |
57 | bool m_null; |
58 | QString m_name; |
59 | QString m_uri; |
60 | QString m_email; |
61 | }; |
62 | //@endcond |
63 | |
64 | } // namespace Syndication |
65 | |
66 | #endif // SYNDICATION_PERSONIMPL_H |
67 | |