KContacts::ContactGroup::Data

Search for usage in LXR

KContacts::ContactGroup::Data Class Reference

#include <contactgroup.h>

Public Types

typedef QList< DataList
 

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
 
Dataoperator= (const Data &other)
 
bool operator== (const Data &other) 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 223 of file contactgroup.h.

Member Typedef Documentation

◆ List

A list of contact data.

Definition at line 229 of file contactgroup.h.

Constructor & Destructor Documentation

◆ Data() [1/3]

ContactGroup::Data::Data ( )

Creates an empty contact data object.

Definition at line 217 of file contactgroup.cpp.

◆ Data() [2/3]

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

Creates a contact data object from an other data object.

Definition at line 222 of file contactgroup.cpp.

◆ Data() [3/3]

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

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

Definition at line 227 of file contactgroup.cpp.

◆ ~Data()

ContactGroup::Data::~Data ( )

Destroys the contact data object.

Definition at line 234 of file contactgroup.cpp.

Member Function Documentation

◆ custom()

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 268 of file contactgroup.cpp.

◆ email()

QString ContactGroup::Data::email ( ) const

Returns the email address of the contact data object.

Definition at line 253 of file contactgroup.cpp.

◆ insertCustom()

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 258 of file contactgroup.cpp.

◆ name()

QString ContactGroup::Data::name ( ) const

Returns the name of the contact data object.

Definition at line 243 of file contactgroup.cpp.

◆ operator=()

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

Definition at line 273 of file contactgroup.cpp.

◆ operator==()

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

Definition at line 282 of file contactgroup.cpp.

◆ removeCustom()

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

Removes the custom entry with the given key.

Definition at line 263 of file contactgroup.cpp.

◆ setEmail()

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

Sets the email address of the contact data object.

Definition at line 248 of file contactgroup.cpp.

◆ setName()

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

Sets the name of the contact data object.

Definition at line 238 of file contactgroup.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.