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

kabc

  • KABC
  • ContactGroup
  • Data
Public Types | Public Member Functions | List of all members
KABC::ContactGroup::Data Class Reference

#include <contactgroup.h>

Public Types

typedef QList< Data > List
 

Public Member Functions

 Data ()
 
 Data (const Data &other)
 
 Data (const QString &name, const QString &email)
 
 ~Data ()
 
QString custom (const QString &key) const
 
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)
 

Detailed Description

This class represents a contact data object.

Definition at line 237 of file contactgroup.h.

Member Typedef Documentation

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

A list of contact data.

Definition at line 243 of file contactgroup.h.

Constructor & Destructor Documentation

ContactGroup::Data::Data ( )

Creates an empty contact data object.

Definition at line 236 of file contactgroup.cpp.

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

Creates a contact data object from an other data object.

Definition at line 241 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 246 of file contactgroup.cpp.

ContactGroup::Data::~Data ( )

Destroys the contact data object.

Definition at line 253 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 287 of file contactgroup.cpp.

QString ContactGroup::Data::email ( ) const

Returns the email address of the contact data object.

Definition at line 272 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
keyThe unique key.
valueThe value.

Definition at line 277 of file contactgroup.cpp.

QString ContactGroup::Data::name ( ) const

Returns the name of the contact data object.

Definition at line 262 of file contactgroup.cpp.

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

Definition at line 292 of file contactgroup.cpp.

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

Definition at line 301 of file contactgroup.cpp.

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

Removes the custom entry with the given key.

Definition at line 282 of file contactgroup.cpp.

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

Sets the email address of the contact data object.

Definition at line 267 of file contactgroup.cpp.

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

Sets the name of the contact data object.

Definition at line 257 of file contactgroup.cpp.


The documentation for this class was generated from the following files:
  • contactgroup.h
  • contactgroup.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • 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