• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KNewStuff

  • sources
  • kde-4.14
  • kdelibs
  • knewstuff
  • knewstuff2
  • core
knewstuff2/core/author.cpp
Go to the documentation of this file.
1 /*
2  This file is part of KNewStuff2.
3  Copyright (c) 2002 Cornelius Schumacher <schumacher@kde.org>
4  Copyright (c) 2003 - 2007 Josef Spillner <spillner@kde.org>
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 
20 #include "author.h"
21 
22 using namespace KNS;
23 
24 struct KNS::AuthorPrivate {
25  QString mName;
26  QString mEmail;
27  QString mJabber;
28  QString mHomepage;
29 };
30 
31 Author::Author()
32  : d(new AuthorPrivate)
33 {
34 }
35 
36 Author::Author(const Author& other)
37  : d(new AuthorPrivate(*other.d))
38 
39 {
40 }
41 
42 Author& Author::operator=(const Author & other)
43 {
44  *this->d = *other.d;
45  return *this;
46 }
47 
48 Author::~Author()
49 {
50  delete d;
51 }
52 
53 void Author::setName(const QString& _name)
54 {
55  d->mName = _name;
56 }
57 
58 QString Author::name() const
59 {
60  return d->mName;
61 }
62 
63 void Author::setEmail(const QString& _email)
64 {
65  d->mEmail = _email;
66 }
67 
68 QString Author::email() const
69 {
70  return d->mEmail;
71 }
72 
73 void Author::setJabber(const QString& _jabber)
74 {
75  d->mJabber = _jabber;
76 }
77 
78 QString Author::jabber() const
79 {
80  return d->mJabber;
81 }
82 
83 void Author::setHomepage(const QString& _homepage)
84 {
85  d->mHomepage = _homepage;
86 }
87 
88 QString Author::homepage() const
89 {
90  return d->mHomepage;
91 }
92 
KNS::Author::jabber
QString jabber() const
Retrieve the author's jabber address.
Definition: knewstuff2/core/author.cpp:78
KNS::Author::setEmail
void setEmail(const QString &email)
Sets the email address of the author.
Definition: knewstuff2/core/author.cpp:63
KNS::Author::email
QString email() const
Retrieve the author's email address.
Definition: knewstuff2/core/author.cpp:68
KNS::Author::setJabber
void setJabber(const QString &jabber)
Sets the jabber address of the author.
Definition: knewstuff2/core/author.cpp:73
KNS::Author::~Author
~Author()
Destructor.
Definition: knewstuff2/core/author.cpp:48
KNS::Author::setName
void setName(const QString &name)
Sets the full name of the author.
Definition: knewstuff2/core/author.cpp:53
author.h
KNS::Author
KNewStuff author information.
Definition: knewstuff2/core/author.h:40
KNS::Author::name
QString name() const
Retrieve the author's name.
Definition: knewstuff2/core/author.cpp:58
QString
KNS::Author::operator=
Author & operator=(const Author &other)
Definition: knewstuff2/core/author.cpp:42
KNS::Author::Author
Author()
Constructor.
Definition: knewstuff2/core/author.cpp:31
KNS::Author::homepage
QString homepage() const
Retrieve the author's homepage.
Definition: knewstuff2/core/author.cpp:88
KNS::Author::setHomepage
void setHomepage(const QString &homepage)
Sets the homepage of the author.
Definition: knewstuff2/core/author.cpp:83
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KNewStuff

Skip menu "KNewStuff"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal