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 <Akonadi/CategoriesEditAbstractWidget>
12 #include <KContacts/Addressee>
13 #include <KJob>
14 #include <QVariant>
15 namespace Akonadi
16 {
17 class TagWidget;
18 }
19 
20 /**
21  * @short A widget for editing the categories of a contact.
22  */
23 class CategoriesEditWidget : public ContactEditor::CategoriesEditAbstractWidget
24 {
25  Q_OBJECT
26 
27 public:
28  explicit CategoriesEditWidget(QWidget *parent = nullptr, const QList<QVariant> & = {});
29  ~CategoriesEditWidget() override;
30 
31  void loadContact(const KContacts::Addressee &contact) override;
32  void storeContact(KContacts::Addressee &contact) const override;
33 
34  void setReadOnly(bool readOnly) override;
35 
36 private:
37  Akonadi::TagWidget *const mTagWidget;
38 
39 private Q_SLOTS:
40  void onMissingTagCreated(KJob *);
41 };
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
A widget for editing the categories of a contact.
QObject * parent() const const
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.