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 32 of file contactsgroup.h.
Constructor & Destructor Documentation
◆ ContactsGroup() [1/2]
ContactsGroup::ContactsGroup | ( | ) |
Constructor.
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()
|
override |
Destructor.
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.
- Parameters
-
content
Definition at line 99 of file contactsgroup.cpp.
◆ setId()
void ContactsGroup::setId | ( | const QString & | id | ) |
◆ 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.
- Parameters
-
isSystemGroup
Definition at line 119 of file contactsgroup.cpp.
◆ setTitle()
void ContactsGroup::setTitle | ( | const QString & | title | ) |
◆ setUpdated()
void ContactsGroup::setUpdated | ( | const QDateTime & | updated | ) |
Sets when was the group updated last time.
- Parameters
-
updated
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:
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.