Akonadi Contacts

abstractcontactformatter.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 "abstractcontactformatter.h"
10 
11 #include <Akonadi/Item>
12 #include <KContacts/Addressee>
13 
14 using namespace Akonadi;
15 
16 class Akonadi::AbstractContactFormatterPrivate
17 {
18 public:
19  KContacts::Addressee mContact;
20  Akonadi::Item mItem;
21  QVector<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 }
void setContact(const KContacts::Addressee &contact)
Sets the contact that will be formatted.
KContacts::Addressee contact() const
Returns the contact that will be formatted.
void setItem(const Akonadi::Item &item)
Sets the item who's payload will be formatted.
QVector< QVariantMap > customFieldDescriptions() const
Returns the custom field descriptions that will be used.
Akonadi::Item item() const
Returns the item who's payload will be formatted.
AbstractContactFormatter()
Creates a new abstract contact formatter.
void setCustomFieldDescriptions(const QVector< QVariantMap > &descriptions)
Sets the custom field descriptions that will be used.
virtual ~AbstractContactFormatter()
Destroys the abstract contact formatter.
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.