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 <Akonadi/Item>
12 #include <KContacts/ContactGroup>
13 
14 using namespace Akonadi;
15 
16 class Akonadi::AbstractContactGroupFormatterPrivate
17 {
18 public:
19  KContacts::ContactGroup mContactGroup;
20  Akonadi::Item mItem;
21  QVector<QVariantMap> mAdditionalFields;
22 };
23 
25  : d(new AbstractContactGroupFormatterPrivate)
26 {
27 }
28 
30 
32 {
33  d->mContactGroup = group;
34 }
35 
37 {
38  return d->mContactGroup;
39 }
40 
42 {
43  d->mItem = item;
44 }
45 
47 {
48  return d->mItem;
49 }
50 
52 {
53  d->mAdditionalFields = fields;
54 }
55 
57 {
58  return d->mAdditionalFields;
59 }
KContacts::ContactGroup contactGroup() const
Returns the contact group that will be formatted.
AbstractContactGroupFormatter()
Creates a new abstract contact group formatter.
Akonadi::Item item() const
Returns the item who's payload will be formatted.
virtual ~AbstractContactGroupFormatter()
Destroys the abstract contact group formatter.
void setItem(const Akonadi::Item &item)
Sets the item who's payload will be formatted.
void setAdditionalFields(const QVector< QVariantMap > &fields)
Sets the additional fields that will be shown.
QVector< QVariantMap > additionalFields() const
Returns the additional fields that will be shown.
void setContactGroup(const KContacts::ContactGroup &group)
Sets the contact group that will be formatted.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:04 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.