SCIMBridge
0.4.x
Main Page
Classes
Files
File List
File Members
agent
scim-bridge-agent-socket-client.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 SCIMBRIDGEAGENTSOCKETCLIENT_H_
27
#define SCIMBRIDGEAGENTSOCKETCLIENT_H_
28
29
#include "
scim-bridge.h
"
30
34
typedef
int
scim_bridge_agent_event_client_id_t
;
35
39
typedef
unsigned
int
scim_bridge_agent_event_type_t
;
40
44
static
const
scim_bridge_agent_event_type_t
SCIM_BRIDGE_AGENT_EVENT_NONE
= 0;
45
49
static
const
scim_bridge_agent_event_type_t
SCIM_BRIDGE_AGENT_EVENT_READ
= 1 << 0;
50
54
static
const
scim_bridge_agent_event_type_t
SCIM_BRIDGE_AGENT_EVENT_WRITE
= 1 << 1;
55
59
static
const
scim_bridge_agent_event_type_t
SCIM_BRIDGE_AGENT_EVENT_ERROR
= 1 << 2;
60
64
static
const
scim_bridge_agent_event_type_t
SCIM_BRIDGE_AGENT_EVENT_INTERRUPT
= 1 << 3;
65
69
class
ScimBridgeAgentSocketClient
70
{
71
72
public
:
73
78
virtual
~ScimBridgeAgentSocketClient
() {}
79
86
virtual
int
get_socket_fd
()
const
= 0;
87
95
virtual
scim_bridge_agent_event_type_t
get_trigger_events
()
const
= 0;
96
104
virtual
bool
handle_event
(
scim_bridge_agent_event_type_t
event_type) = 0;
105
106
protected
:
107
111
ScimBridgeAgentSocketClient
() {}
112
113
};
114
#endif
/*SCIMBRIDGEAGENTSOCKETCLIENT_H_*/
Generated by
1.8.2