Akonadi Contacts

abstractcontactformatter.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 "abstractcontactformatter.h"
10
11#include <Akonadi/Item>
12#include <KContacts/Addressee>
13
14using namespace Akonadi;
15
16class Akonadi::AbstractContactFormatterPrivate
17{
18public:
19 KContacts::Addressee mContact;
20 Akonadi::Item mItem;
21 QList<QVariantMap> mCustomFieldDescriptions;
22};
23
25 : d(new AbstractContactFormatterPrivate)
26{
27}
28
30
32{
33 d->mContact = contact;
34}
35
37{
38 return d->mContact;
39}
40
42{
43 d->mItem = item;
44}
45
47{
48 return d->mItem;
49}
50
52{
53 d->mCustomFieldDescriptions = descriptions;
54}
55
57{
58 return d->mCustomFieldDescriptions;
59}
KContacts::Addressee contact() const
Returns the contact that will be formatted.
Akonadi::Item item() const
Returns the item who's payload will be formatted.
QList< QVariantMap > customFieldDescriptions() const
Returns the custom field descriptions that will be used.
virtual ~AbstractContactFormatter()
Destroys the abstract contact formatter.
void setContact(const KContacts::Addressee &contact)
Sets the contact that will be formatted.
void setItem(const Akonadi::Item &item)
Sets the item who's payload will be formatted.
AbstractContactFormatter()
Creates a new abstract contact formatter.
void setCustomFieldDescriptions(const QList< QVariantMap > &descriptions)
Sets the custom field descriptions that will be used.
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 Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.