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, [email protected]
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 
15 namespace KContacts
16 {
17 class Addressee;
18 }
19 
20 namespace ContactEditor
21 {
22 class CustomFieldEditorWidget;
23 class CustomFieldsListWidget;
24 class CustomFieldsWidget : public QWidget
25 {
26  Q_OBJECT
27 public:
28  explicit CustomFieldsWidget(QWidget *parent = nullptr);
29  ~CustomFieldsWidget();
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  Q_REQUIRED_RESULT QVariantList localCustomFieldDescriptions() const;
36 
37 private:
38  ContactEditor::CustomFieldEditorWidget *mCustomFieldEditorWidget = nullptr;
39  ContactEditor::CustomFieldsListWidget *mCustomFieldsListWidget = nullptr;
40 };
41 }
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.