Akonadi Contacts

webwidgetlister.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 "../../widgets/kwidgetlister_p.h"
13 namespace KContacts
14 {
15 class Addressee;
16 }
17 namespace ContactEditor
18 {
19 class WebWidget;
20 class WebWidgetLister : public KWidgetLister
21 {
22  Q_OBJECT
23 public:
24  explicit WebWidgetLister(QWidget *parent = nullptr);
25  ~WebWidgetLister() override;
26 
27  void loadContact(const KContacts::Addressee &contact);
28  void storeContact(KContacts::Addressee &contact) const;
29  void setReadOnly(bool readOnly);
30 
31 protected:
32  QWidget *createWidget(QWidget *) override;
33 
34 private:
35  void slotAddWidget(WebWidget *w);
36  void slotRemoveWidget(WebWidget *w);
37  void slotPreferredChanged(WebWidget *w);
38  void reconnectWidget(WebWidget *w);
39  void updateAddRemoveButton();
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:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.