KGAPI2::ContactsGroup

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.

Author
Daniel Vrátil dvrat[email protected][email protected][email protected]edhat[email protected].com
Since
0.1

Definition at line 34 of file contactsgroup.h.

Constructor & Destructor Documentation

ContactsGroup::ContactsGroup ( )

Constructor.

Definition at line 39 of file contactsgroup.cpp.

ContactsGroup::ContactsGroup ( const ContactsGroup other)

Copy constructor.

Definition at line 45 of file contactsgroup.cpp.

ContactsGroup::~ContactsGroup ( )
override

Destructor.

Definition at line 51 of file contactsgroup.cpp.

Member Function Documentation

QString ContactsGroup::content ( ) const

Returns description of group content.

Definition at line 107 of file contactsgroup.cpp.

QString ContactsGroup::id ( ) const

Returns group ID.

Definition at line 87 of file contactsgroup.cpp.

bool ContactsGroup::isSystemGroup ( ) const

Returns whether the group is a system group.

Definition at line 127 of file contactsgroup.cpp.

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

Compares the groups.

Definition at line 56 of file contactsgroup.cpp.

void ContactsGroup::setContent ( const QString content)

Sets description what kind of contacts the group contains.

Parameters
content

Definition at line 102 of file contactsgroup.cpp.

void ContactsGroup::setId ( const QString id)

Sets group ID.

Parameters
id

Definition at line 82 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.

Parameters
isSystemGroup

Definition at line 122 of file contactsgroup.cpp.

void ContactsGroup::setTitle ( const QString title)

Sets group name.

Parameters
title

Definition at line 92 of file contactsgroup.cpp.

void ContactsGroup::setUpdated ( const QDateTime updated)

Sets when was the group updated last time.

Parameters
updated

Definition at line 112 of file contactsgroup.cpp.

QString ContactsGroup::title ( ) const

Returns group name.

Definition at line 97 of file contactsgroup.cpp.

QDateTime ContactsGroup::updated ( ) const

Returns date and time of last update.

Definition at line 117 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-2020 The KDE developers.
Generated on Wed Aug 12 2020 23:09:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.