Fix prevent issue and Merge with master branch
[platform/core/uifw/stt.git] / client / stt_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 __STT_SETTING_DBUS_H_
16 #define __STT_SETTING_DBUS_H_
17
18 #include "stt_setting.h"
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 int stt_setting_dbus_open_connection();
25
26 int stt_setting_dbus_close_connection();
27
28
29 int stt_setting_dbus_request_hello();
30
31 int stt_setting_dbus_request_initialize();
32
33 int stt_setting_dbus_request_finalilze();
34
35 int stt_setting_dbus_request_get_engine_list(stt_setting_supported_engine_cb callback, void* user_data);
36
37 int stt_setting_dbus_request_get_engine(char** engine_id);
38
39 int stt_setting_dbus_request_set_engine(const char* engine_id );
40
41 int stt_setting_dbus_request_get_language_list(stt_setting_supported_language_cb callback, void* user_data);
42
43 int stt_setting_dbus_request_get_default_language(char** language);
44
45 int stt_setting_dbus_request_set_default_language(const char* language);
46
47 int stt_setting_dbus_request_get_profanity_filter(bool* value);
48
49 int stt_setting_dbus_request_set_profanity_filter(const bool value);
50
51 int stt_setting_dbus_request_get_punctuation_override(bool* value);
52
53 int stt_setting_dbus_request_set_punctuation_override(const bool value);
54
55 int stt_setting_dbus_request_get_silence_detection(bool* value);
56
57 int stt_setting_dbus_request_set_silence_detection(const bool value);
58
59 int stt_setting_dbus_request_get_engine_setting(stt_setting_engine_setting_cb callback, void* user_data);
60
61 int stt_setting_dbus_request_set_engine_setting(const char* key, const char* value);
62
63 #ifdef __cplusplus
64 }
65 #endif
66
67 #endif /* __STT_SETTING_DBUS_H_ */