check and revise by coding rule
[platform/core/uifw/voice-control.git] / server / vcd_dbus.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_DBUS_h__
19 #define __VCD_DBUS_h__
20
21 #include "vcd_main.h"
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 typedef enum {
28         VCD_CLIENT_TYPE_NORMAL,
29         VCD_CLIENT_TYPE_WIDGET,
30         VCD_CLIENT_TYPE_MANAGER
31 } vcd_client_type_e;
32
33 int vcd_dbus_open_connection();
34
35 int vcd_dbus_close_connection();
36
37
38 int vcdc_send_hello(int pid, vcd_client_type_e type);
39
40 int vcdc_send_show_tooltip(int pid, bool show);
41
42 int vcdc_send_set_volume(int manger_pid, float volume);
43
44 int vcdc_send_result(int pid, int cmd_type);
45
46 int vcdc_send_result_to_manager(int manger_pid, int result_type);
47
48 int vcdc_send_speech_detected(int manger_pid);
49
50 int vcdc_send_error_signal(int pid, int reason, char *err_msg);
51
52 int vcdc_send_service_state(vcd_state_e state);
53
54
55 #ifdef __cplusplus
56 }
57 #endif
58
59 #endif  /* __VCD_DBUS_h__ */