summaryrefslogtreecommitdiff
path: root/inputdev.h
diff options
context:
space:
mode:
Diffstat (limited to 'inputdev.h')
-rw-r--r--inputdev.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/inputdev.h b/inputdev.h
index a11ab6d..72692f2 100644
--- a/inputdev.h
+++ b/inputdev.h
@@ -20,10 +20,16 @@
#include <vdr/remote.h>
#include <vdr/thread.h>
-class cPlugin;
+class cEpollHandler {
+public:
+ virtual void handle_hup() = 0;
+ virtual void handle_pollin() = 0;
+};
+class cPlugin;
class cInputDevice;
-class cInputDeviceController : protected cRemote, protected cThread
+class cInputDeviceController : protected cRemote, protected cThread,
+ protected cEpollHandler
{
private:
cPlugin &plugin_;
@@ -40,7 +46,6 @@ private:
bool open_generic(int fd_udev);
void cleanup_devices(void);
- void handle_uevent(void);
bool coldplug_devices(char const *);
void dump_active_devices();
@@ -49,6 +54,9 @@ private:
protected:
virtual void Action(void);
+ virtual void handle_hup();
+ virtual void handle_pollin();
+
public:
explicit cInputDeviceController(cPlugin &p);
virtual ~cInputDeviceController();