File indexing completed on 2024-11-24 04:43:05

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 <PimCommonAkonadi/GenericPluginInterface>
0010 
0011 class SearchDuplicatesPluginInterface : public PimCommon::GenericPluginInterface
0012 {
0013 public:
0014     explicit SearchDuplicatesPluginInterface(QObject *parent = nullptr);
0015     ~SearchDuplicatesPluginInterface() override;
0016 
0017     void exec() override;
0018     void createAction(KActionCollection *ac) override;
0019     [[nodiscard]] PimCommon::GenericPluginInterface::RequireTypes requiresFeatures() const override;
0020     void setItems(const Akonadi::Item::List &items) override;
0021 
0022 private:
0023     void slotActivated();
0024     Akonadi::Item::List mListItems;
0025 };