File indexing completed on 2024-11-24 04:39:31
0001 /* 0002 This file is part of Contact Editor. 0003 0004 SPDX-FileCopyrightText: 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com 0005 SPDX-FileCopyrightText: 2016-2020 Laurent Montel <montel.org> 0006 0007 SPDX-License-Identifier: LGPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include "akonadi_contact_widgets_private_export.h" 0013 #include <QWidget> 0014 namespace KContacts 0015 { 0016 class Addressee; 0017 } 0018 namespace Akonadi 0019 { 0020 class PhoneWidgetLister; 0021 class AKONADI_CONTACT_WIDGETS_TESTS_EXPORT PhoneListWidget : public QWidget 0022 { 0023 Q_OBJECT 0024 public: 0025 explicit PhoneListWidget(QWidget *parent = nullptr); 0026 ~PhoneListWidget() override; 0027 void loadContact(const KContacts::Addressee &contact); 0028 void storeContact(KContacts::Addressee &contact) const; 0029 void setReadOnly(bool readOnly); 0030 0031 private: 0032 Akonadi::PhoneWidgetLister *mPhoneWidgetLister = nullptr; 0033 }; 0034 }