Dali 3D User Interface Engine
tts-player.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015 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 <tts-player.h>
20 
21 // INTERNAL INCLUDES
22 #include <tts-player-impl.h>
23 #include <adaptor-impl.h>
24 
25 namespace Dali
26 {
27 
29 {
30 }
31 
33 {
34  TtsPlayer ttsPlayer;
35 
36  if ( Adaptor::IsAvailable() )
37  {
39  }
40 
41  return ttsPlayer;
42 }
43 
45 {
46 }
47 
49 : BaseHandle(handle)
50 {
51 }
52 
54 {
56  return *this;
57 }
58 
59 void TtsPlayer::Play(const std::string& text)
60 {
61  GetImplementation(*this).Play(text);
62 }
63 
65 {
66  GetImplementation(*this).Stop();
67 }
68 
70 {
71  GetImplementation(*this).Pause();
72 }
73 
75 {
76  GetImplementation(*this).Resume();
77 }
78 
80 {
81  return GetImplementation(*this).GetState();
82 }
83 
85 {
86  return GetImplementation(*this).StateChangedSignal();
87 }
88 
89 TtsPlayer::TtsPlayer( Internal::Adaptor::TtsPlayer* player )
90 : BaseHandle( player )
91 {
92 }
93 
94 } // namespace Dali
Dali Docs Home
Read more about Dali