Base type of Property to allow for storage in e.g. More...
#include <property.h>
Public Member Functions | |
std::string | name () const |
Get the name of this propery. More... | |
Variant | variant_value () const |
Get the value of this property as a Variant. More... | |
PropertyUpdateType | update_type () const |
PropertyAccess | access_type () const |
void | set_value (Variant value) |
Set the value of this property. More... | |
virtual std::string | introspect (int spaces) |
Protected Member Functions | |
PropertyBase (std::string name, PropertyAccess access, PropertyUpdateType update) | |
~PropertyBase () | |
Private Member Functions | |
void | setInterface (Interface *) |
DBUS_CXX_PROPAGATE_CONST (std::unique_ptr< priv_data >) m_priv | |
Friends | |
class | Interface |
Base type of Property to allow for storage in e.g.
a vector.
|
protected |
|
protected |
DBus::PropertyAccess PropertyBase::access_type | ( | ) | const |
Referenced by DBus::Property< T_type >::introspect().
|
private |
|
inlinevirtual |
Reimplemented in DBus::Property< T_type >.
std::string PropertyBase::name | ( | ) | const |
Get the name of this propery.
Referenced by DBus::Property< T_type >::create(), DBus::Property< T_type >::introspect(), and DBus::Interface::property_updated().
void PropertyBase::set_value | ( | DBus::Variant | value | ) |
Set the value of this property.
When used on a remote property(a proxy), this will attempt to set the value on the remote object. If the property is READONLY, this acts as a No-op.
When used on a local property(adapter), this will emit the PropertyChanged DBus signal in order to notify clients that the property has updated. Note that the exact value of the PropertyUpdateType will determine what is emitted(invalidated, new value, or invalidation)
value | The new value to set |
Referenced by DBus::Property< T_type >::set_value().
|
private |
DBus::PropertyUpdateType PropertyBase::update_type | ( | ) | const |
Referenced by DBus::Property< T_type >::introspect().
DBus::Variant PropertyBase::variant_value | ( | ) | const |
Get the value of this property as a Variant.
Referenced by DBus::Interface::property_updated(), and DBus::Property< T_type >::value().
|
friend |