| 15 | class ScriptingWindow; |
| 16 | |
| 17 | class CANScriptHelper: public QObject |
| 18 | { |
| 19 | Q_OBJECT |
| 20 | public: |
| 21 | CANScriptHelper(QJSEngine *engine); |
| 22 | |
| 23 | public slots: |
| 24 | void setFilter(QJSValue id, QJSValue mask, QJSValue bus); |
| 25 | void clearFilters(); |
| 26 | void sendFrame(QJSValue bus, QJSValue id, QJSValue length, QJSValue data); |
| 27 | void setRxCallback(QJSValue cb); |
| 28 | |
| 29 | private slots: |
| 30 | void gotTargettedFrame(const CANFrame &frame); |
| 31 | |
| 32 | private: |
| 33 | QList<CANFilter> filters; |
| 34 | QJSValue gotFrameFunction; |
| 35 | QJSEngine *scriptEngine; |
| 36 | }; |
| 37 | |
| 38 | class ISOTPScriptHelper: public QObject |
| 39 | { |
nothing calls this directly
no outgoing calls
no test coverage detected