}
bool initialize(InfoManager* info_manager, const String& display, bool resident) {
- LOGD("");
+ LOGD ("");
m_info_manager = info_manager;
m_socket_address = scim_get_default_panel_socket_address(display);
void stop(void) {
SCIM_DEBUG_MAIN(1) << "PanelAgent::stop ()\n";
- LOGD("");
+ LOGD ("");
lock();
m_should_exit = true;
unlock();
}
private:
void update_panel_event(int client, uint32 context_id, int cmd, uint32 nType, uint32 nValue) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
void move_preedit_caret(int client, uint32 context_id, uint32 position) {
SCIM_DEBUG_MAIN(1) << "PanelAgent::move_preedit_caret (" << position << ")\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
#if 0
void request_help(int client_id, uint32 context_id) {
SCIM_DEBUG_MAIN(1) << "PanelAgent::request_help ()\n";
- LOGD("client id:%d", client_id);
+ LOGD ("client id:%d", client_id);
Socket client_socket(client_id);
m_send_trans.clear();
}
void request_factory_menu(int client_id, uint32 context_id) {
- LOGD("client id:%d", client_id);
+ LOGD ("client id:%d", client_id);
Socket client_socket(client_id);
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
#endif
void reset_keyboard_ise(int client, uint32 context_id) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
}
void update_keyboard_ise_list(int client, uint32 context) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
void change_factory(int client, uint32 context, const String& uuid) {
SCIM_DEBUG_MAIN(1) << "PanelAgent::change_factory (" << uuid << ")\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
void helper_candidate_show(int client, uint32 context, const String& uuid) {
SCIM_DEBUG_MAIN(4) << __FUNCTION__ << "...\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
}
void helper_candidate_hide(int client, uint32 context, const String& uuid) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
void candidate_more_window_show(int client, uint32 context) {
SCIM_DEBUG_MAIN(4) << __FUNCTION__ << "...\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
void candidate_more_window_hide(int client, uint32 context) {
SCIM_DEBUG_MAIN(4) << __FUNCTION__ << "...\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
void update_helper_lookup_table(int client, uint32 context, const String& uuid, const LookupTable& table) {
SCIM_DEBUG_MAIN(4) << __FUNCTION__ << "...\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
void select_aux(int client, uint32 contextid, uint32 item) {
SCIM_DEBUG_MAIN(1) << "PanelAgent::select_aux (" << item << ")\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void select_candidate(int client, uint32 context, uint32 item) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
void lookup_table_page_up(int client, uint32 context) {
SCIM_DEBUG_MAIN(1) << "PanelAgent::lookup_table_page_up ()\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void lookup_table_page_down(int client, uint32 context) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void update_lookup_table_page_size(int client, uint32 context, uint32 size) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void update_candidate_item_layout(int client, uint32 context, const std::vector<uint32>& row_items) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void select_associate(int client, uint32 context, uint32 item) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void associate_table_page_up(int client, uint32 context) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void associate_table_page_down(int client, uint32 context) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void update_associate_table_page_size(int client, uint32 context, uint32 size) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void update_displayed_candidate_number(int client, uint32 context, uint32 size) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void send_longpress_event(int client, uint32 context, int index) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void trigger_property(int client, uint32 context, const String& property) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void focus_out_helper(int client, uint32 context, const String& uuid) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void focus_in_helper(int client, uint32 context, const String& uuid) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void show_helper(int client, uint32 context, const String& uuid, char* data, size_t& len) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void hide_helper(int client, uint32 context, const String& uuid) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void set_helper_mode(int client, uint32 context, const String& uuid, uint32& mode) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void set_helper_language(int client, uint32 context, const String& uuid, uint32& language) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void set_helper_imdata(int client, uint32 context, const String& uuid, char* imdata, size_t& len) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void set_helper_return_key_type(int client, uint32 context, const String& uuid, uint32 type) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void get_helper_return_key_type(int client, uint32 context, const String& uuid, _OUT_ uint32& type) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
Transaction trans;
SCIM_DEBUG_MAIN(1) << __func__ << " success\n";
} else {
- LOGW("read failed\n");
+ LOGW ("read failed\n");
}
}
void set_helper_return_key_disable(int client, uint32 context, const String& uuid, uint32 disabled) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
void get_helper_return_key_disable(int client, uint32 context, const String& uuid, _OUT_ uint32& disabled) {
Socket client_socket(client);
- LOGD("client id:%d", client);
+ LOGD ("client id:%d", client);
Transaction trans;
SCIM_DEBUG_MAIN(1) << __func__ << " success\n";
} else {
- LOGW("read failed");
+ LOGW ("read failed");
}
}
void set_helper_layout(int client, uint32 context, const String& uuid, uint32& layout) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void set_helper_input_mode(int client, uint32 context, const String& uuid, uint32& mode) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void set_helper_input_hint(int client, uint32 context, const String& uuid, uint32& hint) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void set_helper_bidi_direction(int client, uint32 context, const String& uuid, uint32& direction) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void set_helper_caps_mode(int client, uint32 context, const String& uuid, uint32& mode) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void show_helper_option_window(int client, uint32 context, const String& uuid) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
bool process_key_event(int client, uint32 context, const String& uuid, KeyEvent& key, _OUT_ uint32& result) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
SCIM_DEBUG_MAIN(1) << __func__ << " success\n";
return true;
} else {
- LOGW("read failed\n");
+ LOGW ("read failed\n");
}
return false;
}
bool get_helper_geometry(int client, uint32 context, String& uuid, _OUT_ struct rectinfo& info) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
SCIM_DEBUG_MAIN(1) << __func__ << " is successful\n";
return true;
} else
- LOGW("read failed\n");
+ LOGW ("read failed\n");
} else
- LOGW("write failed\n");
+ LOGW ("write failed\n");
return false;
}
void get_helper_imdata(int client, uint32 context, String& uuid, char** imdata, size_t& len) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
&& trans.get_data(imdata, len)) {
SCIM_DEBUG_MAIN(1) << "get_helper_imdata success\n";
} else {
- LOGW("read failed\n");
+ LOGW ("read failed\n");
}
}
void get_helper_layout(int client, uint32 context, String& uuid, uint32& layout) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
&& trans.get_data(layout)) {
SCIM_DEBUG_MAIN(1) << "get_helper_layout success\n";
} else
- LOGW("failed\n");
+ LOGW ("failed\n");
}
void get_ise_language_locale(int client, uint32 context, String& uuid, char* data, size_t& len) {
SCIM_DEBUG_MAIN(4) << __func__ << "\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Transaction trans;
&& trans.get_command(cmd) && cmd == SCIM_TRANS_CMD_REPLY
&& trans.get_data(&data, len)) {
} else {
- LOGW("failed\n");
+ LOGW ("failed\n");
}
}
void check_option_window(int client, uint32 context, String& uuid, _OUT_ uint32& avail) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
int cmd;
Socket client_socket(client);
if (!trans.read_from_socket(client_socket, m_socket_timeout) ||
!trans.get_command(cmd) || cmd != SCIM_TRANS_CMD_REPLY ||
!trans.get_data(avail)) {
- LOGW("ISM_TRANS_CMD_CHECK_OPTION_WINDOW failed\n");
+ LOGW ("ISM_TRANS_CMD_CHECK_OPTION_WINDOW failed\n");
}
}
void reset_ise_option(int client, uint32 context) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void reset_helper_context(int client, uint32 context, const String& uuid) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
void reload_config(int client) {
SCIM_DEBUG_MAIN(1) << "PanelAgent::reload_config ()\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
void exit(int client, uint32 context) {
SCIM_DEBUG_MAIN(1) << "PanelAgent::exit ()\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
void socket_update_surrounding_text(int client, uint32 context, const String& uuid, String text, uint32 cursor) {
SCIM_DEBUG_MAIN(4) << __FUNCTION__ << "...\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
}
void socket_update_selection(int client, uint32 context, const String& uuid, String text) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
}
void socket_get_keyboard_ise_list(int client, uint32 context, const String& uuid, std::vector<String>& list) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
m_send_trans.clear();
void socket_get_candidate_ui(int client, uint32 context, const String& uuid, int style, int mode) {
SCIM_DEBUG_MAIN(4) << "PanelAgent::socket_get_candidate_ui ()\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
m_send_trans.clear();
void socket_get_candidate_geometry(int client, uint32 context, const String& uuid, struct rectinfo& info) {
SCIM_DEBUG_MAIN(4) << __func__ << " \n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
m_send_trans.clear();
}
void socket_get_keyboard_ise(int client, uint32 context, const String& uuid, String& ise_name, String& ise_uuid) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
m_send_trans.clear();
void socket_start_helper(int client, uint32 context, const String& ic_uuid) {
SCIM_DEBUG_MAIN(4) << "PanelAgent::socket_start_helper ()\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
void helper_detach_input_context(int client, uint32 context, const String& ic_uuid) {
SCIM_DEBUG_MAIN(4) << "PanelAgent::socket_stop_helper ()\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
void helper_process_imengine_event(int client, uint32 context, const String& ic_uuid, const Transaction& _nest_trans) {
SCIM_DEBUG_MAIN(4) << "PanelAgent::socket_send_helper_event ()\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
}
void process_helper_event(int client, uint32 context, String target_uuid, String active_uuid, Transaction& nest_trans) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
SCIM_DEBUG_MAIN(4) << "PanelAgent::socket_helper_send_imengine_event (" << client << ")\n";
Socket socket_client(client);
}
void socket_helper_key_event(int client, uint32 context, int cmd, KeyEvent& key) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
lock();
}
void commit_string(int client, uint32 target_context, const WideString& wstr) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
lock();
void socket_helper_get_surrounding_text(int client, uint32 context_id, uint32 maxlen_before, uint32 maxlen_after) {
SCIM_DEBUG_MAIN(4) << __FUNCTION__ << " (" << client << ")\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
lock();
void socket_helper_delete_surrounding_text(int client, uint32 context_id, uint32 offset, uint32 len) {
SCIM_DEBUG_MAIN(4) << __FUNCTION__ << " (" << client << ")\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
lock();
void socket_helper_get_selection(int client, uint32 context_id) {
SCIM_DEBUG_MAIN(4) << __FUNCTION__ << " (" << client << ")\n";
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
}
void socket_helper_set_selection(int client, uint32 context_id, uint32 start, uint32 end) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
lock();
}
void show_preedit_string(int client, uint32 target_context) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
lock();
}
void hide_preedit_string(int client, uint32 target_context) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
lock();
}
void update_preedit_string(int client, uint32 target_context, WideString wstr, AttributeList& attrs, uint32 caret) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
lock();
void update_preedit_caret(int client, uint32 focused_context, uint32 caret) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
lock();
}
void helper_attach_input_context_and_update_screen(int client, std::vector < std::pair <uint32, String> >& helper_ic_index, uint32 current_screen) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
m_send_trans.clear();
}
void update_ise_input_context(int client, uint32 focused_context, uint32 type, uint32 value) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket client_socket(client);
m_send_trans.clear();
}
void send_private_command(int client, uint32 focused_context, String command) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
Socket socket_client(client);
lock();
void helper_all_update_spot_location(int client, uint32 context_id, String uuid, int x, int y) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
}
void helper_all_update_cursor_position(int client, uint32 context_id, String uuid, int cursor_pos) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
}
void helper_all_update_screen(int client, uint32 context_id, String uuid, int screen) {
- LOGD("client id:%d\n", client);
+ LOGD ("client id:%d\n", client);
m_send_trans.clear();
m_send_trans.put_command(SCIM_TRANS_CMD_REPLY);
return true;
if (nbytes < 0) {
- LOGW("Error occurred when reading socket: %s\n", client.get_error_message().c_str());
+ LOGW ("Error occurred when reading socket: %s\n", client.get_error_message().c_str());
} else {
- LOGW("Timeout when reading socket\n");
+ LOGW ("Timeout when reading socket\n");
}
return false;
void socket_accept_callback(SocketServer* server,
const Socket& client) {
SCIM_DEBUG_MAIN(2) << "PanelAgent::socket_accept_callback (" << client.get_id() << ")\n";
- LOGD("");
+ LOGD ("");
lock();
if (m_should_exit) {
/* If the connection is closed then close this client. */
if (!socket_check_client_connection(client)) {
- LOGW("check client connection failed\n");
+ LOGW ("check client connection failed\n");
socket_close_connection(server, client);
return;
}
if (!m_recv_trans.read_from_socket(client, m_socket_timeout) ||
!m_recv_trans.get_command(cmd) || cmd != SCIM_TRANS_CMD_REQUEST ||
!m_recv_trans.get_data(key) || key != (uint32) client_info.key) {
- LOGW("cmd:%d key:%d client info key: %d\n", cmd, key, client_info.key);
+ LOGW ("cmd:%d key:%d client info key: %d\n", cmd, key, client_info.key);
return;
}
socket_transaction_start();
while (m_recv_trans.get_command(cmd)) {
- LOGD("PanelAgent::cmd = %d\n", cmd);
+ LOGD ("PanelAgent::cmd = %d\n", cmd);
if (cmd == ISM_TRANS_CMD_REGISTER_PANEL_CLIENT) {
uint32 id = 0;
if (m_recv_trans.get_data(id)) {
m_info_manager->register_panel_client(client_id, id);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(uuid)) {
m_info_manager->register_input_context(client_id, context, uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(uuid)) {
m_info_manager->focus_in(client_id, context, uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(isOn)) {
m_info_manager->socket_turn_on_log(isOn);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(client) && m_recv_trans.get_data(context) && m_recv_trans.get_data(&data, len)) {
ret = true;
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
Transaction trans;
if (m_recv_trans.get_data(client) && m_recv_trans.get_data(context)) {
m_info_manager->hide_ise_panel(client_id, client, context);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(language)) {
m_info_manager->set_ise_language(client_id, language);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(&imdata, len)) {
m_info_manager->set_ise_imdata(client_id, imdata, len);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
if (NULL != imdata)
if (m_recv_trans.get_data(type)) {
m_info_manager->set_ise_return_key_type(client_id, type);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(disabled)) {
m_info_manager->set_ise_return_key_disable(client_id, disabled);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(layout)) {
m_info_manager->set_ise_layout(client_id, layout);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(mode)) {
m_info_manager->set_ise_caps_mode(client_id, mode);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(mode)) {
m_info_manager->set_keyboard_mode(client_id, mode);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
ret = true;
m_info_manager->process_key_event(key, result);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
Transaction trans;
if (m_recv_trans.get_data(input_mode)) {
m_info_manager->set_ise_input_mode(client_id, input_mode);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(input_hint)) {
m_info_manager->set_ise_input_hint(client_id, input_hint);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(bidi_direction)) {
m_info_manager->update_ise_bidi_direction(client_id, bidi_direction);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(uuid) && uuid.length()) {
m_info_manager->socket_start_helper(client_id, context, uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
uuid.length() && m_nest_trans.valid()) {
m_info_manager->socket_send_helper_event(client_id, context, uuid, m_nest_trans);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(uuid) && uuid.length()) {
m_info_manager->socket_stop_helper(client_id, context, uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
continue;
if (m_recv_trans.get_data(num))
m_info_manager->socket_update_screen(client_id, num);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_UPDATE_SPOT_LOCATION) {
uint32 x, y, top_y;
if (m_recv_trans.get_data(x) && m_recv_trans.get_data(y) && m_recv_trans.get_data(top_y)) {
m_info_manager->socket_update_spot_location(x, y, top_y);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_UPDATE_CURSOR_POSITION) {
uint32 cursor_pos;
if (m_recv_trans.get_data(cursor_pos)) {
m_info_manager->socket_update_cursor_position(cursor_pos);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_UPDATE_SURROUNDING_TEXT) {
String text;
if (m_recv_trans.get_data(text) && m_recv_trans.get_data(cursor)) {
m_info_manager->socket_update_surrounding_text(text, cursor);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_UPDATE_SELECTION) {
String text;
if (m_recv_trans.get_data(text)) {
m_info_manager->socket_update_selection(text);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_EXPAND_CANDIDATE)
m_info_manager->expand_candidate();
if (m_recv_trans.get_data(portrait_line) && m_recv_trans.get_data(mode))
m_info_manager->socket_set_candidate_ui(portrait_line, mode);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_PANEL_UPDATE_FACTORY_INFO) {
PanelFactoryInfo info;
m_recv_trans.get_data(info.lang) && m_recv_trans.get_data(info.icon)) {
m_info_manager->socket_update_factory_info(info);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_SHOW_PREEDIT_STRING)
m_info_manager->socket_show_preedit_string();
if (m_recv_trans.get_data(str) && m_recv_trans.get_data(attrs) && m_recv_trans.get_data(caret))
m_info_manager->socket_update_preedit_string(str, attrs, caret);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_UPDATE_PREEDIT_CARET) {
uint32 caret;
if (m_recv_trans.get_data(caret))
m_info_manager->socket_update_preedit_caret(caret);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_UPDATE_AUX_STRING) {
String str;
AttributeList attrs;
if (m_recv_trans.get_data(str) && m_recv_trans.get_data(attrs))
m_info_manager->socket_update_aux_string(str, attrs);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_UPDATE_LOOKUP_TABLE) {
CommonLookupTable _isf_candidate_table;
if (m_recv_trans.get_data(_isf_candidate_table))
m_info_manager->socket_update_lookup_table(_isf_candidate_table);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == ISM_TRANS_CMD_UPDATE_ASSOCIATE_TABLE) {
CommonLookupTable table;
if (m_recv_trans.get_data(table))
m_info_manager->socket_update_associate_table(table);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_REGISTER_PROPERTIES) {
PropertyList properties;
if (m_recv_trans.get_data(properties))
m_info_manager->socket_register_properties(properties);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_UPDATE_PROPERTY) {
Property property;
if (m_recv_trans.get_data(property))
m_info_manager->socket_update_property(property);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_PANEL_SHOW_HELP) {
String help;
if (m_recv_trans.get_data(help))
m_info_manager->socket_show_help(help);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_PANEL_SHOW_FACTORY_MENU) {
PanelFactoryInfo info;
std::vector <PanelFactoryInfo> vec;
} else if (cmd == SCIM_TRANS_CMD_FOCUS_OUT) {
m_info_manager->focus_out(client_id, context);
} else {
- LOGW("unknow cmd: %d\n", cmd);
+ LOGW ("unknow cmd: %d\n", cmd);
}
}
socket_transaction_start();
while (m_recv_trans.get_command(cmd)) {
- LOGD("PanelAgent::cmd = %d\n", cmd);
+ LOGD ("PanelAgent::cmd = %d\n", cmd);
if (cmd == ISM_TRANS_CMD_GET_PANEL_CLIENT_ID) {
Socket client_socket(client_id);
trans.write_to_socket(client_socket);
continue;
} else {
- LOGW("unknow cmd: %d\n", cmd);
+ LOGW ("unknow cmd: %d\n", cmd);
}
}
socket_transaction_start();
while (m_recv_trans.get_command(cmd)) {
- LOGD("PanelAgent::cmd = %d\n", cmd);
+ LOGD ("PanelAgent::cmd = %d\n", cmd);
if (cmd == SCIM_TRANS_CMD_PANEL_REGISTER_HELPER) {
HelperInfo info;
m_info_manager->socket_helper_register_helper(client_id, info);
}
} else {
- LOGW("unknow cmd: %d\n", cmd);
+ LOGW ("unknow cmd: %d\n", cmd);
}
}
socket_transaction_start();
while (m_recv_trans.get_command(cmd)) {
- LOGD("PanelAgent::cmd = %d\n", cmd);
+ LOGD ("PanelAgent::cmd = %d\n", cmd);
if (cmd == SCIM_TRANS_CMD_PANEL_REGISTER_ACTIVE_HELPER) {
HelperInfo info;
info.uuid.length()) {
m_info_manager->socket_helper_register_helper_passive(client_id, info);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_COMMIT_STRING) {
uint32 target_ic;
wstr.length()) {
m_info_manager->socket_helper_commit_string(client_id, target_ic, target_uuid, wstr);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_SHOW_PREEDIT_STRING) {
uint32 target_ic;
if (m_recv_trans.get_data(target_ic) && m_recv_trans.get_data(target_uuid)) {
m_info_manager->socket_helper_show_preedit_string(client_id, target_ic, target_uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_SHOW_AUX_STRING) {
m_info_manager->socket_show_aux_string();
if (m_recv_trans.get_data(target_ic) && m_recv_trans.get_data(target_uuid)) {
m_info_manager->socket_helper_hide_preedit_string(client_id, target_ic, target_uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_HIDE_AUX_STRING) {
m_info_manager->socket_hide_aux_string();
m_recv_trans.get_data(caret)) {
m_info_manager->socket_helper_update_preedit_string(client_id, target_ic, target_uuid, wstr, attrs, caret);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_UPDATE_PREEDIT_CARET) {
uint32 caret;
if (m_recv_trans.get_data(caret)) {
m_info_manager->socket_helper_update_preedit_caret(client_id, caret);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_UPDATE_AUX_STRING) {
String str;
if (m_recv_trans.get_data(str) && m_recv_trans.get_data(attrs))
m_info_manager->socket_update_aux_string(str, attrs);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_UPDATE_LOOKUP_TABLE) {
CommonLookupTable _isf_candidate_table;
if (m_recv_trans.get_data(_isf_candidate_table)) {
m_info_manager->socket_update_lookup_table(_isf_candidate_table);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_UPDATE_ASSOCIATE_TABLE) {
CommonLookupTable _isf_candidate_table;
if (m_recv_trans.get_data(_isf_candidate_table)) {
m_info_manager->socket_update_associate_table(_isf_candidate_table);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_PROCESS_KEY_EVENT ||
cmd == SCIM_TRANS_CMD_PANEL_SEND_KEY_EVENT) {
!key.empty()) {
m_info_manager->socket_helper_send_key_event(client_id, target_ic, target_uuid, key);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_FORWARD_KEY_EVENT) {
uint32 target_ic;
!key.empty()) {
m_info_manager->socket_helper_forward_key_event(client_id, target_ic, target_uuid, key);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_PANEL_SEND_IMENGINE_EVENT) {
uint32 target_ic;
m_nest_trans.valid()) {
m_info_manager->socket_helper_send_imengine_event(client_id, target_ic, target_uuid, m_nest_trans);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_REGISTER_PROPERTIES) {
PropertyList properties;
if (m_recv_trans.get_data(properties))
m_info_manager->socket_helper_register_properties(client_id, properties);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_UPDATE_PROPERTY) {
Property property;
if (m_recv_trans.get_data(property))
m_info_manager->socket_helper_update_property(client_id, property);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_RELOAD_CONFIG) {
m_info_manager->reload_config();
} else if (cmd == ISM_TRANS_CMD_UPDATE_ISE_INPUT_CONTEXT) {
if (m_recv_trans.get_data(type) && m_recv_trans.get_data(value)) {
m_info_manager->socket_helper_update_input_context(client_id, type, value);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_GET_KEYBOARD_ISE_LIST) {
String uuid;
if (m_recv_trans.get_data(uuid)) {
m_info_manager->socket_get_keyboard_ise_list(uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_SET_CANDIDATE_UI) {
uint32 portrait_line, mode;
if (m_recv_trans.get_data(portrait_line) && m_recv_trans.get_data(mode))
m_info_manager->socket_set_candidate_ui(portrait_line, mode);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == ISM_TRANS_CMD_GET_CANDIDATE_UI) {
String uuid;
if (m_recv_trans.get_data(uuid)) {
m_info_manager->socket_get_candidate_ui(uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_SET_CANDIDATE_POSITION) {
uint32 left, top;
if (m_recv_trans.get_data(left) && m_recv_trans.get_data(top))
m_info_manager->socket_set_candidate_position(left, top);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == ISM_TRANS_CMD_HIDE_CANDIDATE) {
m_info_manager->socket_hide_candidate();
} else if (cmd == ISM_TRANS_CMD_GET_CANDIDATE_GEOMETRY) {
if (m_recv_trans.get_data(uuid)) {
m_info_manager->socket_get_candidate_geometry(uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_PANEL_RESET_KEYBOARD_ISE) {
m_info_manager->reset_keyboard_ise();
if (m_recv_trans.get_data(uuid)) {
m_info_manager->socket_set_keyboard_ise(uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_GET_KEYBOARD_ISE) {
String uuid;
if (m_recv_trans.get_data(uuid)) {
m_info_manager->socket_get_keyboard_ise(uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_UPDATE_ISE_GEOMETRY) {
uint32 x, y, width, height;
m_recv_trans.get_data(width) && m_recv_trans.get_data(height)) {
m_info_manager->socket_helper_update_ise_geometry(client_id, x, y, width, height);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == ISM_TRANS_CMD_EXPAND_CANDIDATE) {
m_info_manager->expand_candidate();
if (m_recv_trans.get_data(index))
m_info_manager->socket_helper_select_candidate(index);
else
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
} else if (cmd == SCIM_TRANS_CMD_GET_SURROUNDING_TEXT) {
String uuid;
uint32 maxlen_before;
m_recv_trans.get_data(maxlen_after)) {
m_info_manager->socket_helper_get_surrounding_text(client_id, uuid, maxlen_before, maxlen_after);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_DELETE_SURROUNDING_TEXT) {
uint32 offset;
if (m_recv_trans.get_data(offset) && m_recv_trans.get_data(len)) {
m_info_manager->socket_helper_delete_surrounding_text(client_id, offset, len);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_GET_SELECTION) {
String uuid;
if (m_recv_trans.get_data(uuid)) {
m_info_manager->socket_helper_get_selection(client_id, uuid);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_SET_SELECTION) {
uint32 start;
if (m_recv_trans.get_data(start) && m_recv_trans.get_data(end)) {
m_info_manager->socket_helper_set_selection(client_id, start, end);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
} else if (cmd == SCIM_TRANS_CMD_SEND_PRIVATE_COMMAND) {
String command;
if (m_recv_trans.get_data(command)) {
m_info_manager->socket_helper_send_private_command(client_id, command);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
//FIXME: useless
//} else if (cmd == ISM_TRANS_CMD_UPDATE_ISE_EXIT) {
// m_info_manager->UPDATE_ISE_EXIT(client_id);
} else {
- LOGW("unknow cmd: %d\n", cmd);
+ LOGW ("unknow cmd: %d\n", cmd);
}
}
socket_transaction_start();
while (m_recv_trans.get_command(cmd)) {
- LOGD("PanelAgent::cmd = %d\n", cmd);
+ LOGD ("PanelAgent::cmd = %d\n", cmd);
if (cmd == ISM_TRANS_CMD_GET_ACTIVE_ISE) {
trans.write_to_socket(client_socket);
}
else {
- LOGW("Access denied to get active ise\n");
+ LOGW ("Access denied to get active ise\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_SET_ACTIVE_ISE_BY_UUID) {
if (m_recv_trans.get_data(&buf, len)) {
ret = m_info_manager->set_active_ise_by_uuid(client_id, buf, len);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
Transaction trans;
delete[] buf;
}
else {
- LOGW("Access denied to set active ise\n");
+ LOGW ("Access denied to set active ise\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_SET_INITIAL_ISE_BY_UUID) {
if (m_recv_trans.get_data(&buf, len)) {
m_info_manager->set_initial_ise_by_uuid(client_id, buf, len);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
Transaction trans;
delete[] buf;
}
else {
- LOGW("Access denied to set initial ise\n");
+ LOGW ("Access denied to set initial ise\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_GET_ISE_LIST) {
trans.write_to_socket(client_socket);
}
else {
- LOGW("Access denied to get ise list\n");
+ LOGW ("Access denied to get ise list\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_GET_ALL_HELPER_ISE_INFO) {
} while (0);
}
else {
- LOGW("Access denied to get all helper ise info\n");
+ LOGW ("Access denied to get all helper ise info\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_SET_ENABLE_HELPER_ISE_INFO) {
m_info_manager->set_enable_helper_ise_info(client_id, appid, is_enabled);
ret = true;
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
Transaction trans;
trans.write_to_socket(client_socket);
}
else {
- LOGW("Access denied to set enable helper ise info\n");
+ LOGW ("Access denied to set enable helper ise info\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_GET_ISE_INFORMATION) {
if (m_recv_trans.get_data(strUuid)) {
m_info_manager->get_ise_information(client_id, strUuid, strName, strLanguage, nType, nOption, strModuleName);
} else {
- LOGW("wrong format of transaction\n");
+ LOGW ("wrong format of transaction\n");
}
Transaction trans;
trans.write_to_socket(client_socket);
}
else {
- LOGW("Access denied to get ise information\n");
+ LOGW ("Access denied to get ise information\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_RESET_ISE_OPTION) {
m_info_manager->reset_ise_option(client_id);
}
else {
- LOGW("Access denied to reset ise option\n");
+ LOGW ("Access denied to reset ise option\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_RESET_DEFAULT_ISE) {
m_info_manager->reset_default_ise(client_id);
}
else {
- LOGW("Access denied to reset default ise\n");
+ LOGW ("Access denied to reset default ise\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_SHOW_ISF_CONTROL) {
m_info_manager->show_isf_panel(client_id);
}
else {
- LOGW("Access denied to show isf control\n");
+ LOGW ("Access denied to show isf control\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_SHOW_ISE_OPTION_WINDOW) {
m_info_manager->show_ise_option_window(client_id);
}
else {
- LOGW("Access denied to show ise option window\n");
+ LOGW ("Access denied to show ise option window\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_SHOW_HELPER_ISE_LIST) {
m_info_manager->show_helper_ise_list(client_id);
}
else {
- LOGW("Access denied to show helper ise list\n");
+ LOGW ("Access denied to show helper ise list\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_SHOW_HELPER_ISE_SELECTOR) {
m_info_manager->show_helper_ise_selector(client_id);
}
else {
- LOGW("Access denied to show helper ise selector\n");
+ LOGW ("Access denied to show helper ise selector\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_IS_HELPER_ISE_ENABLED) {
trans.write_to_socket(client_socket);
}
else {
- LOGW("Access denied to check helper ise enabled\n");
+ LOGW ("Access denied to check helper ise enabled\n");
send_fail_reply (client_id);
}
} else if (cmd == ISM_TRANS_CMD_GET_RECENT_ISE_GEOMETRY) {
trans.write_to_socket(client_socket);
} else {
- LOGW("unknow cmd: %d\n", cmd);
+ LOGW ("unknow cmd: %d\n", cmd);
}
}
void socket_exception_callback(SocketServer* server,
const Socket& client) {
SCIM_DEBUG_MAIN(2) << "PanelAgent::socket_exception_callback (" << client.get_id() << ")\n";
- LOGD("client id:%d\n", client.get_id());
+ LOGD ("client id:%d\n", client.get_id());
socket_close_connection(server, client);
}
bool socket_open_connection(SocketServer* server,
const Socket& client) {
SCIM_DEBUG_MAIN(3) << "PanelAgent::socket_open_connection (" << client.get_id() << ")\n";
- LOGD("client id:%d\n", client.get_id());
+ LOGD ("client id:%d\n", client.get_id());
uint32 key;
String type = scim_socket_accept_connection(key,
String("Panel"),
unlock();
return true;
}
- LOGW("open_connection failed\n");
+ LOGW ("open_connection failed\n");
SCIM_DEBUG_MAIN(4) << "Close client connection " << client.get_id() << "\n";
server->close_connection(client);
void socket_close_connection(SocketServer* server,
const Socket& client) {
SCIM_DEBUG_MAIN(3) << "PanelAgent::socket_close_connection (" << client.get_id() << ")\n";
- LOGD("client id:%d\n", client.get_id());
+ LOGD ("client id:%d\n", client.get_id());
int i = 0;
std::vector<Ecore_Fd_Handler *>::iterator IterPos;