Akonadi Contacts

akonadi-contacts/plugins/categorieseditwidget.h
1 /*
2  This file is part of Contact Editor.
3 
4  SPDX-FileCopyrightText: 2010 Tobias Koenig <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #pragma once
10 
11 #include <ContactEditor/CategoriesEditAbstractWidget>
12 #include <QVariant>
13 #include <kcontacts/addressee.h>
14 namespace Akonadi
15 {
16 class TagWidget;
17 }
18 
19 /**
20  * @short A widget for editing the categories of a contact.
21  */
22 class CategoriesEditWidget : public ContactEditor::CategoriesEditAbstractWidget
23 {
24  Q_OBJECT
25 
26 public:
27  explicit CategoriesEditWidget(QWidget *parent = nullptr, const QList<QVariant> & = {});
28  ~CategoriesEditWidget() override;
29 
30  void loadContact(const KContacts::Addressee &contact) override;
31  void storeContact(KContacts::Addressee &contact) const override;
32 
33  void setReadOnly(bool readOnly) override;
34 
35 private:
36  Akonadi::TagWidget *const mTagWidget;
37 };
38 
A widget for editing the categories of a contact.
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.