File: jsvm.h

package info (click to toggle)
minitube 3.9.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,600 kB
  • sloc: cpp: 19,800; xml: 68; sh: 18; makefile: 11
file content (18 lines) | stat: -rw-r--r-- 288 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef JSVM_H
#define JSVM_H

#include <QtCore>
#include <QtQml>

class JSVM : public QObject {
    Q_OBJECT
public:
    explicit JSVM(QQmlEngine *parent);

    Q_INVOKABLE QJSValue runInContext(QString code, QJSValue props);

private:
    QQmlEngine *parentEngine;
};

#endif // JSVM_H