11 #include <sigc++/sigc++.h>
14 #ifndef DBUSCXX_PROPERTYPROXY_H
15 #define DBUSCXX_PROPERTYPROXY_H
35 std::string
name()
const;
92 template <
typename T_type>
An InterfaceProxy represents a remote Interface in another application on the DBus.
Definition: interfaceproxy.h:43
Base type of PropertyProxy to allow for storage in e.g.
Definition: propertyproxy.h:23
void set_interface(InterfaceProxy *proxy)
Definition: propertyproxy.cpp:96
PropertyProxyBase(std::string name, PropertyUpdateType update)
Definition: propertyproxy.cpp:33
PropertyUpdateType update_type() const
Definition: propertyproxy.cpp:66
~PropertyProxyBase()
Definition: propertyproxy.cpp:38
DBUS_CXX_PROPAGATE_CONST(std::unique_ptr< priv_data >) m_priv
void set_value(Variant value)
Set the value of this property.
Definition: propertyproxy.cpp:74
Variant variant_value()
Get the value of this property as a Variant.
Definition: propertyproxy.cpp:44
InterfaceProxy * interface_name() const
Definition: propertyproxy.cpp:100
void invalidate()
Definition: propertyproxy.cpp:111
sigc::signal< void(Variant)> signal_generic_property_changed()
This signal is emitted whenever the property changes.
Definition: propertyproxy.cpp:70
void updated_value(Variant value)
Definition: propertyproxy.cpp:104
std::string name() const
Get the name of this propery.
Definition: propertyproxy.cpp:40
Represents a remote DBus property.
Definition: propertyproxy.h:93
void set_value(T_type t)
Definition: propertyproxy.h:109
T_type value()
Definition: propertyproxy.h:113
sigc::signal< void(T_type)> signal_property_changed()
Definition: propertyproxy.h:105
void parentUpdated(Variant v)
Definition: propertyproxy.h:120
static std::shared_ptr< PropertyProxy< T_type > > create(std::string name, PropertyUpdateType update)
Definition: propertyproxy.h:101
PropertyProxy(std::string name, PropertyUpdateType update)
Definition: propertyproxy.h:95
sigc::signal< void(T_type)> m_signal_changed
Definition: propertyproxy.h:126
A Variant is a type-safe union for DBus operations.
Definition: variant.h:42
Global DBus namespace, where everything happens.
Definition: callmessage.cpp:18
PropertyUpdateType
Definition: enums.h:23