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/interface_driver.h

24 lines
545 B
C
Raw Normal View History

2021-01-28 17:06:40 +08:00
#ifndef INTERFACEDRIVER_H
#define INTERFACEDRIVER_H
#include <QString>
2021-02-02 20:42:37 +08:00
#include <QVariant>
2021-01-28 17:06:40 +08:00
2021-02-04 14:55:36 +08:00
#include "registry.h"
2021-01-28 17:06:40 +08:00
class InterfaceDriver
{
public:
2021-02-02 20:42:37 +08:00
virtual void invokeContextEntityMethod(QString contextId, QString method, QVariantList args) = 0;
2021-01-28 17:06:40 +08:00
2021-02-02 20:42:37 +08:00
virtual void invokeDoricMethod(QString method, QVariantList args) = 0;
2021-01-28 17:06:40 +08:00
virtual void createContext(QString contextId, QString script, QString source) = 0;
virtual void destroyContext(QString contextId) = 0;
2021-02-04 14:55:36 +08:00
virtual Registry* getRegistry() = 0;
2021-01-28 17:06:40 +08:00
};
#endif // INTERFACEDRIVER_H