KNewStuff

core/author.h
1 /*
2  This file is part of KNewStuff2.
3  Copyright (c) 2002 Cornelius Schumacher <[email protected]>
4  Copyright (c) 2003 - 2007 Josef Spillner <[email protected]>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 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  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 */
19 #ifndef KNEWSTUFF3_AUTHOR_P_H
20 #define KNEWSTUFF3_AUTHOR_P_H
21 
22 #include <QString>
23 #include <QUrl>
24 
25 #include "knewstuffcore_export.h"
26 
27 namespace KNSCore
28 {
29 struct AuthorPrivate;
30 
40 class KNEWSTUFFCORE_EXPORT Author
41 {
42 public:
43  explicit Author();
44  Author(const Author &other);
45  Author& operator=(const Author &other) = default;
46  Author& operator=(Author&&) = default;
47  ~Author();
48 
52  void setId(const QString &id);
53 
58  QString id() const;
59 
63  void setName(const QString &name);
64 
70  QString name() const;
71 
75  void setEmail(const QString &email);
76 
82  QString email() const;
83 
87  void setJabber(const QString &jabber);
88 
94  QString jabber() const;
95 
99  void setHomepage(const QString &homepage);
100 
106  QString homepage() const;
107 
111  void setProfilepage(const QString &profilepage);
112 
118  QString profilepage() const;
119 
123  void setAvatarUrl(const QUrl &avatarUrl);
124 
130  QUrl avatarUrl() const;
131 
137  QString description() const;
141  void setDescription(const QString &description);
142 private:
143  QString mName;
144  QString mEmail;
145  QString mJabber;
146  QString mHomepage;
147 };
148 
149 }
150 
151 #endif
Contains the core functionality for handling interaction with NewStuff providers. ...
KNewStuff author information.
Definition: core/author.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Aug 9 2020 22:43:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.