/*
    This file is part of Contact Editor.

    SPDX-FileCopyrightText: 2016 eyeOS S.L.U., a Telefonica company, sales@eyeos.com
    SPDX-FileCopyrightText: 2016-2020 Laurent Montel <montel.org>

    SPDX-License-Identifier: LGPL-2.0-or-later
*/

#ifndef PHONELISTWIDGET_H
#define PHONELISTWIDGET_H

#include "contacteditor_private_export.h"
#include <QWidget>
namespace KContacts
{
class Addressee;
}
namespace ContactEditor
{
class PhoneWidgetLister;
class CONTACTEDITOR_TESTS_EXPORT PhoneListWidget : public QWidget
{
    Q_OBJECT
public:
    explicit PhoneListWidget(QWidget *parent = nullptr);
    ~PhoneListWidget();
    void loadContact(const KContacts::Addressee &contact);
    void storeContact(KContacts::Addressee &contact) const;
    void setReadOnly(bool readOnly);

private:
    ContactEditor::PhoneWidgetLister *mPhoneWidgetLister = nullptr;
};
}
#endif // PHONELISTWIDGET_H
