struct appdata *ad = (struct appdata *)data;
Evas_Object *bx = NULL;
Evas_Object *ef = NULL;
- int i,j;
+ int i, j;
char title[128];
const char* title_layout[] = {"NORMAL", "NUMBER", "EMAIL", "URL", "PHONENUMBER", "IP", "MONTH", "NUMBERONLY", "INVALID", "HEX", "TERMINAL", "PASSWORD"};
void autotest_add_demo_return_key_disable(struct appdata *ad)
{
- int i,j;
+ int i, j;
_autotest_item item;
item.test_func = autotest_return_key_disable_test_func;
item.verify_func = autotest_return_key_disable_verify_func;
return isf_control_get_recent_ime_geometry_with_rotation_angle (-1, x, y, w, h);
}
-EXAPI int isf_control_get_recent_ime_geometry_with_rotation_angle (int angle, int * x,int * y,int * w,int * h)
+EXAPI int isf_control_get_recent_ime_geometry_with_rotation_angle (int angle, int * x, int * y, int * w, int * h)
{
int ime_x = -1, ime_y = -1, ime_w = -1, ime_h = -1;
if (m_socket_imclient2panel.is_connected ()) close_connection ();
- bool ret=false, ret2=false;
+ bool ret = false, ret2 = false;
int count = 0;
/* Try three times. */
return false;
}
}
-
};
IMControlClient::IMControlClient ()
String& get_text_ref() { return m_text; }
protected:
String m_text;
-
};
/* SCIM_TRANS_CMD_TRIGGER_PROPERTY */
String& get_property_ref() { return m_property; }
protected:
String m_property;
-
};
/* SCIM_TRANS_CMD_HELPER_PROCESS_IMENGINE_EVENT */
void create()
{
-
}
void destroy()
{
*
* @return none.
*/
- virtual void socket_update_surrounding_text (int client, uint32 context,const String& uuid, String& text, uint32 cursor);
+ virtual void socket_update_surrounding_text (int client, uint32 context, const String& uuid, String& text, uint32 cursor);
/**
* @brief socket_remoteinput_focus_in.
*
* @return none.
*/
- virtual void commit_string (int client, uint32 context,const WideString& wstr);
+ virtual void commit_string (int client, uint32 context, const WideString& wstr);
/**
* @brief show_preedit_string.
*
* @return none.
*/
- virtual void remote_commit_string (int client, uint32 context,const WideString& wstr);
+ virtual void remote_commit_string (int client, uint32 context, const WideString& wstr);
/**
* @brief remote_delete_surrounding_text.
*
* @return true if the PanelAgent is initialized correctly and ready to run.
*/
- bool initialize (InfoManager* info_manager,const ConfigPointer& config ,const String& display, bool resident = false);
+ bool initialize (InfoManager* info_manager, const ConfigPointer& config, const String& display, bool resident = false);
/**
* @brief Check if this PanelAgent is initialized correctly and ready to run.
void helper_all_update_spot_location (int client_id, uint32 context_id, String uuid, int x, int y);
void helper_all_update_cursor_position (int client_id, uint32 context_id, String uuid, int cursor_pos);
void helper_all_update_screen (int client_id, uint32 context_id, String uuid, int screen);
- void commit_string (int target_client, uint32 target_context,const WideString& wstr);
+ void commit_string (int target_client, uint32 target_context, const WideString& wstr);
void show_preedit_string (int target_client, uint32 target_context);
void hide_preedit_string (int target_client, uint32 target_context);
void update_preedit_string (int target_client, uint32 target_context, WideString preedit, WideString commit, AttributeList& attrs, uint32 caret);
void remote_update_preedit_string (int target_client, uint32 target_context, const WideString str, const WideString commit,const AttributeList &attrs, uint32 caret);
void remote_send_key_event (int target_client, uint32 target_context, const KeyEvent &key);
void remote_forward_key_event (int target_client, uint32 target_context, const KeyEvent &key);
- void remote_commit_string (int target_client, uint32 target_context,const WideString& wstr);
+ void remote_commit_string (int target_client, uint32 target_context, const WideString& wstr);
void remote_delete_surrounding_text (int client, uint32 context_id, uint32 offset, uint32 len);
void set_prediction_allow (int id, uint32 context_id, String uuid, int mode);
};
if (String ("-l") == argv [i] ||
String ("--list") == argv [i]) {
-
cout << endl;
cout << "Available FrontEnd module:\n";
for (it = frontend_list.begin (); it != frontend_list.end (); it++)
}
return false;
}
-
};
// Generated from /usr/X11R6/lib/X11/locale/en_US.UTF-8/Compose
*/
class EXAPI DummyConfig : public ConfigBase
{
-
public:
DummyConfig ();
* For backward API compatibility, do not use it in new code.
*/
bool is_scroll_lock_down () const { return (mask & SCIM_KEY_ScrollLockMask) != 0; }
-
};
enum InputPanelStateEvent
bool ret = false;
IMEngineInstanceRepository::iterator it = m_impl->m_instance_repository.begin ();
for (; it != m_impl->m_instance_repository.end (); it++) {
- if(sf_uuid == get_instance_uuid (it->first)) {
+ if (sf_uuid == get_instance_uuid (it->first)) {
si = it->second;
ret = true;
break;
String name = get_instance_uuid (it->first);
IMEngineInstanceRefCount::iterator it_ref = m_impl->m_instance_ref_count.find(it->first);
SCIM_DEBUG_FRONTEND(1) << "\t" << name << "--- id->" << it->first << " ref->"
- << (it_ref==m_impl->m_instance_ref_count.end ()?0:it_ref->second) << "\n";
+ << (it_ref == m_impl->m_instance_ref_count.end ()? 0 : it_ref->second) << "\n";
}
return;
* @return The corresponding id of the matched Hotkey. If no Hotkey was matched, return -1.
*/
int get_match_result (void) const;
-
};
typedef enum {
std::vector<String> debug_mask_list;
scim_split_string_list (debug_mask_list, argv [i], ',');
DebugOutput::disable_debug (SCIM_DEBUG_AllMask);
- for (size_t j=0; j<debug_mask_list.size (); j++)
+ for (size_t j = 0; j < debug_mask_list.size (); j++)
DebugOutput::enable_debug_by_name (debug_mask_list [j]);
}
continue;
bool unload();
bool valid () const;
- Evas_Object * create_ui (Evas_Object *,Evas_Object *) const;
+ Evas_Object * create_ui (Evas_Object *, Evas_Object *) const;
String get_category () const;
String get_name () const;
} else if ((varlist [0] == "tcp" || varlist [0] == "inet") &&
varlist.size () == 3) {
-
struct sockaddr_in *in = new struct sockaddr_in;
in->sin_addr = __gethostname (varlist [1].c_str ());
if (!m_impl->running)
return true;
- for (i = 0; i<m_impl->max_fd + 1; i++) {
+ for (i = 0; i < m_impl->max_fd + 1; i++) {
if (FD_ISSET (i, &read_fds)) {
//New connection
}
if (FD_ISSET (i, &exception_fds)) {
-
//The server got an exception, return.
if (i == Socket::get_id ()) {
-
SCIM_DEBUG_SOCKET (3) << " SocketServer: Server got an exception, exiting...\n";
shutdown ();
//emit the signal.
m_impl->accept_signal.emit (this, client_socket);
}
- }else {
+ } else {
SCIM_DEBUG_SOCKET (3) << " SocketServer: Accept client reading...\n";
Socket client_socket (fd);
m_impl->receive_signal.emit (this, client_socket);
{
//The server got an exception, return.
if (fd == Socket::get_id ()) {
-
SCIM_DEBUG_SOCKET (3) << " SocketServer: Server got an exception, exiting...\n";
shutdown ();
for (int i = 0; ((unsigned int)i) < m_impl->ext_fds.size (); i++)
FD_CLR (m_impl->ext_fds [i], &m_impl->active_fds);
- for (int i = 0; i<m_impl->max_fd + 1; i++) {
+ for (int i = 0; i < m_impl->max_fd + 1; i++) {
//Close all client
if (FD_ISSET (i, &(m_impl->active_fds)) && i != Socket::get_id ()) {
SCIM_DEBUG_SOCKET (3) << " SocketServer: Closing client: "
{
int id = socket.get_id ();
if (m_impl->created && m_impl->running && id > 0 && FD_ISSET (id, &(m_impl->active_fds))) {
-
SCIM_DEBUG_SOCKET (2) << " SocketServer: Closing the connection: " << id << "\n";
m_impl->num_clients --;
String
SocketServer::get_error_message () const
{
-
- if (m_impl->err){
+ if (m_impl->err) {
char buf_err[256];
return String (strerror_r (m_impl->err, buf_err, sizeof (buf_err)));
}
trans.read_from_socket (socket, timeout) &&
trans.get_command (cmd) && cmd == SCIM_TRANS_CMD_REPLY &&
trans.get_command (cmd) && cmd == SCIM_TRANS_CMD_OK) {
-
// Client is ok, return the client type.
return (client_type == "ConnectionTester") ? String ("") : client_type;
} else {