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

33 lines
670 B
C++

#include "native_driver.h"
#include "async/async_call.h"
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)
{
class Runnable: public QRunnable
{
void run() override
{
qDebug() << "123";
}
};
Runnable *runnable = new Runnable();
runnable->setAutoDelete(true);
AsyncCall::ensureRunInThreadPool(jsEngine.mJSThreadPool, runnable);
}
void NativeDriver::destroyContext(QString contextId)
{
}