xtd 0.2.0
state_changed_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include "synthesizer_state.h"
6 #include "../../optional.h"
7 #include "../../any.h"
8 #include "../../event_args.h"
9 #include "../../system_exception.h"
10 #include <functional>
11 
13 namespace xtd {
15  namespace speech {
17  namespace synthesis {
19  class speech_synthesizer;
21 
37  friend class speech_synthesizer;
38  public:
42  state_changed_event_args& operator =(const state_changed_event_args&) = default;
44 
48  synthesizer_state previous_state() const noexcept {return previous_state_;}
52  synthesizer_state state() const noexcept {return state_;}
53 
54  private:
55  state_changed_event_args(synthesizer_state previous_state, synthesizer_state state) : previous_state_(previous_state), state_(state) {}
56 
57  synthesizer_state previous_state_;
58  synthesizer_state state_;
59  };
60  }
61  }
62 }
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition: event_args.h:18
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Returns data from the xtd::speech::synthesis::speech_synthesizer::state_changed event.
Definition: state_changed_event_args.h:36
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.h:52
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.h:48
Provides access to the functionality of an installed speech synthesis engine.
Definition: speech_synthesizer.h:33
Contains xtd::speech::synthesis::synthesizer_state enum class.
synthesizer_state
Enumerates values for the state of the xtd::speech::synthesis::speech_synthesizer.
Definition: synthesizer_state.h:26