File indexing completed on 2024-05-05 05:56:43
0001 /* 0002 This file is part of the Okteta KPart module, made within the KDE community. 0003 0004 SPDX-FileCopyrightText: 2003, 2007, 2009 Friedrich W. H. Kossebau <kossebau@kde.org> 0005 0006 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0007 */ 0008 0009 #ifndef OKTETAPARTFACTORY_HPP 0010 #define OKTETAPARTFACTORY_HPP 0011 0012 // KF 0013 #include <kparts_version.h> 0014 #include <KPluginFactory> 0015 0016 namespace Kasten { 0017 class ByteArrayViewProfileManager; 0018 class ModelCodecViewManager; 0019 class ModelCodecManager; 0020 } 0021 0022 class OktetaPartFactory : public KPluginFactory 0023 { 0024 Q_OBJECT 0025 0026 Q_PLUGIN_METADATA(IID KPluginFactory_iid FILE "oktetapart.json") 0027 0028 Q_INTERFACES( 0029 KPluginFactory 0030 ) 0031 0032 public: 0033 OktetaPartFactory(); 0034 0035 ~OktetaPartFactory() override; 0036 0037 public: // KPluginFactory API 0038 QObject* create(const char* iface, 0039 QWidget* parentWidget, 0040 QObject* parent, 0041 const QVariantList& args, 0042 const QString& keyword) override; 0043 0044 private: 0045 Kasten::ByteArrayViewProfileManager* mByteArrayViewProfileManager; 0046 Kasten::ModelCodecViewManager* mModelCodecViewManager; 0047 Kasten::ModelCodecManager* mModelCodecManager; 0048 }; 0049 0050 #endif