Home
AV module

WindowsDeviceWatcher

Monitors device add/remove events via IMMNotificationClient (audio) and RegisterDeviceNotification (video).

WindowsDeviceWatcher

#include <icy/av/win32/mediafoundation.h>
class WindowsDeviceWatcher

Defined in src/av/include/icy/av/win32/mediafoundation.h:61

Inherits: DeviceWatcher

Monitors device add/remove events via IMMNotificationClient (audio) and RegisterDeviceNotification (video).

List of all members

NameKindOwner
WindowsDeviceWatcherfunctionDeclared here
~WindowsDeviceWatcherfunctionDeclared here
startfunctionDeclared here
stopfunctionDeclared here
_implvariableDeclared here
_managervariableDeclared here
DeviceWatcherfunctionInherited from DeviceWatcher
~DeviceWatcherfunctionInherited from DeviceWatcher
startfunctionInherited from DeviceWatcher
stopfunctionInherited from DeviceWatcher

Inherited from DeviceWatcher

KindNameDescription
functionDeviceWatcher inline explicit
function~DeviceWatcher virtual noexceptDefaulted destructor.
functionstart virtual inline
functionstop virtual inline

Public Methods

ReturnNameDescription
WindowsDeviceWatcher explicit
boolstart virtual overrideBegin monitoring via IMMNotificationClient and RegisterDeviceNotification.
voidstop virtual overrideStop monitoring and unregister all device notifications.

WindowsDeviceWatcher

explicit

explicit WindowsDeviceWatcher(DeviceManager * manager)

Defined in src/av/include/icy/av/win32/mediafoundation.h:65

Parameters

  • manager The DeviceManager whose DevicesChanged signal will be emitted on changes.

start

virtual override

virtual bool start() override

Defined 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() override

Defined in src/av/include/icy/av/win32/mediafoundation.h:73

Stop monitoring and unregister all device notifications.

Reimplements

Private Attributes

ReturnNameDescription
std::unique_ptr< Impl >_impl
DeviceManager *_manager

_impl

std::unique_ptr< Impl > _impl

Defined in src/av/include/icy/av/win32/mediafoundation.h:78


_manager

DeviceManager * _manager

Defined in src/av/include/icy/av/win32/mediafoundation.h:79