2 #include <ossia/detail/callback_container.hpp>
3 #include <ossia/network/base/value_callback.hpp>
5 #include <QQmlProperty>
6 #include <QQmlPropertyValueSource>
8 #include <nano_observer.hpp>
22 ,
public QQmlPropertyValueSource
23 ,
public Nano::Observer
26 W_INTERFACE(QQmlPropertyValueSource)
35 void setTarget(
const QQmlProperty& prop)
override;
37 void clearNetworkCallbacks();
38 void clearQMLCallbacks();
39 void on_addressChanged(
const QString& addr);
40 void on_newNetworkValue(
const ossia::value& v);
42 W_SLOT(on_newUIValue);
44 void on_parameterRemoving(
const ossia::net::parameter_base& v);
46 INLINE_PROPERTY_CREF(QString, address, =
"", address, setAddress, addressChanged)
50 bool, sendUpdates, =
true, sendUpdates, setSendUpdates, sendUpdatesChanged)
54 bool, receiveUpdates, =
true, receiveUpdates, setReceiveUpdates,
55 receiveUpdatesChanged)
60 QQmlProperty m_targetProperty;
63 ossia::net::device_base* m_device{};
64 ossia::net::parameter_base* m_param{};
65 std::optional<ossia::callback_container<ossia::value_callback>::iterator> m_callback;
66 bool m_writingValue{};
Definition: DeviceContext.hpp:19
Definition: AddressItem.hpp:24