AV module

WindowsDeviceWatcher

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

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

class WindowsDeviceWatcher

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

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
~WindowsDeviceWatcher noexcept override
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

ParameterTypeDescription
managerDeviceManager *The DeviceManager whose DevicesChanged signal will be emitted on changes.

~WindowsDeviceWatcher

noexcept override

~WindowsDeviceWatcher() noexcept override

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


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

Type: DeviceManager *

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