1 #ifndef DALI_INTERNAL_ACCESSIBILITY_UBUNTU_TTS_PLAYER_IMPL_UBUNTU_H
2 #define DALI_INTERNAL_ACCESSIBILITY_UBUNTU_TTS_PLAYER_IMPL_UBUNTU_H
5 * Copyright (c) 2017 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
26 #include <dali/integration-api/debug.h>
27 #include <dali/public-api/object/base-object.h>
29 #include <dali/internal/accessibility/common/tts-player-impl.h>
43 * Text-to-speech player
45 class TtsPlayerUbuntu : public Dali::Internal::Adaptor::TtsPlayer
51 * Create a TtsPlayer with the given mode.
52 * This should only be called once by the Adaptor class for each given mode.
53 * @param mode the mode of tts-player
54 * @return A newly created TtsPlayer.
56 static std::unique_ptr<TtsPlayerUbuntu> New(Dali::TtsPlayer::Mode mode);
59 * @copydoc TtsPlayer::Play()
61 void Play(const std::string& text) override;
64 * @copydoc TtsPlayer::Stop()
69 * @copydoc TtsPlayer::Pause()
71 void Pause() override;
74 * @copydoc TtsPlayer::Resume()
76 void Resume() override;
79 * @copydoc TtsPlayer::GetState()
81 Dali::TtsPlayer::State GetState() override;
84 * @copydoc TtsPlayer::StateChangedSignal()
86 Dali::TtsPlayer::StateChangedSignalType& StateChangedSignal() override;
89 * Private Constructor; see also TtsPlayer::New()
90 * @param mode the mode of tts-player
92 TtsPlayerUbuntu(Dali::TtsPlayer::Mode mode);
97 virtual ~TtsPlayerUbuntu();
101 Dali::TtsPlayer::StateChangedSignalType mStateChangedSignal; ///< Signal emitted when the TTS state changes (non-functional, for interface compatibility).
103 #if defined(DEBUG_ENABLED)
105 static Debug::Filter* gLogFilter;
109 } // namespace Adaptor
111 } // namespace Internal
115 #endif // DALI_INTERNAL_ACCESSIBILITY_UBUNTU_TTS_PLAYER_IMPL_UBUNTU_H