Akonadi Contacts

abstractcontactgroupformatter.cpp
1 /*
2  This file is part of Akonadi Contact.
3 
4  SPDX-FileCopyrightText: 2010 Tobias Koenig <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #include "abstractcontactgroupformatter.h"
10 
11 #include <item.h>
12 #include <kcontacts/contactgroup.h>
13 
14 using namespace Akonadi;
15 
16 class Q_DECL_HIDDEN AbstractContactGroupFormatter::Private
17 {
18 public:
19  KContacts::ContactGroup mContactGroup;
20  Akonadi::Item mItem;
21  QVector<QVariantMap> mAdditionalFields;
22 };
23 
25  : d(new Private)
26 {
27 }
28 
30 {
31  delete d;
32 }
33 
35 {
36  d->mContactGroup = group;
37 }
38 
40 {
41  return d->mContactGroup;
42 }
43 
45 {
46  d->mItem = item;
47 }
48 
50 {
51  return d->mItem;
52 }
53 
55 {
56  d->mAdditionalFields = fields;
57 }
58 
60 {
61  return d->mAdditionalFields;
62 }
AbstractContactGroupFormatter()
Creates a new abstract contact group formatter.
The interface for all contact group formatters.
Akonadi::Item item() const
Returns the item who&#39;s payload will be formatted.
QVector< QVariantMap > additionalFields() const
Returns the additional fields that will be shown.
KContacts::ContactGroup contactGroup() const
Returns the contact group that will be formatted.
void setItem(const Akonadi::Item &item)
Sets the item who&#39;s payload will be formatted.
virtual ~AbstractContactGroupFormatter()
Destroys the abstract contact group formatter.
void setContactGroup(const KContacts::ContactGroup &group)
Sets the contact group that will be formatted.
void setAdditionalFields(const QVector< QVariantMap > &fields)
Sets the additional fields that will be shown.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Jun 18 2021 23:08:56 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.