2 * Copyright (c) 2011-2015 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 #include <tzplatform_config.h>
27 /******************************************************************************************
29 *******************************************************************************************/
31 #define VC_CLIENT_SERVICE_NAME "org.tizen.vc.client"
32 #define VC_CLIENT_SERVICE_OBJECT_PATH "/org/tizen/vc/client"
33 #define VC_CLIENT_SERVICE_INTERFACE "org.tizen.vc.client"
35 #define VC_WIDGET_SERVICE_NAME "org.tizen.vc.widget"
36 #define VC_WIDGET_SERVICE_OBJECT_PATH "/org/tizen/vc/widget"
37 #define VC_WIDGET_SERVICE_INTERFACE "org.tizen.vc.widget"
39 #define VC_MANAGER_SERVICE_NAME "org.tizen.vc.manager"
40 #define VC_MANAGER_SERVICE_OBJECT_PATH "/org/tizen/vc/manager"
41 #define VC_MANAGER_SERVICE_INTERFACE "org.tizen.vc.manager"
43 #define VC_SERVER_SERVICE_NAME "org.tizen.voice.vcserver"
44 #define VC_SERVER_SERVICE_OBJECT_PATH "/org/tizen/voice/vcserver"
45 #define VC_SERVER_SERVICE_INTERFACE "org.tizen.voice.vcserver"
48 /******************************************************************************************
49 * Message Definition for all
50 *******************************************************************************************/
52 #define VC_METHOD_HELLO "vc_method_hello"
54 /******************************************************************************************
55 * Message Definition for Client
56 *******************************************************************************************/
58 #define VC_METHOD_INITIALIZE "vc_method_initialize"
59 #define VC_METHOD_FINALIZE "vc_method_finalilze"
61 #define VC_METHOD_SET_EXCLUSIVE_CMD "vc_method_set_exclusive_cmd"
62 #define VC_METHOD_SET_COMMAND "vc_method_set_command"
63 #define VC_METHOD_UNSET_COMMAND "vc_method_unset_command"
65 #define VCD_METHOD_RESULT "vcd_method_result"
66 #define VCD_METHOD_ERROR "vcd_method_error"
67 #define VCD_METHOD_HELLO "vcd_method_hello"
71 #define VC_METHOD_OBTAIN_AUTHORITY "vc_method_obtain_authority"
72 #define VC_METHOD_RETURN_AUTHORITY "vc_method_return_authority"
74 #define VC_METHOD_REQUEST_START "vc_method_request_start"
75 #define VC_METHOD_REQUEST_STOP "vc_method_request_stop"
76 #define VC_METHOD_REQUEST_CANCEL "vc_method_request_cancel"
79 #define VC_METHOD_AUTH_ENABLE "vc_method_auth_enable"
80 #define VC_METHOD_AUTH_DISABLE "vc_method_auth_disable"
82 #define VC_METHOD_AUTH_START "vc_method_auth_start"
83 #define VC_METHOD_AUTH_STOP "vc_method_auth_stop"
84 #define VC_METHOD_AUTH_CANCEL "vc_method_auth_cancel"
86 /******************************************************************************************
87 * Message Definition for widget
88 *******************************************************************************************/
90 #define VC_WIDGET_METHOD_INITIALIZE "vc_widget_method_initialize"
91 #define VC_WIDGET_METHOD_FINALIZE "vc_widget_method_finalilze"
93 #define VC_WIDGET_METHOD_START_RECORDING "vc_widget_method_start_recording"
95 #define VC_WIDGET_METHOD_START "vc_widget_method_start"
96 #define VC_WIDGET_METHOD_STOP "vc_widget_method_stop"
97 #define VC_WIDGET_METHOD_CANCEL "vc_widget_method_cancel"
99 #define VCD_WIDGET_METHOD_RESULT "vcd_widget_method_result"
100 #define VCD_WIDGET_METHOD_ERROR "vcd_widget_method_error"
101 #define VCD_WIDGET_METHOD_HELLO "vcd_widget_method_hello"
102 #define VCD_WIDGET_METHOD_SHOW_TOOLTIP "vcd_widget_method_show_tooltip"
105 /******************************************************************************************
106 * Message Definition for manager
107 *******************************************************************************************/
109 #define VC_MANAGER_METHOD_INITIALIZE "vc_manager_method_initialize"
110 #define VC_MANAGER_METHOD_FINALIZE "vc_manager_method_finalilze"
112 #define VC_MANAGER_METHOD_SET_COMMAND "vc_manager_method_set_command"
113 #define VC_MANAGER_METHOD_UNSET_COMMAND "vc_manager_method_unset_command"
114 #define VC_MANAGER_METHOD_SET_DEMANDABLE "vc_manager_method_set_demandable_client"
115 #define VC_MANAGER_METHOD_SET_AUDIO_TYPE "vc_manager_method_set_audio_type"
116 #define VC_MANAGER_METHOD_GET_AUDIO_TYPE "vc_manager_method_get_audio_type"
117 #define VC_MANAGER_METHOD_SET_CLIENT_INFO "vc_manager_method_set_client_info"
119 #define VC_MANAGER_METHOD_START "vc_manager_method_request_start"
120 #define VC_MANAGER_METHOD_STOP "vc_manager_method_request_stop"
121 #define VC_MANAGER_METHOD_CANCEL "vc_manager_method_request_cancel"
122 #define VC_MANAGER_METHOD_RESULT_SELECTION "vc_manager_method_result_selection"
124 #define VCD_MANAGER_METHOD_HELLO "vcd_manager_method_hello"
125 #define VCD_MANAGER_METHOD_SPEECH_DETECTED "vcd_manager_method_speech_detected"
126 #define VCD_MANAGER_METHOD_ALL_RESULT "vcd_manager_method_all_result"
127 #define VCD_MANAGER_METHOD_RESULT "vcd_manager_method_result"
129 #define VCD_MANAGER_METHOD_ERROR "vcd_manager_method_error"
132 /******************************************************************************************
133 * Defines for configuration
134 *******************************************************************************************/
136 #define VC_DAEMON_PATH "/usr/bin/vc-daemon"
138 #define VC_CONFIG_DEFAULT "/usr/lib/voice/vc/1.0/vc-config.xml"
140 #define VC_CONFIG tzplatform_mkpath(TZ_USER_HOME, ".voice/vc-config.xml")
142 #define VC_DEFAULT_ENGINE_INFO "/usr/lib/voice/vc/1.0/engine-info"
144 #define VC_NO_FOREGROUND_PID 0
146 #define VC_BASE_LANGUAGE "en_US"
148 #define VC_RETRY_COUNT 5
150 #define VC_CONFIG_ROOT tzplatform_mkpath(TZ_USER_HOME, ".voice")
152 #define VC_RUNTIME_INFO_ROOT tzplatform_mkpath(TZ_USER_HOME, ".voice/vc")
154 #define VC_RUNTIME_INFO_AUDIO_VOLUME tzplatform_mkpath(TZ_USER_HOME, ".voice/vc/vc_vol")
156 #define VC_RUNTIME_INFO_FOREGROUND tzplatform_mkpath(TZ_USER_HOME, ".voice/vc/vc-info-foreground.xml")
158 #define VC_RUNTIME_INFO_SERVICE_STATE tzplatform_mkpath(TZ_USER_HOME, ".voice/vc/vc-info-state.xml")
160 #define VC_RUNTIME_INFO_DEMANDABLE_LIST tzplatform_mkpath(TZ_USER_HOME, ".voice/vc/vc-demandable-client.xml")
162 #define VC_RUNTIME_INFO_RESULT tzplatform_mkpath(TZ_USER_HOME, ".voice/vc/vc-result.xml")
164 #define VC_RUNTIME_INFO_EX_RESULT tzplatform_mkpath(TZ_USER_HOME, ".voice/vc/vc-ex-result.xml")
166 #define VC_RUNTIME_INFO_CLIENT tzplatform_mkpath(TZ_USER_HOME, ".voice/vc/vc-client-info.xml")
173 #endif /* __VC_DEFS_H__ */