mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-25 06:15:26 +00:00
32 lines
653 B
C
32 lines
653 B
C
|
#ifndef CUTTERPLUGIN_H
|
||
|
#define CUTTERPLUGIN_H
|
||
|
|
||
|
class CutterPlugin;
|
||
|
class MainWindow;
|
||
|
|
||
|
#include "Cutter.h"
|
||
|
#include "widgets/CutterDockWidget.h"
|
||
|
|
||
|
class CutterPlugin
|
||
|
{
|
||
|
public:
|
||
|
virtual ~CutterPlugin() {}
|
||
|
virtual void setupPlugin(CutterCore *core) = 0;
|
||
|
virtual CutterDockWidget* setupInterface(MainWindow *main, QAction *action = nullptr) = 0;
|
||
|
|
||
|
QString name;
|
||
|
QString description;
|
||
|
QString version;
|
||
|
QString author;
|
||
|
|
||
|
protected:
|
||
|
CutterCore *core;
|
||
|
CutterDockWidget *dockable;
|
||
|
};
|
||
|
|
||
|
#define CutterPlugin_iid "org.radare.cutter.plugins.CutterPlugin"
|
||
|
|
||
|
Q_DECLARE_INTERFACE(CutterPlugin, CutterPlugin_iid)
|
||
|
|
||
|
#endif // CUTTERPLUGIN_H
|