KContacts::ContactGroup::ContactGroupReference

Search for usage in LXR

KContacts::ContactGroup::ContactGroupReference Class Reference

#include <contactgroup.h>

Public Types

typedef QVector< ContactGroupReferenceList
 

Public Member Functions

 ContactGroupReference ()
 
 ContactGroupReference (const ContactGroupReference &other)
 
 ContactGroupReference (const QString &uid)
 
 ~ContactGroupReference ()
 
QString custom (const QString &key) const
 
void insertCustom (const QString &key, const QString &value)
 
ContactGroupReferenceoperator= (const ContactGroupReference &other)
 
bool operator== (const ContactGroupReference &other) const
 
void removeCustom (const QString &key)
 
void setUid (const QString &uid)
 
QString uid () const
 

Detailed Description

This class represents a contact group reference.

Definition at line 146 of file contactgroup.h.

Member Typedef Documentation

A list of contact group references.

Definition at line 152 of file contactgroup.h.

Constructor & Destructor Documentation

ContactGroup::ContactGroupReference::ContactGroupReference ( )

Creates an empty contact group reference.

Definition at line 137 of file contactgroup.cpp.

ContactGroup::ContactGroupReference::ContactGroupReference ( const ContactGroupReference other)

Creates a contact group reference from an other reference.

Definition at line 142 of file contactgroup.cpp.

ContactGroup::ContactGroupReference::ContactGroupReference ( const QString uid)

Creates a contact group reference for the given contact group uid.

Definition at line 147 of file contactgroup.cpp.

ContactGroup::ContactGroupReference::~ContactGroupReference ( )

Destroys the contact group reference.

Definition at line 153 of file contactgroup.cpp.

Member Function Documentation

QString ContactGroup::ContactGroupReference::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 177 of file contactgroup.cpp.

void ContactGroup::ContactGroupReference::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 167 of file contactgroup.cpp.

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

Definition at line 182 of file contactgroup.cpp.

bool ContactGroup::ContactGroupReference::operator== ( const ContactGroupReference other) const

Definition at line 191 of file contactgroup.cpp.

void ContactGroup::ContactGroupReference::removeCustom ( const QString key)

Removes the custom entry with the given key.

Definition at line 172 of file contactgroup.cpp.

void ContactGroup::ContactGroupReference::setUid ( const QString uid)

Sets the contact group uid of the contact group reference.

Definition at line 157 of file contactgroup.cpp.

QString ContactGroup::ContactGroupReference::uid ( ) const

Returns the contact group uid of the contact group reference.

Definition at line 162 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-2021 The KDE developers.
Generated on Sun Dec 5 2021 22:49:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.