Go to the documentation of this file.
25 #ifndef __DBUSXX_INTERFACE_H
26 #define __DBUSXX_INTERFACE_H
100 virtual bool _invoke_method_noreply(
CallMessage &call) = 0;
113 inline const std::string &name()
const;
131 typedef std::map< std::string, Slot<Message, const CallMessage &> >
MethodTable;
143 Variant *get_property(
const std::string &name);
145 void set_property(
const std::string &name,
Variant &value);
161 typedef std::map< std::string, Slot<void, const SignalMessage &> >
SignalTable;
171 bool invoke_method_noreply(
const CallMessage &call);
180 # define register_method(interface, method, callback) \
181 InterfaceAdaptor::_methods[ #method ] = \
182 new ::DBus::Callback< interface, ::DBus::Message, const ::DBus::CallMessage &>(this, & interface :: callback);
184 # define bind_property(variable, type, can_read, can_write) \
185 InterfaceAdaptor::_properties[ #variable ].read = can_read; \
186 InterfaceAdaptor::_properties[ #variable ].write = can_write; \
187 InterfaceAdaptor::_properties[ #variable ].sig = type; \
188 variable.bind(InterfaceAdaptor::_properties[ #variable ]);
190 # define connect_signal(interface, signal, callback) \
191 InterfaceProxy::_signals[ #signal ] = \
192 new ::DBus::Callback< interface, void, const ::DBus::SignalMessage &>(this, & interface :: callback);
196 #endif//__DBUSXX_INTERFACE_H
std::map< std::string, Slot< void, const SignalMessage & > > SignalTable
const std::string & name() const
std::map< std::string, Slot< Message, const CallMessage & > > MethodTable
std::map< std::string, PropertyData > PropertyTable
PropertyTable _properties
std::map< std::string, InterfaceProxy * > InterfaceProxyTable
std::map< std::string, InterfaceAdaptor * > InterfaceAdaptorTable
InterfaceAdaptorTable _interfaces
InterfaceProxyTable _interfaces
virtual IntrospectedInterface * introspect() const