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 32 of file contactsgroup.h.

Constructor & Destructor Documentation

◆ ContactsGroup() [1/2]

ContactsGroup::ContactsGroup ( )


Definition at line 36 of file contactsgroup.cpp.

◆ ContactsGroup() [2/2]

ContactsGroup::ContactsGroup ( const ContactsGroup other)

Copy constructor.

Definition at line 42 of file contactsgroup.cpp.

◆ ~ContactsGroup()

ContactsGroup::~ContactsGroup ( )


Definition at line 48 of file contactsgroup.cpp.

Member Function Documentation

◆ content()

QString ContactsGroup::content ( ) const

Returns description of group content.

Definition at line 104 of file contactsgroup.cpp.

◆ id()

QString ContactsGroup::id ( ) const

Returns group ID.

Definition at line 84 of file contactsgroup.cpp.

◆ isSystemGroup()

bool ContactsGroup::isSystemGroup ( ) const

Returns whether the group is a system group.

Definition at line 124 of file contactsgroup.cpp.

◆ operator==()

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

Compares the groups.

Definition at line 53 of file contactsgroup.cpp.

◆ setContent()

void ContactsGroup::setContent ( const QString content)

Sets description what kind of contacts the group contains.


Definition at line 99 of file contactsgroup.cpp.

◆ setId()

void ContactsGroup::setId ( const QString id)

Sets group ID.


Definition at line 79 of file contactsgroup.cpp.

◆ setIsSystemGroup()

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 119 of file contactsgroup.cpp.

◆ setTitle()

void ContactsGroup::setTitle ( const QString title)

Sets group name.


Definition at line 89 of file contactsgroup.cpp.

◆ setUpdated()

void ContactsGroup::setUpdated ( const QDateTime updated)

Sets when was the group updated last time.


Definition at line 109 of file contactsgroup.cpp.

◆ title()

QString ContactsGroup::title ( ) const

Returns group name.

Definition at line 94 of file contactsgroup.cpp.

◆ updated()

QDateTime ContactsGroup::updated ( ) const

Returns date and time of last update.

Definition at line 114 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-2022 The KDE developers.
Generated on Wed Aug 17 2022 04:12:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.