File indexing completed on 2024-12-22 04:55:33

0001 /*
0002    SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QObject>
0010 
0011 #include "pimcommonakonadi/plugininterface.h"
0012 #include <PimCommonAkonadi/GenericPluginInterface>
0013 class MainWidget;
0014 
0015 #include "kaddressbook_export.h"
0016 
0017 class KADDRESSBOOK_EXPORT KAddressBookPluginInterface : public PimCommon::PluginInterface
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit KAddressBookPluginInterface(QObject *parent = nullptr);
0022     ~KAddressBookPluginInterface() override;
0023 
0024     void setMainWidget(MainWidget *mainWidget);
0025 
0026     bool initializeInterfaceRequires(PimCommon::AbstractGenericPluginInterface *abstractInterface) override;
0027     static KAddressBookPluginInterface *self();
0028 
0029 private:
0030     MainWidget *mMainWidget = nullptr;
0031 };