KNewStuff
author.h
Go to the documentation of this file.
00001 /* 00002 This file is part of KNewStuff2. 00003 Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org> 00004 Copyright (c) 2003 - 2007 Josef Spillner <spillner@kde.org> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2.1 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Lesser General Public License for more details. 00015 00016 You should have received a copy of the GNU Lesser General Public 00017 License along with this library. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 #ifndef KNEWSTUFF2_AUTHOR_H 00020 #define KNEWSTUFF2_AUTHOR_H 00021 00022 #include <knewstuff2/knewstuff_export.h> 00023 00024 #include <QtCore/QString> 00025 00026 namespace KNS 00027 { 00028 00029 struct AuthorPrivate; 00030 00040 class KNEWSTUFF_EXPORT Author 00041 { 00042 public: 00046 Author(); 00047 00048 Author(const Author& other); 00049 Author& operator=(const Author& other); 00050 00054 ~Author(); 00055 00059 void setName(const QString& name); 00060 00066 QString name() const; 00067 00071 void setEmail(const QString& email); 00072 00078 QString email() const; 00079 00083 void setJabber(const QString& jabber); 00084 00090 QString jabber() const; 00091 00095 void setHomepage(const QString& homepage); 00096 00102 QString homepage() const; 00103 00104 private: 00105 struct AuthorPrivate * const d; 00106 }; 00107 00108 } 00109 00110 #endif
KDE 4.6 API Reference