File indexing completed on 2024-04-21 04:42:37
0001 /* 0002 SPDX-FileCopyrightText: 2008 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-or-later 0005 */ 0006 0007 #ifndef WEBKITPARTFACTORY 0008 #define WEBKITPARTFACTORY 0009 0010 #include <KPluginFactory> 0011 0012 #include <QHash> 0013 0014 class QWidget; 0015 0016 class KWebKitFactory : public KPluginFactory 0017 { 0018 Q_OBJECT 0019 Q_PLUGIN_METADATA(IID "org.kde.KPluginFactory" FILE "kwebkitpart.json") 0020 Q_INTERFACES(KPluginFactory) 0021 public: 0022 ~KWebKitFactory() override; 0023 QObject *create(const char* iface, QWidget *parentWidget, QObject *parent, const QVariantList& args, const QString &keyword) override; 0024 0025 private Q_SLOTS: 0026 void slotDestroyed(QObject* object); 0027 void slotSaveHistory(QObject* widget, const QByteArray&); 0028 0029 private: 0030 QHash<QObject*, QByteArray> m_historyBufContainer; 0031 }; 0032 0033 #endif // WEBKITPARTFACTORY