28 virtual bool isValid(
const QString &input) = 0;
34 virtual void run(
const QString &input) = 0;
58#define PLUGIN_iid "io.github.tim-gromeyer.voiceassistant.plugin/1.0"
#define PLUGIN_iid
The PLUGIN_iid macro defines the interface ID for the PluginInterface.
Q_DECLARE_INTERFACE(PluginInterface, PLUGIN_iid)
The PluginBridge class provides a bridge for communication between plugins and the host application.
The PluginInterface class is an abstract interface for plugin functionality.
virtual bool isValid(const QString &input)=0
isValid checks if a plugin is valid for the given input.
virtual ~PluginInterface()=default
virtual void run(const QString &input)=0
run executes the plugin functionality.
void setBridge(PluginBridge *b)
setBridge sets the bridge for the plugin to communicate with the host application.