7 #include "../../optional.h" 8 #include "../../event_args.h" 9 #include "../../system_exception.h" 19 class speech_synthesizer;
46 bool cancelled() const noexcept {
return cancelled_;}
50 std::optional<std::reference_wrapper<const xtd::system_exception>>
error() const noexcept {
return error_ ? std::optional<std::reference_wrapper<const xtd::system_exception>>(*error_) : std::nullopt; }
64 bool cancelled_ =
false;
Defines the base class for predefined exceptions in the xtd namespace.
Definition: system_exception.h:24
Represents information about what can be rendered, either text or an audio file, by the xtd::speech::...
Definition: prompt.h:34
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
Contains xtd::speech::synthesis::prompt class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
const xtd::speech::synthesis::prompt & prompt() const noexcept
Gets the prompt associated with the event.
Definition: prompt_event_args.h:54
std::any user_state() const noexcept
Gets the unique identifier for the asynchronous task.
Definition: prompt_event_args.h:58
bool cancelled() const noexcept
Gets a value indicating whether an asynchronous operation has been canceled.
Definition: prompt_event_args.h:46
Provides data for the method_name_completed event.
Definition: prompt_event_args.h:35
Provides access to the functionality of an installed speech synthesis engine.
Definition: speech_synthesizer.h:33
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...
std::optional< std::reference_wrapper< const xtd::system_exception > > error() const noexcept
Gets a value indicating which error occurred during an asynchronous operation.
Definition: prompt_event_args.h:50