Loading...
Searching...
No Matches
Inheritance diagram for Device::DeviceInterface:
Dataflow::AudioDevice Device::OwningDeviceInterface Gfx::GfxInputDevice Gfx::GfxOutputDevice Protocols::LocalDevice Protocols::ArtnetDevice Protocols::BitfocusDevice Protocols::CoAPDevice Protocols::HTTPDevice Protocols::JoystickDevice Protocols::LibmapperClientDevice Protocols::MCUDevice Protocols::MIDIDevice Protocols::MQTTDevice Protocols::MinuitDevice Protocols::OSCDevice Protocols::OSCQueryDevice Protocols::PhidgetDevice Protocols::SerialDevice Protocols::WSDevice Protocols::WiimoteDevice oscr::DeviceImplementation< Node_T > Gfx::CameraDevice Gfx::GPhoto2::InputDevice Gfx::GStreamer::InputDevice Gfx::Kinect2::InputDevice Gfx::PipeWire::PipeWireDevice Gfx::Sh4lt::InputDevice Gfx::Shmdata::InputDevice Gfx::Spout::InputDevice Gfx::WindowCapture::WindowCaptureDevice Gfx::GStreamer::OutputDevice Gfx::LibavDevice Gfx::PipeWire::PipewireOutputDevice Gfx::Sh4ltOutputDevice Gfx::ShmdataOutputDevice Gfx::SpoutDevice Gfx::SyphonDevice Gfx::WindowDevice

Public Member Functions

 DeviceInterface (Device::DeviceSettings s)
 
const Device::DeviceSettingssettings () 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::Addresslistening () const
 The addresses actually being listened to right now.
 
std::vector< State::AddresslisteningRequests () 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 &currentAddr, 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
 

Friends

constexpr auto w_state (w_internal::Index< w_internal::stateCount< __COUNTER__, w_internal::MethodStateTag, W_ThisType ** > >, w_internal::MethodStateTag, W_ThisType **) -> decltype((w_internal::makeMetaMethodInfo((&W_ThisType::connected), w_internal::viewLiteral("connected"), std::integral_constant< decltype((&W_ThisType::connected)), &W_ThisType::connected >(), w_internal::viewParsedLiterals< w_internal::countParsedLiterals("" "")>("" ""), w_internal::W_EmptyFlag)))
 

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: