Fix to remove timer when daemon is destroyed
[platform/core/uifw/tts.git] / client / tts_dbus.h
1 /*
2 *  Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd All Rights Reserved 
3 *  Licensed under the Apache License, Version 2.0 (the "License");
4 *  you may not use this file except in compliance with the License.
5 *  You may obtain a copy of the License at
6 *  http://www.apache.org/licenses/LICENSE-2.0
7 *  Unless required by applicable law or agreed to in writing, software
8 *  distributed under the License is distributed on an "AS IS" BASIS,
9 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10 *  See the License for the specific language governing permissions and
11 *  limitations under the License.
12 */
13
14  
15 #ifndef __TTS_DBUS_H_
16 #define __TTS_DBUS_H_
17
18 #include "tts.h"
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 int tts_dbus_open_connection();
25
26 int tts_dbus_close_connection();
27
28 int tts_dbus_request_hello(int uid);
29
30 int tts_dbus_request_initialize(int uid);
31
32 int tts_dbus_request_finalize(int uid);
33
34 int tts_dbus_request_get_support_voice(int uid, tts_h tts, tts_supported_voice_cb callback, void* user_data);
35
36 int tts_dbus_request_get_default_voice(int uid , char** lang, tts_voice_type_e* vctype);
37
38 int tts_dbus_request_add_text(int uid, const char* text, const char* lang, int vctype, int speed, int uttid); 
39
40 int tts_dbus_request_remove_all_text(int uid); 
41
42
43 int tts_dbus_request_play(int uid) ;
44
45 int tts_dbus_request_stop(int uid);
46
47 int tts_dbus_request_pause(int uid);
48
49
50 int tts_file_msg_open_connection();
51
52 int tts_file_msg_close_connection();
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif /* __TTS_DBUS_H_ */