• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

KCal Library

  • kcal
person.h
Go to the documentation of this file.
1/*
2 This file is part of the kcal library.
3
4 Copyright (c) 2001-2003 Cornelius Schumacher <schumacher@kde.org>
5 Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
16
17 You should have received a copy of the GNU Library General Public License
18 along with this library; see the file COPYING.LIB. If not, write to
19 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21*/
31#ifndef KCAL_PERSON_H
32#define KCAL_PERSON_H
33
34#include <QtCore/QString>
35#include <QtCore/QHash>
36
37#include "kcal_export.h"
38
39namespace KCal {
40
48class KCAL_DEPRECATED_EXPORT Person
49{
50 public:
54 Person();
55
62 static Person fromFullName( const QString &fullName );
63
72 KCAL_DEPRECATED explicit Person( const QString &fullName );
73
80 Person( const QString &name, const QString &email );
81
87 Person( const Person &person );
88
92 ~Person();
93
97 bool isEmpty() const;
98
102 QString fullName( ) const;
103
111 void setName( const QString &name );
112
118 QString name() const;
119
127 void setEmail( const QString &email );
128
134 QString email() const;
135
141 //KDE5: make const for all
142#if defined(Q_CC_MSVC)
143 bool operator==( const Person &person ) const;
144#else
145 bool operator==( const Person &person ); //krazy:exclude=operators
146#endif
152 Person &operator=( const Person &person );
153
154 private:
155 //@cond PRIVATE
156 class Private;
157 Private *const d;
158 //@endcond
159};
160
161}
162
163/*
164 Return a hash value for a Person argument.
165 @param key is a Person.
166 @since 4.4
167*/
168inline uint qHash( const KCal::Person &key ) //krazy:exclude=inline
169{
170 return qHash( key.fullName() );
171}
172
173#endif
KCal::Person
Represents a person, by name ane email address.
Definition: person.h:49
KCal::Person::fullName
QString fullName() const
Returns the full name of this person.
Definition: person.cpp:114
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KCal Library

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

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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