-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpod_proxy.hpp
62 lines (46 loc) · 1.24 KB
/
pod_proxy.hpp
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* This file was automatically generated by dbusxx-xml2cpp; DO NOT EDIT!
*/
#ifndef __dbusxx__pod_proxy_hpp__PROXY_MARSHAL_H
#define __dbusxx__pod_proxy_hpp__PROXY_MARSHAL_H
#include <dbus-c++/dbus.h>
#include <cassert>
namespace pedal {
class event_proxy
: public ::DBus::InterfaceProxy
{
public:
event_proxy()
: ::DBus::InterfaceProxy("pedal.event")
{
connect_signal(event_proxy, OnPedalEvent, _OnPedalEvent_stub);
}
public:
/* properties exported by this interface */
public:
/* methods exported by this interface,
* this functions will invoke the corresponding methods on the remote objects
*/
void Quit()
{
::DBus::CallMessage call;
call.member("Quit");
::DBus::Message ret = invoke_method (call);
}
public:
/* signal handlers for this interface
*/
virtual void OnPedalEvent(const int32_t& code) = 0;
private:
/* unmarshalers (to unpack the DBus message before calling the actual signal handler)
*/
void _OnPedalEvent_stub(const ::DBus::SignalMessage &sig)
{
::DBus::MessageIter ri = sig.reader();
int32_t code;
ri >> code;
OnPedalEvent(code);
}
};
}
#endif //__dbusxx__pod_proxy_hpp__PROXY_MARSHAL_H