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

kabc

KABC::ContactGroup::Data

KABC::ContactGroup::Data Class Reference

This class represents a contact data object. More...

#include <contactgroup.h>

List of all members.


Public Types

typedef QList< Data > List

Public Member Functions

QString custom (const QString &key) const
 Data (const QString &name, const QString &email)
 Data (const Data &other)
 Data ()
QString email () const
void insertCustom (const QString &key, const QString &value)
QString name () const
Data & operator= (const Data &)
bool operator== (const Data &) const
void removeCustom (const QString &key)
void setEmail (const QString &email)
void setName (const QString &name)
 ~Data ()

Detailed Description

This class represents a contact data object.

Definition at line 217 of file contactgroup.h.


Member Typedef Documentation

typedef QList<Data> KABC::ContactGroup::Data::List

A list of contact data.

Definition at line 223 of file contactgroup.h.


Constructor & Destructor Documentation

ContactGroup::Data::Data (  ) 

Creates an empty contact data object.

Definition at line 225 of file contactgroup.cpp.

ContactGroup::Data::Data ( const Data &  other  ) 

Creates a contact data object from an other data object.

Definition at line 230 of file contactgroup.cpp.

ContactGroup::Data::Data ( const QString &  name,
const QString &  email 
)

Creates a contact data object with the given name and email address.

Definition at line 235 of file contactgroup.cpp.

ContactGroup::Data::~Data (  ) 

Destroys the contact data object.

Definition at line 242 of file contactgroup.cpp.


Member Function Documentation

QString ContactGroup::Data::custom ( const QString &  key  )  const

Returns the value for the given key, or an empty string if the entry for that key does not exists.

Definition at line 276 of file contactgroup.cpp.

QString ContactGroup::Data::email (  )  const

Returns the email address of the contact data object.

Definition at line 261 of file contactgroup.cpp.

void ContactGroup::Data::insertCustom ( const QString &  key,
const QString &  value 
)

Inserts a custom entry.

If an entry with the same key already exists, it is overwritten.

Parameters:
key The unique key.
value The value.

Definition at line 266 of file contactgroup.cpp.

QString ContactGroup::Data::name (  )  const

Returns the name of the contact data object.

Definition at line 251 of file contactgroup.cpp.

ContactGroup::Data & ContactGroup::Data::operator= ( const Data &  other  ) 

For internal use only.

Definition at line 281 of file contactgroup.cpp.

bool ContactGroup::Data::operator== ( const Data &  other  )  const

For internal use only.

Definition at line 290 of file contactgroup.cpp.

void ContactGroup::Data::removeCustom ( const QString &  key  ) 

Removes the custom entry with the given key.

Definition at line 271 of file contactgroup.cpp.

void ContactGroup::Data::setEmail ( const QString &  email  ) 

Sets the email address of the contact data object.

Definition at line 256 of file contactgroup.cpp.

void ContactGroup::Data::setName ( const QString &  name  ) 

Sets the name of the contact data object.

Definition at line 246 of file contactgroup.cpp.


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

kabc

Skip menu "kabc"
  • 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