4#include <QCoreApplication>
53 inline QString
ask(
const QString &text)
58 Q_EMIT
_ask(text, QPrivateSignal());
61 QCoreApplication::processEvents();
85 QCoreApplication::processEvents();
98 inline void say(
const QString &text) { Q_EMIT
_say(text, QPrivateSignal()); };
107 void _say(
const QString &text, QPrivateSignal);
124 void _ask(
const QString &text, QPrivateSignal);
The PluginBridge class provides a bridge for communication between plugins and the host application.
QString ask(const QString &text)
ask sends a request to the host application with a question and waits for an answer.
void _ask(const QString &text, QPrivateSignal)
_ask signal emitted to send a question to the host application and wait for an answer.
~PluginBridge() final
PluginBridge destructor.
PluginBridge(QObject *parent=nullptr)
PluginBridge constructor.
void sayAndWait(const QString &text)
sayAndWait sends a speech request to the host application and waits until it completes.
void _sayAndWait(const QString &text, QPrivateSignal)
_sayAndWait signal emitted to send a speech request to the host application and wait until it complet...
void useWidget(QWidget *widget)
useWidget signal emitted to send a widget to the host application for usage.
void _say(const QString &text, QPrivateSignal)
_say signal emitted to send a speech request to the host application.
void say(const QString &text)
say sends a speech request to the host application.