|
Sen API
Sen Libraries
|
#include <source_info.h>
Public Member Functions | |
| SessionInfoProvider (std::string name, std::shared_ptr< impl::Session > session) | |
| ~SessionInfoProvider () override | |
| const std::string & | getName () const noexcept |
| The name of the session. | |
| std::vector< std::string > | getDetectedSources () const |
| Name of the buses discovered so far. | |
| void | onSourceDetected (const std::function< void(const std::string &)> &callback) |
| Sets a callback that will be invoked when sources are detected. The first time it will be called for each of the already-detected sources. Replaces any previously-set callback. | |
| void | onSourceUndetected (const std::function< void(const std::string &)> &callback) |
| Sets a callback that will be invoked when sources are undetected. Replaces any previously-set callback. | |
Protected Member Functions | |
| void | addSource (const std::string &name) |
| void | removeSource (const std::string &name) |
| virtual void | drainInputs () |
| void | lock () |
| void | unlock () |
Friends | |
| class | impl::Session |
| sen::kernel::SessionInfoProvider::SessionInfoProvider | ( | std::string | name, |
| std::shared_ptr< impl::Session > | session ) |
|
override |
|
nodiscardnoexceptinherited |
The name of the session.
|
nodiscardinherited |
Name of the buses discovered so far.
|
inherited |
Sets a callback that will be invoked when sources are detected. The first time it will be called for each of the already-detected sources. Replaces any previously-set callback.
|
inherited |
Sets a callback that will be invoked when sources are undetected. Replaces any previously-set callback.
|
protectedinherited |
|
protectedinherited |
|
protectedvirtualinherited |
Reimplemented in sen::kernel::SessionsDiscoverer.
|
protectedinherited |
|
protectedinherited |
|
friend |