DBus::Property< T_type > Class Template Reference

Represents a local DBus property. More...

#include <property.h>

Inheritance diagram for DBus::Property< T_type >:

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 ()
 

Detailed Description

template<typename T_type>
class DBus::Property< T_type >

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.

Constructor & Destructor Documentation

◆ Property()

template<typename T_type >
DBus::Property< T_type >::Property ( std::string  name,
PropertyAccess  access,
PropertyUpdateType  update 
)
inlineprivate

Member Function Documentation

◆ create()

template<typename T_type >
static std::shared_ptr<Property<T_type> > DBus::Property< T_type >::create ( std::string  name,
PropertyAccess  access,
PropertyUpdateType  update 
)
inlinestatic

◆ introspect()

◆ set_value()

template<typename T_type >
void DBus::Property< T_type >::set_value ( T_type  t)
inline

◆ value()

template<typename T_type >
T_type DBus::Property< T_type >::value ( ) const
inline

The documentation for this class was generated from the following file: