xtd 0.2.0
state_changed_event_args.hpp
Go to the documentation of this file.
1
4#pragma once
6#include "../../optional.hpp"
7#include "../../any.hpp"
9#include "../../exception.hpp"
10#include <functional>
11
13namespace xtd {
15 namespace speech {
17 namespace synthesis {
21
38 class state_changed_event_args : public xtd::event_args {
39 friend class speech_synthesizer;
40 public:
42 state_changed_event_args(const state_changed_event_args&) = default;
43 state_changed_event_args(state_changed_event_args&&) = default;
44 state_changed_event_args& operator =(const state_changed_event_args&) = default;
46
48
53 synthesizer_state previous_state() const noexcept {return previous_state_;}
57 synthesizer_state state() const noexcept {return state_;}
59
60 private:
62
63 synthesizer_state previous_state_;
64 synthesizer_state state_;
65 };
66 }
67 }
68}
Contains xtd::any type and std::bad_any_cast exception.
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Provides access to the functionality of an installed speech synthesis engine.
Definition speech_synthesizer.hpp:35
Returns data from the xtd::speech::synthesis::speech_synthesizer::state_changed event.
Definition state_changed_event_args.hpp:38
synthesizer_state previous_state() const noexcept
Gets the state of the xtd::speech::synthesis::speech_synthesizer before the xtd::speech::synthesis::s...
Definition state_changed_event_args.hpp:53
synthesizer_state state() const noexcept
Gets the state of the xtd::speech::synthesis::speech_synthesizer after the xtd::speech::synthesis::sp...
Definition state_changed_event_args.hpp:57
Contains xtd::event_args event args.
Contains xtd::exception exception.
synthesizer_state
Enumerates values for the state of the xtd::speech::synthesis::speech_synthesizer.
Definition synthesizer_state.hpp:28
Contains classes for initializing and configuring a speech synthesis engine, for creating prompts,...
Definition prompt.hpp:13
The xtd::speech namespace contains all classes and namespace to access speech technology.
Definition prompt.hpp:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Contains xtd::optional type.
Contains xtd::speech::synthesis::synthesizer_state enum class.