Skip to content

Commit

Permalink
Make private signals actually private
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-gromeyer committed May 26, 2023
1 parent db536e1 commit 96c21b3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions plugins/bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,31 @@ public Q_SLOTS:
inline void say(const QString &text) { Q_EMIT _say(text, QPrivateSignal()); };

Q_SIGNALS:
/**
* @brief useWidget signal emitted to send a widget to the host application for usage.
* @param widget The widget to be used.
*
* This signal is emitted to send a widget to the host application for usage.
* The host application can use the provided widget as needed.
*/
void useWidget(QWidget *widget);

private:
/**
* @brief _say signal emitted to send a speech request to the host application.
* @param text The text to be spoken.
*
* This signal is emitted to send a speech request to the host application.
*/
void _say(const QString &text, QPrivateSignal);
Q_SIGNAL void _say(const QString &text, QPrivateSignal);

/**
* @brief _sayAndWait signal emitted to send a speech request to the host application and wait until it completes.
* @param text The text to be spoken.
*
* This signal is emitted to send a speech request to the host application and wait until it completes.
*/
void _sayAndWait(const QString &text, QPrivateSignal);
Q_SIGNAL void _sayAndWait(const QString &text, QPrivateSignal);

/**
* @brief _ask signal emitted to send a question to the host application and wait for an answer.
Expand All @@ -121,18 +131,8 @@ public Q_SLOTS:
* This signal is emitted to send a question to the host application and wait for an answer.
*/

void _ask(const QString &text, QPrivateSignal);
Q_SIGNAL void _ask(const QString &text, QPrivateSignal);

/**
* @brief useWidget signal emitted to send a widget to the host application for usage.
* @param widget The widget to be used.
*
* This signal is emitted to send a widget to the host application for usage.
* The host application can use the provided widget as needed.
*/
void useWidget(QWidget *widget);

private:
QString answer;
bool pause = false;

Expand Down

0 comments on commit 96c21b3

Please sign in to comment.