This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/doric/native_driver.cpp
2021-05-20 18:27:45 +08:00

27 lines
586 B
C++

#include "native_driver.h"
#include "async/async_call.h"
#include <functional>
void NativeDriver::invokeContextEntityMethod(QString contextId, QString method, QList<QObject> args)
{
}
void NativeDriver::invokeDoricMethod(QString method, QList<QObject> args)
{
}
void NativeDriver::createContext(QString contextId, QString script, QString source)
{
AsyncCall::ensureRunInThreadPool(&jsEngine.mJSThreadPool, [this, contextId, script, source]{
this->jsEngine.prepareContext(contextId, script, source);
});
}
void NativeDriver::destroyContext(QString contextId)
{
}