File indexing completed on 2025-01-05 04:58:21

0001 /*
0002    SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "pimcommonakonadi_export.h"
0010 #include <QObject>
0011 
0012 namespace PimCommon
0013 {
0014 class AddresseeLineEdit;
0015 /**
0016  * @brief The AddressessLineEditAbstractPluginInfo struct
0017  * @author Laurent Montel <montel@kde.org>
0018  */
0019 struct PIMCOMMONAKONADI_EXPORT AddressessLineEditAbstractPluginInfo {
0020     QString name;
0021     QString identifier;
0022     QString description;
0023 };
0024 
0025 /**
0026  * @brief The AddressessLineEditAbstractPlugin class
0027  * @author Laurent Montel <montel@kde.org>
0028  */
0029 class PIMCOMMONAKONADI_EXPORT AddressessLineEditAbstractPlugin : public QObject
0030 {
0031     Q_OBJECT
0032 public:
0033     explicit AddressessLineEditAbstractPlugin(QObject *parent = nullptr);
0034     ~AddressessLineEditAbstractPlugin() override;
0035 
0036     void setLineEdit(PimCommon::AddresseeLineEdit *linedit);
0037 
0038     virtual QList<AddressessLineEditAbstractPluginInfo> names() const = 0;
0039     virtual void start() = 0;
0040     virtual void cancel() = 0;
0041     virtual void stop() = 0;
0042 
0043 Q_SIGNALS:
0044     void wasUpdated();
0045 
0046 private:
0047     PimCommon::AddresseeLineEdit *mLinedit = nullptr;
0048 };
0049 }