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
2021-05-20 18:27:45 +08:00

24 lines
545 B
C++

#ifndef INTERFACEDRIVER_H
#define INTERFACEDRIVER_H
#include <QString>
#include <QVariant>
#include "registry.h"
class InterfaceDriver
{
public:
virtual void invokeContextEntityMethod(QString contextId, QString method, QVariantList args) = 0;
virtual void invokeDoricMethod(QString method, QVariantList args) = 0;
virtual void createContext(QString contextId, QString script, QString source) = 0;
virtual void destroyContext(QString contextId) = 0;
virtual Registry* getRegistry() = 0;
};
#endif // INTERFACEDRIVER_H