• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KCal Library

KCal::Person

KCal::Person Class Reference

This class represents a person, with a name and an email address. More...

#include <person.h>

Inheritance diagram for KCal::Person:

Inheritance graph
[legend]

List of all members.


Public Member Functions

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

Static Public Member Functions

static Person fromFullName (const QString &fullName)

Detailed Description

This class represents a person, with a name and an email address.

It supports the "FirstName LastName <emailaddress>" format.

Definition at line 47 of file person.h.


Constructor & Destructor Documentation

Person::Person (  ) 

Constructs a blank person.

Private class that helps to provide binary compatibility between releases.

For internal use only.

Definition at line 58 of file person.cpp.

Person::Person ( const QString &  fullName  )  [explicit]

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:
name is the name of this person.
email is 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:
person is 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 140 of file person.cpp.

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

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

Parameters:
fullName is the name and email of the person in the form FirstName LastName <email>.

Definition at line 68 of file person.cpp.

QString Person::fullName (  )  const

Returns the full name of this person.

Definition at line 110 of file person.cpp.

bool Person::isEmpty (  )  const

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

Definition at line 145 of file person.cpp.

QString Person::name (  )  const

Returns the person name string.

See also:
setName()

Definition at line 135 of file person.cpp.

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

Sets this person equal to person.

Parameters:
person is the person to copy.

Definition at line 99 of file person.cpp.

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

Compares this with person for equality.

Parameters:
person is the person to compare.

Definition at line 92 of file person.cpp.

void Person::setEmail ( const QString &  email  ) 

Sets the email address for this person to email.

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

Definition at line 155 of file person.cpp.

void Person::setName ( const QString &  name  ) 

Sets the name of the person to name.

Parameters:
name is the name of this person.
See also:
name()

Definition at line 150 of file person.cpp.


The documentation for this class was generated from the following files:
  • person.h
  • person.cpp

KCal Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal