Change mgr dbus by sending disabled cmd types when vc_mgr_start is requested
[platform/core/uifw/voice-control.git] / server / vcd_config.h
1 /*
2 * Copyright (c) 2011-2015 Samsung Electronics Co., Ltd All Rights Reserved
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 #ifndef __VCD_CONFIG_H_
19 #define __VCD_CONFIG_H_
20
21 #include "vcd_main.h"
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 typedef void (*vcd_config_lang_changed_cb)(const char* language, void* user_data);
28
29 typedef void (*vcd_config_foreground_changed_cb)(int previous, int current, void* user_data);
30
31
32 int vcd_config_initialize(vcd_config_lang_changed_cb lang_cb, vcd_config_foreground_changed_cb fore_cb, void* user_data);
33
34 int vcd_config_finalize();
35
36 int vcd_config_get_default_language(char** language);
37
38 int vcd_config_set_default_language(const char* language);
39
40 int vcd_config_set_service_state(vcd_state_e state);
41
42 vcd_state_e vcd_config_get_service_state();
43
44 int vcd_config_get_foreground(int* pid);
45
46 int vcd_config_set_foreground(int pid, bool value);
47
48 int vcd_config_set_disabled_command_type(int disabled_cmd_type);
49
50 int vcd_config_get_command_type_enabled(int cmd_type);
51
52 int vcd_config_get_audio_streaming_mode(vcd_audio_streaming_mode_e* streaming_mode);
53
54 int vcd_config_set_audio_streaming_mode(vcd_audio_streaming_mode_e streaming_mode);
55
56
57 #ifdef __cplusplus
58 }
59 #endif
60
61 #endif /* __VCD_CONFIG_H_ */