Akonadi Contacts

phonewidgetlister.h
1/*
2 This file is part of Contact Editor.
3
4 SPDX-FileCopyrightText: 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com
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#include "akonadi_contact_widgets_private_export.h"
14namespace KContacts
15{
16class Addressee;
17}
18namespace Akonadi
19{
20class PhoneWidget;
21class AKONADI_CONTACT_WIDGETS_TESTS_EXPORT PhoneWidgetLister : public KWidgetLister
22{
23 Q_OBJECT
24public:
25 explicit PhoneWidgetLister(QWidget *parent = nullptr);
26 ~PhoneWidgetLister() override;
27
28 void loadContact(const KContacts::Addressee &contact);
29 void storeContact(KContacts::Addressee &contact) const;
30 void setReadOnly(bool readOnly);
31
32protected:
33 QWidget *createWidget(QWidget *) override;
34
35private:
36 void slotAddWidget(PhoneWidget *w);
37 void slotRemoveWidget(PhoneWidget *w);
38 void slotPreferredChanged(PhoneWidget *w);
39 void reconnectWidget(PhoneWidget *w);
40 void updateAddRemoveButton();
41};
42}
A widget for editing the display name of a contact.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.