File indexing completed on 2025-01-05 04:49:33
0001 /* 0002 SPDX-FileCopyrightText: 2017-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "expertplugininterface.h" 0008 #include "expertplugin_debug.h" 0009 #include <KActionCollection> 0010 #include <QAction> 0011 0012 ExpertPluginInterface::ExpertPluginInterface(QObject *parent) 0013 : PimCommon::GenericPluginInterface(parent) 0014 { 0015 } 0016 0017 ExpertPluginInterface::~ExpertPluginInterface() = default; 0018 0019 void ExpertPluginInterface::createAction(KActionCollection *ac) 0020 { 0021 QAction *action = ac->action(QStringLiteral("toggle_mimeparttree")); 0022 if (action) { 0023 const PimCommon::ActionType type(action, PimCommon::ActionType::Message); 0024 addActionType(type); 0025 } else { 0026 qCWarning(KMAIL_EXPERT_PLUGIN_LOG) << "toggle_mimeparttree is not defined "; 0027 } 0028 } 0029 0030 void ExpertPluginInterface::slotActivated() 0031 { 0032 Q_EMIT emitPluginActivated(this); 0033 } 0034 0035 void ExpertPluginInterface::exec() 0036 { 0037 }