ohos: Call qt handlers from tts callbacks


Now that ToSpeechProxy::EngineEventsListener are registered, call
corresponding (handleOn"Action") methods from
QTextToSpeechEngineOhos. Each callback from
TextToSpeechProxy::EngineEventsListener (on"Action") has corresponding
method in QTextToSpeechEngineOhos (handleOn"Action").

The callbacks are required to deliver events (onStart, onComplete,
onStop, onError) from the JS TTS engine back to the Qt side
(handleOnStart, handleOnComplete, handleOnStop, handleOnError).
For now QTextToSpeechEngineOhos methods implementation is empty.
It future commits speech engine state logic will be handled there.

Adds a reference to QTextToSpeechEngineOhos in the callback
handler (TextToSpeechEngineEventsListener). This pointer is necessary
to call the appropriate private handler methods from within
TextToSpeechEngineEventsListener.

Task-number: QTBUG-147179
Pick-to: 6.12
Change-Id: I939f0e75b587cdccbdf29e436c7f5d99812fc7e7
Reviewed-by: Liang Qi <liang.qi@qt.io>
Reviewed-by: Zbigniew Chyla <zbigniew.chyla@qt.io>
commit80247694a013d94e436cd9c941b2f319b821fb72
parentb228ac9b5508a7cbb42ca557774af5ed490cd87a
authorArkadiusz Zarębski <arkadiusz.zarebski@qt.io>
committerArkadiusz Zarębski <arkadiusz.zarebski@qt.io>
commit timeMon, 31 Aug 2026 06:57:53 +0000