Commit f106498c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Return menu

parent 3940b6bc
cmake_minimum_required(VERSION 3.5)
set(PIM_VERSION "5.13.48")
set(PIM_VERSION "5.13.49")
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
......
......@@ -47,5 +47,4 @@ void DKIMViewerMenu::initialize()
QAction *updateDKIMKey = mMenu->addAction(i18n("Update DKIM key"));
connect(updateDKIMKey, &QAction::triggered, this, &DKIMViewerMenu::updateDKimKey);
//TODO add more
}
......@@ -664,6 +664,12 @@ HeaderStylePlugin *Viewer::headerStylePlugin() const
return d->mHeaderStylePlugin;
}
DKIMViewerMenu *Viewer::dkimViewerMenu()
{
Q_D(Viewer);
return d->dkimViewerMenu();
}
void Viewer::setPluginName(const QString &pluginName)
{
Q_D(Viewer);
......
......@@ -54,6 +54,7 @@ namespace MessageViewer {
class WebHitTestResult;
#ifdef USE_DKIM_CHECKER
class DKIMWidgetInfo;
class DKIMViewerMenu;
#endif
class AttachmentStrategy;
class HeaderStylePlugin;
......@@ -285,6 +286,8 @@ public:
Q_REQUIRED_RESULT KToggleAction *disableEmoticonAction() const;
Q_REQUIRED_RESULT KActionMenu *shareServiceUrlMenu() const;
Q_REQUIRED_RESULT HeaderStylePlugin *headerStylePlugin() const;
Q_REQUIRED_RESULT MessageViewer::DKIMViewerMenu *dkimViewerMenu();
void setPluginName(const QString &pluginName);
void writeConfig(bool withSync = true);
......
......@@ -3110,7 +3110,12 @@ DKIMViewerMenu *ViewerPrivate::dkimViewerMenu()
{
if (!mDkimViewerMenu) {
mDkimViewerMenu = new MessageViewer::DKIMViewerMenu(this);
//TODO
connect(mDkimViewerMenu, &DKIMViewerMenu::recheckSignature, this, [this]() {
//TODO
});
connect(mDkimViewerMenu, &DKIMViewerMenu::updateDKimKey, this, [this]() {
//TODO
});
}
return mDkimViewerMenu;
}
......
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