KGAPI2::ContactsGroup
#include <contactsgroup.h>

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 |
![]() | |
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.
- Since
- 0.1
Definition at line 34 of file contactsgroup.h.
Constructor & Destructor Documentation
ContactsGroup::ContactsGroup | ( | ) |
Constructor.
Definition at line 38 of file contactsgroup.cpp.
ContactsGroup::ContactsGroup | ( | const ContactsGroup & | other | ) |
Copy constructor.
Definition at line 44 of file contactsgroup.cpp.
|
override |
Destructor.
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.
- Parameters
-
content
Definition at line 101 of file contactsgroup.cpp.
void ContactsGroup::setId | ( | const QString & | id | ) |
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.
- Parameters
-
isSystemGroup
Definition at line 121 of file contactsgroup.cpp.
void ContactsGroup::setTitle | ( | const QString & | title | ) |
void ContactsGroup::setUpdated | ( | const QDateTime & | updated | ) |
Sets when was the group updated last time.
- Parameters
-
updated
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:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Mar 8 2021 23:10:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.