static void test_get_active_ise (void *data, Evas_Object *obj, void *event_info);
static void test_get_ise_list (void *data, Evas_Object *obj, void *event_info);
static void test_get_ise_info (void *data, Evas_Object *obj, void *event_info);
+static void test_get_initial_ise (void *data, Evas_Object *obj, void *event_info);
static void test_get_ise_count (void *data, Evas_Object *obj, void *event_info);
static void test_reset_default_ise (void *data, Evas_Object *obj, void *event_info);
static void test_show_ise_selector (void *data, Evas_Object *obj, void *event_info);
{ "INPUT PANEL STATE GET", test_input_panel_state_get },
{ "GET ACTIVE ISE", test_get_active_ise },
{ "GET ACTIVE ISE INFO", test_get_ise_info },
+ { "GET INITIAL ISE", test_get_initial_ise },
{ "GET ISE LIST", test_get_ise_list },
{ "GET ISE COUNT", test_get_ise_count },
{ "RESET DEFAULT ISE", test_reset_default_ise },
printf (" Show ISE selector is failed!!!\n");
}
+static void test_get_initial_ise (void *data, Evas_Object *obj, void *event_info)
+{
+ char *uuid = NULL;
+ int ret = isf_control_get_initial_ise (&uuid);
+ if (ret > 0 && uuid)
+ printf (" Get initial ISE: %s\n", uuid);
+ if (uuid)
+ free (uuid);
+}
+
static char *gli_label_get (void *data, Evas_Object *obj, const char *part)
{
int j = (int)data;
#define Uses_SCIM_CONFIG_PATH
#define Uses_SCIM_TRANSACTION
#define Uses_ISF_IMCONTROL_CLIENT
-
+#define Uses_SCIM_COMPOSE_KEY
#include <string.h>
#include "scim.h"
return 0;
}
+EAPI int isf_control_get_initial_ise (char **uuid)
+{
+ if (uuid == NULL)
+ return -1;
+
+ String strUuid = scim_global_config_read (String (SCIM_GLOBAL_CONFIG_INITIAL_ISE_UUID), String (SCIM_COMPOSE_KEY_FACTORY_UUID));
+
+ *uuid = strUuid.length () ? strdup (strUuid.c_str ()) : strdup ("");
+
+ return strUuid.length ();
+}
+
EAPI int isf_control_show_ise_selector (void)
{
IMControlClient imcontrol_client;
EAPI int isf_control_set_initial_ise_by_uuid (const char *uuid);
/**
+ * @brief Get initial ISE UUID.
+ *
+ * @param uuid The parameter is used to store initial ISE's UUID.
+ * Application needs free *uuid if it is not used.
+ *
+ * @return the length of UUID if successfully, otherwise return -1;
+ */
+EAPI int isf_control_get_initial_ise (char **uuid);
+
+/**
* @brief Show ISE selector.
*
* @return 0 if successfully, otherwise return -1;