Inheritance diagram for Device::DeviceInterface:
Dataflow::AudioDevice Device::OwningDeviceInterface Gfx::GfxInputDevice Gfx::GfxOutputDevice Protocols::LocalDevice Protocols::ArtnetDevice Protocols::CoAPDevice Protocols::HTTPDevice Protocols::JoystickDevice Protocols::LibmapperClientDevice 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::Kinect2::InputDevice Gfx::Sh4lt::InputDevice Gfx::Shmdata::InputDevice Gfx::Spout::InputDevice Gfx::LibavOutputDevice 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)
 
void addToListening (const std::vector< State::Address > &)
 
std::vector< State::Addresslistening () const
 
virtual void addAddress (const Device::FullAddressSettings &)
 
virtual void updateAddress (const State::Address &currentAddr, const Device::FullAddressSettings &newAddr)
 
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
 

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
 

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