2 * Copyright (c) 2011-2016 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.
15 #ifndef __STTD_CLIENT_DATA_H_
16 #define __STTD_CLIENT_DATA_H_
26 APP_STATE_CREATED = 0,
28 APP_STATE_RECORDING = 2,
29 APP_STATE_PROCESSING = 3
39 /* Ecore_Timer* timer; */
52 typedef bool (*time_callback)(int index, int event, const char* text, long start_time, long end_time, void *user_data);
55 int sttd_client_add(int pid, int uid);
57 int sttd_client_delete(int uid);
59 int sttd_client_get_start_sound(int uid, char** filename);
61 int sttd_client_set_start_sound(int uid, const char* filename);
63 int sttd_client_get_stop_sound(int uid, char** filename);
65 int sttd_client_set_stop_sound(int uid, const char* filename);
67 int sttd_client_get_state(int uid, app_state_e* state);
69 int sttd_client_set_state(int uid, app_state_e state);
71 int sttd_client_get_ref_count();
73 int sttd_client_get_pid(int uid);
76 int sttd_client_get_current_recording();
78 int sttd_client_get_current_thinking();
80 int sttd_cliet_set_timer(int uid, Ecore_Timer* timer);
82 int sttd_cliet_get_timer(int uid, Ecore_Timer** timer);
85 int sttd_client_get_list(int** uids, int* uid_count);
87 int stt_client_set_current_recognition(int uid);
89 int stt_client_get_current_recognition();
91 int stt_client_unset_current_recognition();
94 int stt_client_set_app_agreed(int uid);
96 bool stt_client_get_app_agreed(int uid);
103 #endif /* __STTD_CLIENT_DATA_H_ */