AV module
WindowsDeviceWatcher
Monitors device add/remove events via IMMNotificationClient (audio) and RegisterDeviceNotification (video).
#include <icy/av/win32/mediafoundation.h>
class WindowsDeviceWatcherDefined in src/av/include/icy/av/win32/mediafoundation.h:61
- Inherits
DeviceWatcher
List of all members
| Name | Kind | Owner |
|---|---|---|
WindowsDeviceWatcher | function | Declared here |
~WindowsDeviceWatcher | function | Declared here |
start | function | Declared here |
stop | function | Declared here |
_impl | variable | Declared here |
_manager | variable | Declared here |
DeviceWatcher | function | Inherited from DeviceWatcher |
~DeviceWatcher | function | Inherited from DeviceWatcher |
start | function | Inherited from DeviceWatcher |
stop | function | Inherited from DeviceWatcher |
Inherited from DeviceWatcher
| Kind | Name | Description |
|---|---|---|
function | DeviceWatcher inline explicit | |
function | ~DeviceWatcher virtual noexcept | Defaulted destructor. |
function | start virtual inline | |
function | stop virtual inline |
Public Methods
| Return | Name | Description |
|---|---|---|
WindowsDeviceWatcher explicit | ||
~WindowsDeviceWatcher noexcept override | ||
bool | start virtual override | Begin monitoring via IMMNotificationClient and RegisterDeviceNotification. |
void | stop virtual override | Stop monitoring and unregister all device notifications. |
WindowsDeviceWatcher
explicit
explicit WindowsDeviceWatcher(DeviceManager * manager)Defined in src/av/include/icy/av/win32/mediafoundation.h:65
Parameters
| Parameter | Type | Description |
|---|---|---|
manager | DeviceManager * | The DeviceManager whose DevicesChanged signal will be emitted on changes. |
~WindowsDeviceWatcher
noexcept override
~WindowsDeviceWatcher() noexcept overrideDefined in src/av/include/icy/av/win32/mediafoundation.h:66
start
virtual override
virtual bool start() overrideDefined in src/av/include/icy/av/win32/mediafoundation.h:70
Begin monitoring via IMMNotificationClient and RegisterDeviceNotification.
Returns
True if monitoring was successfully started.
Reimplements
stop
virtual override
virtual void stop() overrideDefined in src/av/include/icy/av/win32/mediafoundation.h:73
Stop monitoring and unregister all device notifications.
Reimplements
Private Attributes
| Return | Name | Description |
|---|---|---|
std::unique_ptr< Impl > | _impl | |
DeviceManager * | _manager |
_impl
std::unique_ptr< Impl > _implDefined in src/av/include/icy/av/win32/mediafoundation.h:78
_manager
DeviceManager * _managerType: DeviceManager *
