[ACR-1216][tts][Add tts_repeat()]
[platform/core/uifw/tts.git] / client / tts_client.h
old mode 100755 (executable)
new mode 100644 (file)
index 1790977..fa5eaae
@@ -1,5 +1,5 @@
 /*
-*  Copyright (c) 2012, 2013 Samsung Electronics Co., Ltd All Rights Reserved 
+*  Copyright (c) 2011-2016 Samsung Electronics Co., Ltd All Rights Reserved 
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  limitations under the License.
 */
 
+
 #ifndef __TTS_CLIENT_H_
 #define __TTS_CLIENT_H_
 
-#include <pthread.h>
+#include <Ecore.h>
+
 #include "tts.h"
+#include "tts_config_mgr.h"
 #include "tts_main.h"
 
 #ifdef __cplusplus
@@ -39,8 +41,14 @@ typedef struct {
        void*                           utt_completed_user_data;
        tts_error_cb                    error_cb;
        void*                           error_user_data;
-
-       /* mode & state */
+       tts_default_voice_changed_cb    default_voice_changed_cb;
+       void*                           default_voice_changed_user_data;
+       tts_engine_changed_cb           engine_changed_cb;
+       void*                           engine_changed_user_data;
+       tts_supported_voice_cb          supported_voice_cb;
+       void*                           supported_voice_user_data;
+
+       /* mode / state */
        tts_mode_e      mode;
        tts_state_e     before_state;
        tts_state_e     current_state;
@@ -51,7 +59,19 @@ typedef struct {
        /* callback data */
        int             utt_id;
        int             reason;
-}tts_client_s;
+       char*           err_msg;
+
+       /* connection */
+       Ecore_Timer*    conn_timer;
+
+       /* options */
+       char*           credential;
+       bool            credential_needed;
+       bool            internal;
+
+       /* repeatition */
+       char*           text_repeat;
+} tts_client_s;
 
 int tts_client_new(tts_h* tts);
 
@@ -71,6 +91,10 @@ int tts_client_get_use_callback(tts_client_s* client);
 
 int tts_client_get_connected_client_count();
 
+int tts_client_get_mode_client_count(tts_mode_e mode);
+
+GList* tts_client_get_client_list();
+
 #ifdef __cplusplus
 }
 #endif