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 <item.h>
12 #include <kcontacts/addressee.h>
13 
14 using namespace Akonadi;
15 
16 class Q_DECL_HIDDEN AbstractContactFormatter::Private
17 {
18 public:
19  KContacts::Addressee mContact;
20  Akonadi::Item mItem;
21  QVector<QVariantMap> mCustomFieldDescriptions;
22 };
23 
25  : d(new Private)
26 {
27 }
28 
30 {
31  delete d;
32 }
33 
35 {
36  d->mContact = contact;
37 }
38 
40 {
41  return d->mContact;
42 }
43 
45 {
46  d->mItem = item;
47 }
48 
50 {
51  return d->mItem;
52 }
53 
55 {
56  d->mCustomFieldDescriptions = descriptions;
57 }
58 
60 {
61  return d->mCustomFieldDescriptions;
62 }
QVector< QVariantMap > customFieldDescriptions() const
Returns the custom field descriptions that will be used.
void setContact(const KContacts::Addressee &contact)
Sets the contact that will be formatted.
void setItem(const Akonadi::Item &item)
Sets the item who&#39;s payload will be formatted.
KContacts::Addressee contact() const
Returns the contact that 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.
Akonadi::Item item() const
Returns the item who&#39;s payload will be formatted.
virtual ~AbstractContactFormatter()
Destroys the abstract contact formatter.
The interface for all contact formatters.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jun 23 2021 23:09:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.