4
* Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
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.
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.
22
* @author Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
23
* @brief This is the header file for ScimBridgeAgentSignalListener.
26
#ifndef SCIMBRIDGEAGENTSIGNALLISTENER_H_
27
#define SCIMBRIDGEAGENTSIGNALLISTENER_H_
29
#include "scim-bridge.h"
30
#include "scim-bridge-agent-socket-client.h"
32
class ScimBridgeAgentProtected;
35
* The class of signal listeners, which listen to the signals and quit the agent properly.
37
class ScimBridgeAgentSignalListener: public ScimBridgeAgentSocketClient
43
* Allocate an signal listener. You cannot allocate more than one signal listener.
45
* @param agent The agent.
46
* @return A new signal listener, or NULL if it failed to initialize it.
48
static ScimBridgeAgentSignalListener *alloc (ScimBridgeAgentProtected *agent);
54
virtual ~ScimBridgeAgentSignalListener () {}
62
ScimBridgeAgentSignalListener () {}
65
#endif /*SCIMBRIDGEAGENTSIGNALLISTENER_H_*/