NVDA Helper
In-process and lite high-speed utilities for NVDA
NotificationClient Class Reference

Listens for default device changes and device state changes. More...

Inheritance diagram for NotificationClient:

Public Member Functions

ULONG STDMETHODCALLTYPE AddRef () override
 
ULONG STDMETHODCALLTYPE Release () override
 
STDMETHODIMP QueryInterface (REFIID riid, void **ppvObject) final
 
STDMETHODIMP OnDefaultDeviceChanged (EDataFlow flow, ERole role, LPCWSTR defaultDeviceId) final
 
STDMETHODIMP OnDeviceAdded (LPCWSTR deviceId) final
 
STDMETHODIMP OnDeviceRemoved (LPCWSTR deviceId) final
 
STDMETHODIMP OnDeviceStateChanged (LPCWSTR deviceId, DWORD newState) final
 
STDMETHODIMP OnPropertyValueChanged (LPCWSTR deviceId, const PROPERTYKEY key) final
 
unsigned int getDefaultDeviceChangeCount ()
 A counter which increases every time the default device changes.
 
unsigned int getDeviceStateChangeCount ()
 A counter which increases every time a device state changes.
 

Detailed Description

Listens for default device changes and device state changes.

These are communicated to WasapiPlayer via the getDefaultDeviceChangeCount and getDeviceStateChangeCount methods.

Member Function Documentation

◆ AddRef()

ULONG STDMETHODCALLTYPE NotificationClient::AddRef ( )
inlineoverride

Referenced by QueryInterface().

◆ Release()

ULONG STDMETHODCALLTYPE NotificationClient::Release ( )
inlineoverride

◆ QueryInterface()

STDMETHODIMP NotificationClient::QueryInterface ( REFIID riid,
void ** ppvObject )
inlinefinal

◆ OnDefaultDeviceChanged()

STDMETHODIMP NotificationClient::OnDefaultDeviceChanged ( EDataFlow flow,
ERole role,
LPCWSTR defaultDeviceId )
inlinefinal

◆ OnDeviceAdded()

STDMETHODIMP NotificationClient::OnDeviceAdded ( LPCWSTR deviceId)
inlinefinal

◆ OnDeviceRemoved()

STDMETHODIMP NotificationClient::OnDeviceRemoved ( LPCWSTR deviceId)
inlinefinal

◆ OnDeviceStateChanged()

STDMETHODIMP NotificationClient::OnDeviceStateChanged ( LPCWSTR deviceId,
DWORD newState )
inlinefinal

◆ OnPropertyValueChanged()

STDMETHODIMP NotificationClient::OnPropertyValueChanged ( LPCWSTR deviceId,
const PROPERTYKEY key )
inlinefinal

◆ getDefaultDeviceChangeCount()

unsigned int NotificationClient::getDefaultDeviceChangeCount ( )
inline

A counter which increases every time the default device changes.

This is used by WasapiPlayer instances to detect such changes while playing.

◆ getDeviceStateChangeCount()

unsigned int NotificationClient::getDeviceStateChangeCount ( )
inline

A counter which increases every time a device state changes.

This is used by WasapiPlayer instances to detect such changes while playing.


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