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>