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

KCal Library

  • KCal
  • Person
Public Member Functions | Static Public Member Functions | List of all members
KCal::Person Class Reference

#include <person.h>

Inheritance diagram for KCal::Person:
Inheritance graph
[legend]

Public Member Functions

 Person ()
 
KCAL_DEPRECATED Person (const QString &fullName)
 
 Person (const QString &name, const QString &email)
 
 Person (const Person &person)
 
 ~Person ()
 
QString email () const
 
QString fullName () const
 
bool isEmpty () const
 
QString name () const
 
Person & operator= (const Person &person)
 
bool operator== (const Person &person)
 
void setEmail (const QString &email)
 
void setName (const QString &name)
 

Static Public Member Functions

static Person fromFullName (const QString &fullName)
 

Detailed Description

Represents a person, by name ane email address.

This class represents a person, with a name and an email address. It supports the "FirstName LastName\ <mail@domain\>" format.

Definition at line 48 of file person.h.

Constructor & Destructor Documentation

Person::Person ( )

Constructs a blank person.

Private class that helps to provide binary compatibility between releases.

Definition at line 58 of file person.cpp.

Person::Person ( const QString &  fullName)
explicit

Constructs a person with name and email address taken from fullName.

Parameters
fullNameis the name and email of the person in the form "FirstName LastName \<mail@domain\>".
Deprecated:
use fromFullName() instead.

Definition at line 62 of file person.cpp.

Person::Person ( const QString &  name,
const QString &  email 
)

Constructs a person with the name name and email address email.

Parameters
nameis the name of this person.
emailis the email address of this person.

Definition at line 75 of file person.cpp.

Person::Person ( const Person &  person)

Constructs a person as a copy of another person object.

Parameters
personis the person to copy.

Definition at line 82 of file person.cpp.

Person::~Person ( )

Destroys a person.

Definition at line 87 of file person.cpp.

Member Function Documentation

QString Person::email ( ) const

Returns the email address for this person.

See also
setEmail()

Definition at line 144 of file person.cpp.

Person Person::fromFullName ( const QString &  fullName)
static

Constructs a person with name and email address taken from fullName.

Parameters
fullNameis the name and email of the person in the form "FirstName LastName \<mail@domain\>".

Definition at line 68 of file person.cpp.

QString Person::fullName ( ) const

Returns the full name of this person.

Definition at line 114 of file person.cpp.

bool Person::isEmpty ( ) const

Returns true if the person name and email address are empty.

Definition at line 149 of file person.cpp.

QString Person::name ( ) const

Returns the person name string.

See also
setName()

Definition at line 139 of file person.cpp.

Person & KCal::Person::operator= ( const Person &  person)

Sets this person equal to person.

Parameters
personis the person to copy.

Definition at line 103 of file person.cpp.

bool KCal::Person::operator== ( const Person &  person)

Compares this with person for equality.

Parameters
personis the person to compare.

Definition at line 95 of file person.cpp.

void Person::setEmail ( const QString &  email)

Sets the email address for this person to email.

Parameters
emailis the email address for this person.
See also
email()

Definition at line 159 of file person.cpp.

void Person::setName ( const QString &  name)

Sets the name of the person to name.

Parameters
nameis the name of this person.
See also
name()

Definition at line 154 of file person.cpp.


The documentation for this class was generated from the following files:
  • person.h
  • person.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:58 by doxygen 1.8.7 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 API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

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