Commit ef89c9d9 authored by Laurent Montel's avatar Laurent Montel 😁

Start to create config webengineurlinterceptor support

parent ffdcde60
......@@ -128,4 +128,6 @@ if (NOT QTWEBENGINE_SUPPORT_OPTION)
kcoreaddons_desktop_to_json(akregator_config_adblock akregator_config_adblock.desktop DEFAULT_SERVICE_TYPE)
install(FILES akregator_config_adblock.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
install(TARGETS akregator_config_adblock DESTINATION ${KDE_INSTALL_PLUGINDIR})
else()
#TODO add support for webengineurl interceptor plugin
endif()
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "akregator_config_webengineurlinterceptor.h"
#include "akregatorconfig.h"
#include <KAboutData>
#include <KPluginFactory>
#include <KLocalizedString>
#include <QVBoxLayout>
using namespace Akregator;
K_PLUGIN_FACTORY(KCMAkregatorWebEngineUrlInterceptorConfigFactory, registerPlugin<KCMAkregatorWebEngineUrlInterceptorConfig>();)
KCMAkregatorWebEngineUrlInterceptorConfig::KCMAkregatorWebEngineUrlInterceptorConfig(QWidget *parent, const QVariantList &args)
: KCModule(parent, args)
{
#if 0
QHBoxLayout *lay = new QHBoxLayout;
lay->setMargin(0);
KAboutData *about = new KAboutData(QStringLiteral("kcmakrablockconfig"),
i18n("Configure AdBlock"),
QString(), QString(), KAboutLicense::GPL,
i18n("(c), 2016 Laurent Montel"));
about->addAuthor(i18n("Laurent Montel"), QString(), QStringLiteral("montel@kde.org"));
setAboutData(about);
mWidget = new MessageViewer::AdBlockSettingWidget;
lay->addWidget(mWidget);
connect(mWidget, SIGNAL(changed(bool)), this, SIGNAL(changed(bool)));
setLayout(lay);
#endif
}
void KCMAkregatorWebEngineUrlInterceptorConfig::save()
{
}
void KCMAkregatorWebEngineUrlInterceptorConfig::load()
{
}
void KCMAkregatorWebEngineUrlInterceptorConfig::defaults()
{
}
#include "akregator_config_webengineurlinterceptor.moc"
[Desktop Entry]
Icon=akregator
Type=Service
X-KDE-ServiceTypes=KCModule
X-KDE-Library=akregator_config_webengineurlinterceptor
X-KDE-ParentApp=akregator
X-KDE-ParentComponents=akregator,kontact_akregatorplugin
X-KDE-CfgDlgHierarchy=Akregator
X-KDE-Weight=100
Name=Web Engine Url Interceptor Plugins
Comment=Configure Web Engine Url Interceptor Plugins
X-KDE-Keywords=akregator, configure, settings, webEngine, url interceptor
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef KCMAkregatorWebEngineUrlInterceptorConfig_H
#define KCMAkregatorWebEngineUrlInterceptorConfig_H
#include <KCModule>
#include <QVariant>
namespace Akregator
{
class KCMAkregatorWebEngineUrlInterceptorConfig : public KCModule
{
Q_OBJECT
public:
KCMAkregatorWebEngineUrlInterceptorConfig(QWidget *parent, const QVariantList &args);
void load() Q_DECL_OVERRIDE;
void save() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
};
}
#endif // KCMAkregatorWebEngineUrlInterceptorConfig_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