File indexing completed on 2024-04-21 04:58:14

0001 /*
0002 
0003     konq_extensionmanager.h - Extension Manager for Konqueror
0004 
0005     SPDX-FileCopyrightText: 2003 Martijn Klingens <klingens@kde.org>
0006     SPDX-FileCopyrightText: 2004 Arend van Beelen jr. <arend@auton.nl>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #ifndef KONQEXTENSIONMANAGER_H
0012 #define KONQEXTENSIONMANAGER_H
0013 
0014 #include <QDialog>
0015 
0016 class KonqExtensionManagerPrivate;
0017 class KonqMainWindow;
0018 namespace KParts
0019 {
0020 class ReadOnlyPart;
0021 }
0022 
0023 /**
0024  * Extension Manager for Konqueror. See KPluginSelector in kdelibs for
0025  * documentation.
0026  *
0027  * @author Martijn Klingens <klingens@kde.org>
0028  * @author Arend van Beelen jr. <arend@auton.nl>
0029  */
0030 class KonqExtensionManager
0031     : public QDialog
0032 {
0033     Q_OBJECT
0034 
0035 public:
0036     KonqExtensionManager(QWidget *parent, KonqMainWindow *mainWindow, KParts::ReadOnlyPart *activePart);
0037     ~KonqExtensionManager() override;
0038 
0039     void apply();
0040 
0041 public Q_SLOTS:
0042     void setChanged(bool c);
0043     //TODO: Is this used anymore?
0044     void reparseConfiguration(const QByteArray &);
0045     void slotOk();
0046     void slotApply();
0047     void slotDefault();
0048 
0049 protected:
0050     void showEvent(QShowEvent *event) override;
0051 
0052 private:
0053     KonqExtensionManagerPrivate *d;
0054 };
0055 
0056 #endif // KONQEXTENSIONMANAGER_H