Represents a local DBus property. More...
#include <property.h>
Public Member Functions | |
void | set_value (T_type t) |
T_type | value () const |
virtual std::string | introspect (int space_depth) |
Public Member Functions inherited from DBus::PropertyBase | |
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... | |
Static Public Member Functions | |
static std::shared_ptr< Property< T_type > > | create (std::string name, PropertyAccess access, PropertyUpdateType update) |
Private Member Functions | |
Property (std::string name, PropertyAccess access, PropertyUpdateType update) | |
Additional Inherited Members | |
Protected Member Functions inherited from DBus::PropertyBase | |
PropertyBase (std::string name, PropertyAccess access, PropertyUpdateType update) | |
~PropertyBase () | |
Represents a local DBus property.
Properties can be Read, Write, or Readonly. When they change, a signal may be emitted on the bus to listeners.
|
inlineprivate |
|
inlinestatic |
References DBus::PropertyBase::name().
Referenced by DBus::Interface::create_property().
|
inlinevirtual |
Reimplemented from DBus::PropertyBase.
References DBus::PropertyBase::access_type(), DBus::Const, DBUS_CXX_PROPERTY_EMITS_CHANGE_SIGNAL_ANNOTATION, DBus::DoesNotUpdate, DBus::Invalidates, DBus::PropertyBase::name(), DBus::ReadOnly, DBus::ReadWrite, DBus::PropertyBase::update_type(), and DBus::WriteOnly.
|
inline |
References DBus::PropertyBase::set_value().
|
inline |
References DBus::PropertyBase::variant_value().