mirror of
https://github.com/Adaptix-Framework/AdaptixC2
synced 2026-06-08 10:20:39 +00:00
30 lines
554 B
C++
30 lines
554 B
C++
#ifndef BRIDGEEVENT_H
|
|
#define BRIDGEEVENT_H
|
|
|
|
#include <QJSEngine>
|
|
#include <QJSValue>
|
|
#include <QList>
|
|
#include <QWidget>
|
|
|
|
class AxScriptEngine;
|
|
|
|
class BridgeEvent : public QObject {
|
|
Q_OBJECT
|
|
AxScriptEngine* scriptEngine;
|
|
QWidget* widget;
|
|
QList<QJSValue> eventHandlers;
|
|
|
|
public:
|
|
BridgeEvent(AxScriptEngine* scriptEngine, QObject* parent = nullptr);
|
|
~BridgeEvent() override;
|
|
|
|
public slots:
|
|
void on_event(const QJSValue &handler);
|
|
void emitEventTestClick();
|
|
|
|
signals:
|
|
void scriptError(const QString &msg);
|
|
};
|
|
|
|
#endif
|