Fix to remove timer when daemon is destroyed
[platform/core/uifw/tts.git] / client / tts_setting_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_SETTING_DBUS_H_
16 #define __TTS_SETTING_DBUS_H_
17
18 #include "tts_setting.h"
19
20 #ifdef __cplusplus
21 extern "C" 
22 {
23 #endif
24
25 int tts_setting_dbus_open_connection();
26
27 int tts_setting_dbus_close_connection();
28
29 int tts_setting_dbus_request_hello();
30
31 int tts_setting_dbus_request_initialize();
32
33 int tts_setting_dbus_request_finalilze();
34
35 int tts_setting_dbus_request_get_engine_list(tts_setting_supported_engine_cb callback, void* user_data);
36
37 int tts_setting_dbus_request_get_engine(char** engine_id);
38
39 int tts_setting_dbus_request_set_engine(const char* engine_id );
40
41 int tts_setting_dbus_request_get_voice_list(tts_setting_supported_voice_cb callback, void* user_data);
42
43 int tts_setting_dbus_request_get_default_voice(char** language, tts_setting_voice_type_e* voice_type);
44
45 int tts_setting_dbus_request_set_default_voice(const char* language, const int voicetype );
46
47 int tts_setting_dbus_request_get_default_speed(int* speed);
48
49 int tts_setting_dbus_request_set_default_speed(int speed);
50
51 int tts_setting_dbus_request_get_engine_setting(tts_setting_engine_setting_cb callback, void* user_data);
52
53 int tts_setting_dbus_request_set_engine_setting(const char* key, const char* value);
54
55 #ifdef __cplusplus
56 }
57 #endif
58
59 #endif /* __TTS_SETTING_DBUS_H_ */