File indexing completed on 2024-04-28 04:39:03

0001 /*
0002     SPDX-FileCopyrightText: 2010 Friedrich W. H. Kossebau <kossebau@kde.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef OKTETAPLUGIN_H
0008 #define OKTETAPLUGIN_H
0009 
0010 // KDev
0011 #include <interfaces/iplugin.h>
0012 // Qt
0013 #include <QVariantList>
0014 
0015 namespace Kasten
0016 {
0017 class ByteArrayViewProfileManager;
0018 }
0019 
0020 namespace KDevelop
0021 {
0022 class OktetaDocumentFactory;
0023 
0024 
0025 class OktetaPlugin: public IPlugin
0026 {
0027     Q_OBJECT
0028 
0029   public:
0030     explicit OktetaPlugin( QObject* parent, const QVariantList& args = QVariantList() );
0031 
0032     ~OktetaPlugin() override;
0033 
0034   public: // KDevelop::IPlugin API
0035     ContextMenuExtension contextMenuExtension(Context* context, QWidget* parent) override;
0036 
0037   public:
0038     Kasten::ByteArrayViewProfileManager* viewProfileManager() const { return mViewProfileManager; }
0039 
0040   private Q_SLOTS:
0041     void onOpenTriggered();
0042 
0043   protected:
0044     OktetaDocumentFactory* mDocumentFactory;
0045     Kasten::ByteArrayViewProfileManager* const mViewProfileManager;
0046 };
0047 
0048 }
0049 #endif