Move Ubuntu tts player to generic.
[platform/core/uifw/dali-adaptor.git] / dali / internal / accessibility / generic / tts-player-impl-generic.cpp
1 /*
2  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // CLASS HEADER
19 #include <dali/internal/accessibility/generic/tts-player-impl-generic.h>
20
21 // EXTERNAL INCLUDES
22 #include <dali/public-api/object/type-registry.h>
23
24 #include <memory>
25 namespace Dali
26 {
27
28 namespace Internal
29 {
30
31 namespace Adaptor
32 {
33
34 #if defined(DEBUG_ENABLED)
35 Debug::Filter* TtsPlayerGeneric::gLogFilter = Debug::Filter::New(Debug::Concise, false, "LOG_TTS_PLAYER");
36 #endif
37
38 std::unique_ptr<TtsPlayerGeneric> TtsPlayerGeneric::New(Dali::TtsPlayer::Mode mode)
39 {
40   return std::unique_ptr<TtsPlayerGeneric>(new TtsPlayerGeneric(mode));
41 }
42
43 TtsPlayerGeneric::TtsPlayerGeneric(Dali::TtsPlayer::Mode mode)
44 : mStateChangedSignal()
45 {
46   DALI_LOG_ERROR("TTS is not implemented in GENERIC profile.\n");
47 }
48
49 TtsPlayerGeneric::~TtsPlayerGeneric()
50 {
51 }
52
53 void TtsPlayerGeneric::Play(const std::string& text)
54 {
55 }
56
57 void TtsPlayerGeneric::Stop()
58 {
59 }
60
61 void TtsPlayerGeneric::Pause()
62 {
63 }
64
65 void TtsPlayerGeneric::Resume()
66 {
67 }
68
69 Dali::TtsPlayer::State TtsPlayerGeneric::GetState()
70 {
71   return Dali::TtsPlayer::UNAVAILABLE;
72 }
73
74 Dali::TtsPlayer::StateChangedSignalType& TtsPlayerGeneric::StateChangedSignal()
75 {
76   return mStateChangedSignal;
77 }
78
79 } // namespace Adaptor
80
81 } // namespace Internal
82
83 } // namespace Dali