File indexing completed on 2024-04-21 04:58:00
0001 /* This file is part of the KDE project 0002 SPDX-FileCopyrightText: 2001 Carsten Pfeiffer <pfeiffer@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef SETTINGS_PLUGIN 0008 #define SETTINGS_PLUGIN 0009 0010 #include <kparts_version.h> 0011 #include <konq_kpart_plugin.h> 0012 0013 class KConfig; 0014 0015 class SettingsPlugin : public KonqParts::Plugin 0016 { 0017 Q_OBJECT 0018 public: 0019 SettingsPlugin(QObject *parent, 0020 const KPluginMetaData& metaData, 0021 const QVariantList &); 0022 ~SettingsPlugin() override; 0023 0024 private: 0025 bool cookiesEnabled(const QString &url); 0026 void updateIOSlaves(); 0027 int proxyType(); 0028 0029 private slots: 0030 void toggleJavascript(bool checked); 0031 void toggleJava(bool checked); 0032 void toggleCookies(bool checked); 0033 void togglePlugins(bool checked); 0034 void toggleImageLoading(bool checked); 0035 void toggleProxy(bool checked); 0036 void toggleCache(bool checked); 0037 void cachePolicyChanged(int p); 0038 0039 void showPopup(); 0040 0041 private: 0042 KConfig *mConfig; 0043 }; 0044 0045 #endif // SETTINGS_PLUGIN