Add multi-user support
[platform/core/uifw/tts.git] / common / tts_defs.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_DEFS_H__
16 #define _TTS_DEFS_H__
17
18 /* For multi-user support */
19 #include <tzplatform_config.h>
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 /******************************************************************************************
26 * Definition for IPC
27 *******************************************************************************************/
28
29 #define TTS_CLIENT_SERVICE_NAME         "com.samsung.voice.ttsclient"
30 #define TTS_CLIENT_SERVICE_OBJECT_PATH  "/com/samsung/voice/ttsclient"
31 #define TTS_CLIENT_SERVICE_INTERFACE    "com.samsung.voice.ttsclient"
32
33 #define TTS_SETTING_SERVICE_NAME        "com.samsung.voice.ttssetting"
34 #define TTS_SETTING_SERVICE_OBJECT_PATH "/com/samsung/voice/ttssetting"
35 #define TTS_SETTING_SERVICE_INTERFACE   "com.samsung.voice.ttssetting"
36
37 #define TTS_SERVER_SERVICE_NAME         "service.connect.ttsserver"
38 #define TTS_SERVER_SERVICE_OBJECT_PATH  "/com/samsung/voice/ttsserver"
39 #define TTS_SERVER_SERVICE_INTERFACE    "com.samsung.voice.ttsserver"
40
41 #define TTS_NOTI_SERVER_SERVICE_NAME            "service.connect.ttsnotiserver"
42 #define TTS_NOTI_SERVER_SERVICE_OBJECT_PATH     "/com/samsung/voice/ttsnotiserver"
43 #define TTS_NOTI_SERVER_SERVICE_INTERFACE       "com.samsung.voice.ttsnotiserver"
44
45 #define TTS_SR_SERVER_SERVICE_NAME              "service.connect.ttssrserver"
46 #define TTS_SR_SERVER_SERVICE_OBJECT_PATH       "/com/samsung/voice/ttssrserver"
47 #define TTS_SR_SERVER_SERVICE_INTERFACE         "com.samsung.voice.ttssrserver"
48
49 /******************************************************************************************
50 * Message Definition for APIs
51 *******************************************************************************************/
52
53 #define TTS_METHOD_HELLO                "tts_method_hello"
54 #define TTS_METHOD_INITIALIZE           "tts_method_initialize"
55 #define TTS_METHOD_FINALIZE             "tts_method_finalilze"
56 #define TTS_METHOD_GET_SUPPORT_VOICES   "tts_method_get_support_voices"
57 #define TTS_METHOD_GET_CURRENT_VOICE    "tts_method_get_current_voice"
58 #define TTS_METHOD_ADD_QUEUE            "tts_method_add_queue"
59 #define TTS_METHOD_PLAY                 "tts_method_play"
60 #define TTS_METHOD_STOP                 "tts_method_stop"
61 #define TTS_METHOD_PAUSE                "tts_method_pause"
62
63 #define TTSD_METHOD_HELLO               "ttsd_method_hello"
64 #define TTSD_METHOD_UTTERANCE_STARTED   "ttsd_method_utterance_started"
65 #define TTSD_METHOD_UTTERANCE_COMPLETED "ttsd_method_utterance_completed"
66 #define TTSD_METHOD_ERROR               "ttsd_method_error"
67 #define TTSD_METHOD_SET_STATE           "ttsd_method_set_state"
68 #define TTSD_METHOD_GET_STATE           "ttsd_method_get_state"
69
70 #define MESSAGE_FILE_PATH               tzplatform_mkpath(TZ_USER_HOME, ".voice/tts")
71
72 /******************************************************************************************
73 * Message Definition for Setting
74 *******************************************************************************************/
75
76 #define TTS_SETTING_METHOD_HELLO                "tts_setting_method_hello"
77 #define TTS_SETTING_METHOD_INITIALIZE           "tts_setting_method_initialize"
78 #define TTS_SETTING_METHOD_FINALIZE             "tts_setting_method_finalilze"
79 #define TTS_SETTING_METHOD_GET_ENGINE_LIST      "tts_setting_method_get_engine_list"
80 #define TTS_SETTING_METHOD_GET_ENGINE           "tts_setting_method_get_engine"
81 #define TTS_SETTING_METHOD_SET_ENGINE           "tts_setting_method_set_engine"
82 #define TTS_SETTING_METHOD_GET_VOICE_LIST       "tts_setting_method_get_voice_list"
83 #define TTS_SETTING_METHOD_GET_DEFAULT_VOICE    "tts_setting_method_get_voice"
84 #define TTS_SETTING_METHOD_SET_DEFAULT_VOICE    "tts_setting_method_set_voice"
85 #define TTS_SETTING_METHOD_GET_DEFAULT_SPEED    "tts_setting_method_get_speed"
86 #define TTS_SETTING_METHOD_SET_DEFAULT_SPEED    "tts_setting_method_set_speed"
87 #define TTS_SETTING_METHOD_GET_ENGINE_SETTING   "tts_setting_method_get_engine_setting"
88 #define TTS_SETTING_METHOD_SET_ENGINE_SETTING   "tts_setting_method_set_engine_setting"
89
90 #if 0
91 /******************************************************************************************
92 * Message Definition for tts-daemon internal
93 *******************************************************************************************/
94
95 #define TTSD_SIGNAL_NEXT_SYNTHESIS      "ttsd_signal_start_synthesis"
96 #endif
97
98 #ifdef __cplusplus
99 }
100 #endif
101
102 #endif  /* _TTS_DEFS_H__ */