Warning, file /pim/kdepim-addons/kaddressbook/plugins/checkgravatar/checkgravatarplugininterface.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 CheckGravatarPluginInterface : public PimCommon::GenericPluginInterface
0012 {
0013 public:
0014     explicit CheckGravatarPluginInterface(QObject *parent = nullptr);
0015     ~CheckGravatarPluginInterface() override;
0016 
0017     void exec() override;
0018     void createAction(KActionCollection *ac) override;
0019     void setCurrentItems(const Akonadi::Item::List &items) override;
0020     [[nodiscard]] PimCommon::GenericPluginInterface::RequireTypes requiresFeatures() const override;
0021     void updateActions(int numberOfSelectedItems, int numberOfSelectedCollections) override;
0022 
0023 private:
0024     void slotActivated();
0025     void slotModifyContactFinished(KJob *job);
0026     Akonadi::Item::List mListItems;
0027     QAction *mAction = nullptr;
0028 };