Redone properties example
This commit is contained in:
parent
fcf526f7f2
commit
96eb77ce7e
14 changed files with 102 additions and 206 deletions
21
examples/properties/propsgs-server.h
Normal file
21
examples/properties/propsgs-server.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef __DEMO_PROPS_SERVER_H
|
||||
#define __DEMO_PROPS_SERVER_H
|
||||
|
||||
#include <dbus-c++/dbus.h>
|
||||
#include "propsgs-glue-adaptor.h"
|
||||
|
||||
class PropsServer
|
||||
: public org::freedesktop::DBus::PropsGSDemo_adaptor,
|
||||
public DBus::IntrospectableAdaptor,
|
||||
public DBus::PropertiesAdaptor,
|
||||
public DBus::ObjectAdaptor
|
||||
{
|
||||
public:
|
||||
|
||||
PropsServer(DBus::Connection &connection);
|
||||
|
||||
void on_set_property
|
||||
(DBus::InterfaceAdaptor &interface, const std::string &property, const DBus::Variant &value);
|
||||
};
|
||||
|
||||
#endif//__DEMO_PROPS_SERVER_H
|
Loading…
Add table
Add a link
Reference in a new issue