File indexing completed on 2024-11-24 04:43:06
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 SendVcardsPluginInterface : public PimCommon::GenericPluginInterface 0012 { 0013 Q_OBJECT 0014 public: 0015 explicit SendVcardsPluginInterface(QObject *parent = nullptr); 0016 ~SendVcardsPluginInterface() override; 0017 0018 void exec() override; 0019 void createAction(KActionCollection *ac) override; 0020 void setCurrentItems(const Akonadi::Item::List &items) override; 0021 [[nodiscard]] PimCommon::GenericPluginInterface::RequireTypes requiresFeatures() const override; 0022 0023 void updateActions(int numberOfSelectedItems, int numberOfSelectedCollections) override; 0024 0025 private: 0026 void slotActivated(); 0027 void slotSendVcardsError(const QString &error); 0028 Akonadi::Item::List mListItems; 0029 QAction *mAction = nullptr; 0030 };