SCIMBridge
0.4.x
Main Page
Classes
Files
File List
File Members
agent
scim-bridge-agent-client-listener.h
Go to the documentation of this file.
1
/*
2
* SCIM Bridge
3
*
4
* Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
5
*
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation and
10
* appearing in the file LICENSE.LGPL included in the package of this file.
11
* You can also redistribute it and/or modify it under the terms of
12
* the GNU General Public License as published by the Free Software Foundation and
13
* appearing in the file LICENSE.GPL included in the package of this file.
14
*
15
* This library is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
*/
19
26
#ifndef SCIMBRIDGEAGENTCLIENTLISTENER_H_
27
#define SCIMBRIDGEAGENTCLIENTLISTENER_H_
28
29
#define Uses_SCIM_ATTRIBUTE
30
#define Uses_SCIM_EVENT
31
#include <scim.h>
32
33
#include "
scim-bridge.h
"
34
#include "
scim-bridge-imcontext.h
"
35
36
#include "
scim-bridge-agent-socket-client.h
"
37
38
class
ScimBridgeAgentProtected
;
39
43
class
ScimBridgeAgentClientListener
:
public
ScimBridgeAgentSocketClient
44
{
45
46
public
:
47
55
static
ScimBridgeAgentClientListener
*
alloc
(
int
socket_fd,
ScimBridgeAgentProtected
*agent);
56
60
virtual
~ScimBridgeAgentClientListener
() {}
61
69
virtual
retval_t
imengine_status_changed
(
scim_bridge_imcontext_id_t
imcontext_id,
bool
enabled) = 0;
70
78
virtual
retval_t
set_preedit_shown
(
scim_bridge_imcontext_id_t
imcontext_id,
bool
shown) = 0;
79
87
virtual
retval_t
set_preedit_cursor_position
(
scim_bridge_imcontext_id_t
imcontext_id,
int
cursor_position) = 0;
88
96
virtual
retval_t
set_preedit_string
(
scim_bridge_imcontext_id_t
imcontext_id,
const
scim::WideString &wstring) = 0;
97
105
virtual
retval_t
set_preedit_attributes
(
scim_bridge_imcontext_id_t
imcontext_id,
const
scim::AttributeList &attributes) = 0;
106
113
virtual
retval_t
update_preedit
(
scim_bridge_imcontext_id_t
imcontext_id) = 0;
114
122
virtual
retval_t
commit_string
(
scim_bridge_imcontext_id_t
imcontext_id,
const
scim::WideString &wstring) = 0;
123
130
virtual
retval_t
beep
(
scim_bridge_imcontext_id_t
imcontext_id) = 0;
131
139
virtual
retval_t
forward_key_event
(
scim_bridge_imcontext_id_t
imcontext_id,
const
scim::KeyEvent &key_event) = 0;
140
151
virtual
retval_t
get_surrounding_string
(
scim_bridge_imcontext_id_t
imcontext_id,
int
before_max,
int
after_max, scim::WideString &wstring,
int
&cursor_position) = 0;
152
161
virtual
retval_t
delete_surrounding_string
(
scim_bridge_imcontext_id_t
imcontext_id,
int
offset,
int
length) = 0;
162
171
virtual
retval_t
replace_surrounding_string
(
scim_bridge_imcontext_id_t
imcontext_id,
const
scim::WideString &wstring,
int
cursor_position) = 0;
172
173
protected
:
174
178
ScimBridgeAgentClientListener
() {}
179
180
};
181
#endif
/*SCIMBRIDGEAGENTCLIENTLISTENER_H_*/
Generated by
1.8.2