Akonadi Contacts

abstractcontactgroupformatter.cpp
1/*
2 This file is part of Akonadi Contact.
3
4 SPDX-FileCopyrightText: 2010 Tobias Koenig <tokoe@kde.org>
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
14using namespace Akonadi;
15
16class Akonadi::AbstractContactGroupFormatterPrivate
17{
18public:
19 KContacts::ContactGroup mContactGroup;
20 Akonadi::Item mItem;
21 QList<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}
QList< QVariantMap > additionalFields() const
Returns the additional fields that will be shown.
Akonadi::Item item() const
Returns the item who's payload will be formatted.
void setItem(const Akonadi::Item &item)
Sets the item who's payload will be formatted.
KContacts::ContactGroup contactGroup() const
Returns the contact group that will be formatted.
void setContactGroup(const KContacts::ContactGroup &group)
Sets the contact group that will be formatted.
void setAdditionalFields(const QList< QVariantMap > &fields)
Sets the additional fields that will be shown.
AbstractContactGroupFormatter()
Creates a new abstract contact group formatter.
virtual ~AbstractContactGroupFormatter()
Destroys the abstract contact group formatter.
A widget for editing the display name of a contact.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 21 2024 12:03:02 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.