Dali 3D User Interface Engine
tts-player.h
Go to the documentation of this file.
1 #ifndef __DALI_TTS_PLAYER_H__
2 #define __DALI_TTS_PLAYER_H__
3 
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20 
21 // EXTERNAL INCLUDES
24 
25 namespace Dali
26 {
32 namespace Internal DALI_INTERNAL
33 {
34 namespace Adaptor
35 {
36 class TtsPlayer;
37 }
38 }
39 
45 {
46 public: // ENUMs
47 
52  enum Mode
53  {
54  DEFAULT = 0,
57  MODE_NUM
58  };
59 
64  enum State
65  {
66  UNAVAILABLE = 0,
69  PAUSED
70  };
71 
72 public: // Typedefs
73 
79 
80 public: // API
81 
88  TtsPlayer();
89 
98 
105  ~TtsPlayer();
106 
113  TtsPlayer(const TtsPlayer& handle);
114 
122  TtsPlayer& operator=(const TtsPlayer& rhs);
123 
131  void Play(const std::string& text);
132 
138  void Stop();
139 
145  void Pause();
146 
152  void Resume();
153 
159  State GetState();
160 
167  Dali::TtsPlayer::StateChangedSignalType& StateChangedSignal();
168 
169 public: // Not intended for application developers
170 
176  explicit DALI_INTERNAL TtsPlayer( Internal::Adaptor::TtsPlayer* ttsPlayer );
177 };
178 
182 } // namespace Dali
183 
184 #endif // __DALI_TTS_PLAYER_H__
Dali Docs Home
Read more about Dali