#include "gadget.hh"
Public Types | |
using | MemberAccessF = std::function< bool(GadgetImpl *, const Value *, Value *)> |
using | MemberClassT = bool(*)(const SharedBase &) |
using | MemberInfosP = const StringS &(*)() |
Public Member Functions | |
GadgetImpl * | _parent () const override |
template<class O , class M > | |
void | _register_parameter (O *, M *, const Param::ExtraVals &) const |
void | _set_parent (GadgetImpl *parent) override |
PropertyS | access_properties () override |
Value | get_data (const String &key) const override |
bool | set_data (const String &key, const Value &v) override |
String | type_nick () const override |
![]() | |
void | emit_event (const String &type, const String &detail, const ValueR fields={}) override |
void | emit_notify (const String &detail) override |
ASE_USE_RESULT Connection | on_event (const String &eventselector, const EventHandler &eventhandler) override |
![]() | |
void | js_trigger (const String &eventselector, JsTrigger callback) |
![]() | |
template<class T > | |
bool | del_custom_data (CustomDataKey< T > *key) |
template<class T > | |
T | get_custom_data (CustomDataKey< T > *key) const |
template<class T > | |
bool | has_custom_data (CustomDataKey< T > *key) const |
template<class T > | |
void | set_custom_data (CustomDataKey< T > *key, T data) |
![]() | |
ProjectImpl * | _project () const |
virtual PropertyP | access_property (String ident) |
Value | get_value (String ident) |
virtual StringS | list_properties () |
bool | set_value (String ident, const Value &v) |
Protected Types | |
enum | : uint64_t { GADGET_DESTROYED , DEVICE_ACTIVE , MASTER_TRACK } |
Protected Member Functions | |
virtual void | create_properties () |
virtual String | fallback_name () const |
uint64_t | gadget_flags () const |
uint64_t | gadget_flags (uint64_t setbits, uint64_t mask=~uint64_t(0)) |
virtual bool | name_ (const std::string *n, std::string *q) override |
void | serialize (WritNode &xs) override |
virtual | ~GadgetImpl () |
![]() | |
virtual | ~ObjectImpl ()=0 |
![]() | |
virtual | ~EmittableImpl () |
![]() | |
virtual | ~VirtualBase () noexcept=0 |
![]() | |
virtual | ~Object ()=0 |
![]() | |
void | custom_data_destroy () |
~CustomDataContainer () | |
![]() | |
Gadget () | |
Static Protected Member Functions | |
static String | canonify_key (const String &input) |
Protected Attributes | |
PropertyImplS | props_ |
Additional Inherited Members | |
![]() | |
Member<&Gadget::name_ > | name |
using MemberAccessF = std::function<bool(GadgetImpl*,const Value*,Value*)> |
using MemberInfosP = const StringS& (*) () |
using MemberClassT = bool (*) (const SharedBase&) |
|
protectedvirtual |
|
protected |
|
protected |
|
overrideprotectedvirtual |
Implements Gadget.
|
overrideprotectedvirtual |
Serialize members and childern.
Implements Serializable.
Reimplemented in NativeDeviceImpl, ProjectImpl, and TrackImpl.
|
protectedvirtual |
|
overridevirtual |
|
overridevirtual |
Retrieve parent container.
Implements Gadget.
|
overridevirtual |
void _register_parameter | ( | O * | obj, |
M * | memb, | ||
const Param::ExtraVals & | ev | ||
) | const |
|
protected |