Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
1d876412
Commit
1d876412
authored
Jul 06, 2021
by
Laurent Montel
😁
Browse files
Use KMailPluginCheckBeforeDeletingManagerInterface
parent
02e1cd6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kmmainwidget.cpp
View file @
1d876412
...
...
@@ -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
);
...
...
src/kmmainwidget.h
View file @
1d876412
...
...
@@ -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
;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment