20 lines
356 B
C
20 lines
356 B
C
|
#ifndef DRIVER_H
|
||
|
#define DRIVER_H
|
||
|
|
||
|
#include <QtPlugin>
|
||
|
|
||
|
class Driver {
|
||
|
|
||
|
public:
|
||
|
virtual void createContext(int contextId, QString* script) = 0;
|
||
|
virtual void destroyContext(int contextId) = 0;
|
||
|
|
||
|
virtual ~Driver() = default;
|
||
|
};
|
||
|
|
||
|
#define DriverInterface "pub.doric.DriverInterface"
|
||
|
|
||
|
Q_DECLARE_INTERFACE(Driver, DriverInterface)
|
||
|
|
||
|
#endif // DRIVER_H
|