20 QJSValue evaluate(
const QString &program,
const QString &fileName = QString(),
int lineNumber = 1);
21 QJSValue call(
const QString &func,
const QJSValue &arg);
22 QJSValue call(
const QString &func,
const QJSValueList &args = QJSValueList());
23 TJSInstance callAsConstructor(
const QString &constructorName,
const QJSValue &arg);
24 TJSInstance callAsConstructor(
const QString &constructorName,
const QJSValueList &args = QJSValueList());
27 QJSValue
import(
const QString &moduleName);
28 QJSValue
import(
const QString &defaultMember,
const QString &moduleName);
32 QMap<QString, QString> _loadedFiles;
36 #if QT_VERSION < 0x060000
37 QMutex _mutex {QMutex::Recursive};
39 QRecursiveMutex _mutex;
46 friend class TReactComponent;
The TJSInstance class acts as a instance for JavaScript data types.
Definition: tjsinstance.h:7
The TJSLoader class loads a JavaScript module in server side.
Definition: tjsloader.h:8
The TJSModule class represents a module for evaluating JavaScript code.
Definition: tjsmodule.h:15
QString modulePath() const
Definition: tjsmodule.h:25
#define T_CORE_EXPORT
Definition: tdeclexport.h:28
#define T_DISABLE_COPY(Class)
Definition: tdeclexport.h:37
#define T_DISABLE_MOVE(Class)
Definition: tdeclexport.h:41