Search for usage in LXR

KGAPI2::ContactsGroup Class Reference

#include <contactsgroup.h>

Inheritance diagram for KGAPI2::ContactsGroup:

Public Member Functions

 ContactsGroup ()
 ContactsGroup (const ContactsGroup &other)
 ~ContactsGroup () override
QString content () const
QString id () const
bool isSystemGroup () const
bool operator== (const ContactsGroup &other) const
void setContent (const QString &content)
void setId (const QString &id)
void setIsSystemGroup (const bool isSystemGroup)
void setTitle (const QString &title)
void setUpdated (const QDateTime &updated)
QString title () const
QDateTime updated () const
- Public Member Functions inherited from KGAPI2::Object
 Object ()
 Object (const Object &other)
virtual ~Object ()
QString etag () const
bool operator== (const Object &other) const
void setEtag (const QString &etag)

Detailed Description

Represents a contacts group.

Note that this is not the same as vCard contact groups. ContactsGroup is similar to an addressbook - it contains set of full-featured Contacts.

Unlike regular addressbooks however, a single instance of contact can be present in multiple ContactsGroup.

Daniel VrĂ¡til dvrat[email protected][email protected][email protected]edhat[email protected].com

Definition at line 33 of file contactsgroup.h.

Constructor & Destructor Documentation

ContactsGroup::ContactsGroup ( )


Definition at line 38 of file contactsgroup.cpp.

ContactsGroup::ContactsGroup ( const ContactsGroup other)

Copy constructor.

Definition at line 44 of file contactsgroup.cpp.

ContactsGroup::~ContactsGroup ( )


Definition at line 50 of file contactsgroup.cpp.

Member Function Documentation

QString ContactsGroup::content ( ) const

Returns description of group content.

Definition at line 106 of file contactsgroup.cpp.

QString ContactsGroup::id ( ) const

Returns group ID.

Definition at line 86 of file contactsgroup.cpp.

bool ContactsGroup::isSystemGroup ( ) const

Returns whether the group is a system group.

Definition at line 126 of file contactsgroup.cpp.

bool ContactsGroup::operator== ( const ContactsGroup other) const

Compares the groups.

Definition at line 55 of file contactsgroup.cpp.

void ContactsGroup::setContent ( const QString content)

Sets description what kind of contacts the group contains.


Definition at line 101 of file contactsgroup.cpp.

void ContactsGroup::setId ( const QString id)

Sets group ID.


Definition at line 81 of file contactsgroup.cpp.

void ContactsGroup::setIsSystemGroup ( const bool  isSystemGroup)

Sets whether this group is a system group.

The system groups (Family, Co-workers, etc.) are present in all addressbooks.

Default value is false.


Definition at line 121 of file contactsgroup.cpp.

void ContactsGroup::setTitle ( const QString title)

Sets group name.


Definition at line 91 of file contactsgroup.cpp.

void ContactsGroup::setUpdated ( const QDateTime updated)

Sets when was the group updated last time.


Definition at line 111 of file contactsgroup.cpp.

QString ContactsGroup::title ( ) const

Returns group name.

Definition at line 96 of file contactsgroup.cpp.

QDateTime ContactsGroup::updated ( ) const

Returns date and time of last update.

Definition at line 116 of file contactsgroup.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 Sep 26 2021 23:12:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.