forked from flensrocker/vdr-plugin-dbus2vdr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
timer.h
37 lines (26 loc) · 718 Bytes
/
timer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef __DBUS2VDR_TIMER_H
#define __DBUS2VDR_TIMER_H
#include "message.h"
class cDBusMessageTimer : public cDBusMessage
{
friend class cDBusDispatcherTimer;
public:
enum eAction { dmtNext };
virtual ~cDBusMessageTimer(void);
protected:
virtual void Process(void);
private:
cDBusMessageTimer(eAction action, DBusConnection* conn, DBusMessage* msg);
void Next(void);
eAction _action;
};
class cDBusDispatcherTimer : public cDBusMessageDispatcher
{
public:
cDBusDispatcherTimer(void);
virtual ~cDBusDispatcherTimer(void);
protected:
virtual cDBusMessage *CreateMessage(DBusConnection* conn, DBusMessage* msg);
virtual bool OnIntrospect(DBusMessage *msg, cString &Data);
};
#endif