split project with app & doric module
This commit is contained in:
30
doric-Qt/example/doric/DoricInterfaceDriver.h
Normal file
30
doric-Qt/example/doric/DoricInterfaceDriver.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef INTERFACEDRIVER_H
|
||||
#define INTERFACEDRIVER_H
|
||||
|
||||
#include <QRunnable>
|
||||
#include <QString>
|
||||
#include <QVariant>
|
||||
|
||||
#include "DoricRegistry.h"
|
||||
#include "async/DoricAsyncResult.h"
|
||||
#include "utils/DoricThreadMode.h"
|
||||
|
||||
class DoricInterfaceDriver {
|
||||
public:
|
||||
virtual void invokeContextEntityMethod(QString contextId, QString method,
|
||||
QVariantList args) = 0;
|
||||
|
||||
virtual void invokeDoricMethod(QString method, QVariantList args) = 0;
|
||||
|
||||
virtual DoricAsyncResult *asyncCall(std::function<void()> lambda,
|
||||
DoricThreadMode mode) = 0;
|
||||
|
||||
virtual void createContext(QString contextId, QString script,
|
||||
QString source) = 0;
|
||||
|
||||
virtual void destroyContext(QString contextId) = 0;
|
||||
|
||||
virtual DoricRegistry *getRegistry() = 0;
|
||||
};
|
||||
|
||||
#endif // INTERFACEDRIVER_H
|
||||
Reference in New Issue
Block a user