Akonadi Contacts

messagingwidgetlister.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 #ifndef MESSAGINGWIDGETLISTER_H
11 #define MESSAGINGWIDGETLISTER_H
12 
13 #include "../../widgets/kwidgetlister_p.h"
14 namespace KContacts {
15 class Addressee;
16 }
17 namespace ContactEditor {
18 class MessagingWidget;
19 class MessagingWidgetLister : public KWidgetLister
20 {
21  Q_OBJECT
22 public:
23  explicit MessagingWidgetLister(QWidget *parent = nullptr);
24  ~MessagingWidgetLister();
25 
26  void loadContact(const KContacts::Addressee &contact);
27  void storeContact(KContacts::Addressee &contact) const;
28 
29  void setReadOnly(bool readOnly);
30 
31 protected:
32  QWidget *createWidget(QWidget *) override;
33 
34 private:
35  void slotAddWidget(MessagingWidget *w);
36  void slotRemoveWidget(MessagingWidget *w);
37  void slotPreferredChanged(MessagingWidget *w);
38  void reconnectWidget(MessagingWidget *w);
39  void updateAddRemoveButton();
40 };
41 }
42 #endif // MESSAGINGWIDGETLISTER_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 23:08:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.