Commit 1d876412 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use KMailPluginCheckBeforeDeletingManagerInterface

parent 02e1cd6a
......@@ -177,13 +177,16 @@
#include <MessageViewer/DKIMViewerMenu>
#include <MessageViewer/DKIMWidgetInfo>
#include <MessageViewer/RemoteContentMenu>
#include "plugininterface/kmailplugincheckbeforedeletingmanagerinterface.h"
#ifdef WITH_KUSERFEEDBACK
#include <KUserFeedback/NotificationPopup>
#include <KUserFeedback/Provider>
#include <chrono>
#endif
using namespace std::chrono_literals;
#endif
#include <chrono>
using namespace KMime;
using namespace Akonadi;
......@@ -235,6 +238,8 @@ KMMainWidget::KMMainWidget(QWidget *parent, KXMLGUIClient *aGUIClient, KActionCo
KMailPluginInterface::self()->setActionCollection(mActionCollection);
KMailPluginInterface::self()->initializePlugins();
KMailPluginInterface::self()->setMainWidget(this);
mPluginCheckBeforeDeletingManagerInterface = new KMailPluginCheckBeforeDeletingManagerInterface(this);
mPluginCheckBeforeDeletingManagerInterface->initializePlugins();
theMainWidgetList->append(this);
......
......@@ -90,6 +90,7 @@ class FavoriteCollectionWidget;
class MailFilter;
}
class QStatusBar;
class KMailPluginCheckBeforeDeletingManagerInterface;
class KMAIL_EXPORT KMMainWidget : public QWidget
{
Q_OBJECT
......@@ -656,5 +657,6 @@ private:
#ifdef WITH_KUSERFEEDBACK
KUserFeedback::NotificationPopup *mUserFeedBackNotificationPopup = nullptr;
#endif
KMailPluginCheckBeforeDeletingManagerInterface *mPluginCheckBeforeDeletingManagerInterface = nullptr;
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment