SCIMBridge  0.4.x
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 
35 
39 typedef unsigned int scim_bridge_agent_event_type_t;
40 
45 
50 
55 
60 
65 
70 {
71 
72  public:
73 
79 
86  virtual int get_socket_fd () const = 0;
87 
96 
104  virtual bool handle_event (scim_bridge_agent_event_type_t event_type) = 0;
105 
106  protected:
107 
112 
113 };
114 #endif /*SCIMBRIDGEAGENTSOCKETCLIENT_H_*/
int scim_bridge_agent_event_client_id_t
Definition: scim-bridge-agent-socket-client.h:34
virtual ~ScimBridgeAgentSocketClient()
Definition: scim-bridge-agent-socket-client.h:78
This header describes about fundamental definitions of scim-bridge.
static const scim_bridge_agent_event_type_t SCIM_BRIDGE_AGENT_EVENT_WRITE
Definition: scim-bridge-agent-socket-client.h:54
static const scim_bridge_agent_event_type_t SCIM_BRIDGE_AGENT_EVENT_ERROR
Definition: scim-bridge-agent-socket-client.h:59
ScimBridgeAgentSocketClient()
Definition: scim-bridge-agent-socket-client.h:111
static const scim_bridge_agent_event_type_t SCIM_BRIDGE_AGENT_EVENT_READ
Definition: scim-bridge-agent-socket-client.h:49
unsigned int scim_bridge_agent_event_type_t
Definition: scim-bridge-agent-socket-client.h:39
static const scim_bridge_agent_event_type_t SCIM_BRIDGE_AGENT_EVENT_INTERRUPT
Definition: scim-bridge-agent-socket-client.h:64
Definition: scim-bridge-agent-socket-client.h:69
virtual scim_bridge_agent_event_type_t get_trigger_events() const =0
static const scim_bridge_agent_event_type_t SCIM_BRIDGE_AGENT_EVENT_NONE
Definition: scim-bridge-agent-socket-client.h:44
virtual bool handle_event(scim_bridge_agent_event_type_t event_type)=0
virtual int get_socket_fd() const =0