Akonadi Contacts

customfieldswidget.h
1/*
2 This file is part of Contact Editor.
3
4 SPDX-FileCopyrightText: 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com
5 SPDX-FileCopyrightText: 2016-2020 Laurent Montel <montel.org>
6
7 SPDX-License-Identifier: LGPL-2.0-or-later
8*/
9
10#pragma once
11
12#include <QVariantList>
13#include <QWidget>
14
15namespace KContacts
16{
17class Addressee;
18}
19
20namespace Akonadi
21{
22class CustomFieldEditorWidget;
23class CustomFieldsListWidget;
24class CustomFieldsWidget : public QWidget
25{
27public:
28 explicit CustomFieldsWidget(QWidget *parent = nullptr);
29 ~CustomFieldsWidget() override;
30 void storeContact(KContacts::Addressee &contact) const;
31 void loadContact(const KContacts::Addressee &contact);
32
33 void setReadOnly(bool readOnly);
34 void setLocalCustomFieldDescriptions(const QVariantList &descriptions);
35 [[nodiscard]] QVariantList localCustomFieldDescriptions() const;
36
37private:
38 Akonadi::CustomFieldEditorWidget *mCustomFieldEditorWidget = nullptr;
39 Akonadi::CustomFieldsListWidget *mCustomFieldsListWidget = nullptr;
40};
41}
A widget for editing the display name of a contact.
Q_OBJECTQ_OBJECT
QObject * parent() const const
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.