Loading...
Searching...
No Matches
Public Member Functions |
Static Public Member Functions |
Public Attributes |
Protected Types |
Protected Member Functions |
Protected Attributes |
Friends |
List of all members
Device::DeviceInterface Class Referenceabstract
Inheritance diagram for Device::DeviceInterface:
Public Member Functions | |
| DeviceInterface (Device::DeviceSettings s) | |
| const Device::DeviceSettings & | settings () const noexcept |
| const QString & | name () const noexcept |
| virtual void | addNode (const Device::Node &n) |
| DeviceCapas | capabilities () const noexcept |
| virtual DeviceResources | usedResources () const noexcept |
| virtual void | disconnect () |
| virtual bool | reconnect ()=0 |
| virtual void | recreate (const Device::Node &) |
| virtual bool | connected () const |
| void | updateSettings (const Device::DeviceSettings &) |
| virtual Device::Node | refresh () |
| std::optional< ossia::value > | refresh (const State::Address &) |
| void | request (const Device::Node &) |
| void | setListening (const State::Address &, bool) |
| Starts or stops listening to the value of an address. | |
| void | addToListening (const std::vector< State::Address > &) |
| std::vector< State::Address > | listening () const |
| The addresses actually being listened to right now. | |
| std::vector< State::Address > | listeningRequests () const |
| The addresses listening was requested for, whether or not they exist yet. | |
| void | restoreListening () |
| Re-installs the value callbacks for every requested address that exists. | |
| virtual void | addAddress (const Device::FullAddressSettings &) |
| virtual void | updateAddress (const State::Address ¤tAddr, const Device::FullAddressSettings &newAddr) |
| virtual void | removeNode (const State::Address &) |
| void | sendMessage (const State::Address &addr, const ossia::value &v) |
| Device::Node | getNode (const State::Address &) const |
| Device::Node | getNodeWithoutChildren (const State::Address &) const |
| bool | isLogging () const |
| void | setLogging (DeviceLogging) |
| virtual ossia::net::device_base * | getDevice () const =0 |
| virtual bool | isLearning () const |
| virtual void | setLearning (bool) |
| virtual QMimeData * | mimeData () const |
| virtual void | setupContextMenu (QMenu &) const |
| void | nodeCreated (const ossia::net::node_base &) |
| void | nodeRemoving (const ossia::net::node_base &) |
| void | nodeRenamed (const ossia::net::node_base &, std::string) |
| void | addressCreated (const ossia::net::parameter_base &) |
| void | addressUpdated (const ossia::net::node_base &, ossia::string_view key) |
| void | addressRemoved (const ossia::net::parameter_base &addr) |
| void | pathAdded (const State::Address &arg_1) |
| void | pathUpdated (const State::Address &arg_1, const Device::AddressSettings &arg_2) |
| void | pathRemoved (const State::Address &arg_1) |
| void | namespaceUpdated () |
| void | deviceChanged (ossia::net::device_base *old_dev, ossia::net::device_base *new_dev) |
| void | logInbound (const QString &arg_1) const |
| void | logOutbound (const QString &arg_1) const |
| void | connectionChanged (bool arg_1) const |
Static Public Member Functions | |
| static void | w_GetAccessSpecifierHelper (std::integral_constant< decltype((&W_ThisType::connected)), &W_ThisType::connected >) |
Public Attributes | |
| Nano::Signal< void(const State::Address &, const ossia::value &)> | valueUpdated |
Protected Types | |
| using | callback_pair = std::pair< ossia::net::parameter_base *, ossia::callback_container< ossia::value_callback >::iterator > |
Protected Member Functions | |
| void | removeListening_impl (ossia::net::node_base &node, State::Address addr) |
| void | removeListening_impl (ossia::net::node_base &node, State::Address addr, std::vector< State::Address > &) |
| void | renameListening_impl (const State::Address &parent, const QString &newName) |
| void | setLogging_impl (DeviceLogging) const |
| void | enableCallbacks () |
| void | disableCallbacks () |
| Device::Node | simple_refresh () |
Protected Attributes | |
| Device::DeviceSettings | m_settings |
| DeviceCapas | m_capas |
| score::hash_map< State::Address, callback_pair > | m_callbacks |
Member Function Documentation
◆ setListening()
| void Device::DeviceInterface::setListening | ( | const State::Address & | addr, |
| bool | b | ||
| ) |
Starts or stops listening to the value of an address.
The request is remembered independently of the device's connection: the callbacks are re-installed by restoreListening() whenever the device is rebuilt (reconnect, recreate, refresh...), so that an address the explorer shows keeps being listened to across those.
The documentation for this class was generated from the following files:
- DeviceInterface.hpp
- DeviceInterface.cpp