rename dir
This commit is contained in:
26
doric-Qt/doric/driver/driver.h
Normal file
26
doric-Qt/doric/driver/driver.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef DRIVER_H
|
||||
#define DRIVER_H
|
||||
|
||||
#include <QtPlugin>
|
||||
|
||||
#include "registry.h"
|
||||
|
||||
class Driver {
|
||||
|
||||
public:
|
||||
virtual void createContext(int contextId, QString *script) = 0;
|
||||
virtual void destroyContext(int contextId) = 0;
|
||||
|
||||
virtual void invokeContextEntityMethod(int contextId, QString *method, ...) = 0;
|
||||
virtual void invokeDoricMethod(QString *method, ...) = 0;
|
||||
|
||||
virtual Registry *getRegistry() = 0;
|
||||
|
||||
virtual ~Driver() = default;
|
||||
};
|
||||
|
||||
#define DriverInterface "pub.doric.DriverInterface"
|
||||
|
||||
Q_DECLARE_INTERFACE(Driver, DriverInterface)
|
||||
|
||||
#endif // DRIVER_H
|
||||
Reference in New Issue
Block a user