Commit 3a0c1880 authored by Laurent Montel's avatar Laurent Montel 😁

Rename method

parent dae0ae58
......@@ -343,7 +343,7 @@ void MailWebEngineView::setAllowExternalContent(bool b)
QList<QAction *> MailWebEngineView::interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const
{
return d->mNetworkAccessManager->actions(result);
return d->mNetworkAccessManager->interceptorUrlActions(result);
}
void MailWebEngineView::slotLoadFinished()
......
......@@ -60,11 +60,11 @@ void NetworkAccessManagerWebEngine::addInterceptor(MessageViewer::NetworkPluginU
d->mNetworkUrlInterceptor->addInterceptor(interceptor);
}
QList<QAction *> NetworkAccessManagerWebEngine::actions(const MessageViewer::WebHitTestResult &result) const
QList<QAction *> NetworkAccessManagerWebEngine::interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const
{
QList<QAction *> actions;
Q_FOREACH (MessageViewer::NetworkPluginUrlInterceptorInterface *interface, d->mManager->interfaceList()) {
actions.append(interface->actions(result));
actions.append(interface->interceptorUrlActions(result));
}
return actions;
}
......
......@@ -37,7 +37,7 @@ public:
explicit NetworkAccessManagerWebEngine(QWebEngineView *webEngine, KActionCollection *ac, QObject *parent = Q_NULLPTR);
~NetworkAccessManagerWebEngine();
void addInterceptor(MessageViewer::NetworkPluginUrlInterceptorInterface *interceptor);
QList<QAction *> actions(const MessageViewer::WebHitTestResult &result) const;
QList<QAction *> interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const;
QVector<MessageViewer::NetworkPluginUrlInterceptorConfigureWidgetSetting> configureInterceptorList(QWidget *parent = Q_NULLPTR) const;
private:
NetworkAccessManagerWebEnginePrivate *const d;
......
......@@ -35,7 +35,7 @@ void NetworkPluginUrlInterceptorInterface::createActions(KActionCollection *ac)
Q_UNUSED(ac);
}
QList<QAction *> NetworkPluginUrlInterceptorInterface::actions(const MessageViewer::WebHitTestResult &result) const
QList<QAction *> NetworkPluginUrlInterceptorInterface::interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const
{
Q_UNUSED(result);
return {};
......
......@@ -34,7 +34,7 @@ public:
~NetworkPluginUrlInterceptorInterface();
virtual void createActions(KActionCollection *ac);
virtual QList<QAction *> actions(const MessageViewer::WebHitTestResult &result) const;
virtual QList<QAction *> interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const;
virtual bool interceptRequest(QWebEngineUrlRequestInfo &info) = 0;
};
......
......@@ -32,18 +32,18 @@ public:
createInterfaces(webEngine, ac);
}
QList<QAction *> actions(const MessageViewer::WebHitTestResult &result) const;
QList<QAction *> interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const;
QVector<NetworkPluginUrlInterceptorConfigureWidgetSetting> configureInterceptorList(QWidget *parent) const;
void createInterfaces(QWebEngineView *webEngine, KActionCollection *ac);
QVector<MessageViewer::NetworkPluginUrlInterceptorInterface *> mListInterface;
NetworkUrlInterceptorManager *q;
};
QList<QAction *> NetworkUrlInterceptorManagerPrivate::actions(const MessageViewer::WebHitTestResult &result) const
QList<QAction *> NetworkUrlInterceptorManagerPrivate::interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const
{
QList<QAction *> lstActions;
Q_FOREACH(MessageViewer::NetworkPluginUrlInterceptorInterface *interface, mListInterface) {
lstActions.append(interface->actions(result));
lstActions.append(interface->interceptorUrlActions(result));
}
return lstActions;
}
......@@ -85,9 +85,9 @@ QVector<MessageViewer::NetworkPluginUrlInterceptorInterface *> NetworkUrlInterce
return d->mListInterface;
}
QList<QAction *> NetworkUrlInterceptorManager::actions(const MessageViewer::WebHitTestResult &result) const
QList<QAction *> NetworkUrlInterceptorManager::interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const
{
return d->actions(result);
return d->interceptorUrlActions(result);
}
QVector<NetworkPluginUrlInterceptorConfigureWidgetSetting> NetworkUrlInterceptorManager::configureInterceptorList(QWidget *parent) const
......
......@@ -35,7 +35,7 @@ public:
~NetworkUrlInterceptorManager();
QVector<NetworkPluginUrlInterceptorInterface *> interfaceList() const;
QList<QAction *> actions(const MessageViewer::WebHitTestResult &result) const;
QList<QAction *> interceptorUrlActions(const MessageViewer::WebHitTestResult &result) const;
QVector<NetworkPluginUrlInterceptorConfigureWidgetSetting> configureInterceptorList(QWidget *parent) const;
private:
NetworkUrlInterceptorManagerPrivate *const d;
......
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