Commit 9cce75e5 authored by Laurent Montel's avatar Laurent Montel 😁

Adapt api

parent db512bc1
......@@ -74,7 +74,7 @@ set(KDEPIMLIBS_LIB_VERSION "5.2.40")
set(GRAVATAR_LIB_VERSION "5.2.40")
set(INCIDENCEEDITOR_LIB_VERSION "5.2.40")
set(KTNEF_LIB_VERSION "5.2.40")
set(MESSAGELIB_LIB_VERSION "5.2.41")
set(MESSAGELIB_LIB_VERSION "5.2.42")
find_package(KF5MailCommon ${MAILCOMMN_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5KaddressbookGrantlee ${KDEPIM_APPS_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5MessageViewer ${KDEPIM_APPS_LIB_VERSION} CONFIG REQUIRED)
......
......@@ -39,3 +39,16 @@ void AdblockInterceptorInterface::interceptRequest(QWebEngineUrlRequestInfo &inf
info.block(true);
}
}
QList<QAction *> AdblockInterceptorInterface::actions() const
{
return {};
}
void AdblockInterceptorInterface::createActions(KActionCollection *ac)
{
if (ac) {
}
//TODO
}
......@@ -31,6 +31,8 @@ public:
~AdblockInterceptorInterface();
void interceptRequest(QWebEngineUrlRequestInfo &info) Q_DECL_OVERRIDE;
QList<QAction *> actions() const Q_DECL_OVERRIDE;
void createActions(KActionCollection *ac) Q_DECL_OVERRIDE;
private:
AdBlock::AdblockManager *mAdblockManager;
};
......
......@@ -38,11 +38,6 @@ MessageViewer::NetworkPluginUrlInterceptorInterface *AdblockPluginUrlInterceptor
return new AdblockInterceptorInterface(parent);
}
QList<QAction *> AdblockPluginUrlInterceptor::actions() const
{
return mActions;
}
bool AdblockPluginUrlInterceptor::hasConfigureSupport() const
{
return true;
......@@ -55,12 +50,5 @@ MessageViewer::NetworkPluginUrlInterceptorConfigureWidget *AdblockPluginUrlInter
return configureWidget;
}
void AdblockPluginUrlInterceptor::createActions(KActionCollection *ac)
{
if (ac) {
}
//TODO
}
#include "adblockpluginurlinterceptor.moc"
......@@ -35,14 +35,9 @@ public:
MessageViewer::NetworkPluginUrlInterceptorInterface *createInterface(QObject *parent) Q_DECL_OVERRIDE;
QList<QAction *> actions() const Q_DECL_OVERRIDE;
bool hasConfigureSupport() const Q_DECL_OVERRIDE;
MessageViewer::NetworkPluginUrlInterceptorConfigureWidget *createConfigureWidget(QWidget *parent) Q_DECL_OVERRIDE;
void createActions(KActionCollection *ac) Q_DECL_OVERRIDE;
private:
QList<QAction *> mActions;
};
#endif // ADBLOCKPLUGINURLINTERCEPTOR_H
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