Share via


IEventSource

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This pure virtual class contains methods that device services use to manage references to IEventSink interfaces that the device uses to send state variable change notifications.

Syntax

class IEventSource

Methods

The following table shows the methods in this class.

Method Description

IEventSource::Advise

Called to provide an IEventSink reference that the service calls to notify subscribers of state variable changes.

IEventSource::Unadvise

Called to indicate that the provided IEventSink pointer should no longer be notified of state variable changes.

Remarks

Control points call the methods in this class to register or unregister for state variable change notifications.

Devices implement these methods to store subscriber information which they then use to send state variable change notifications to control points.

The implementation of the methods in this interface provided by the UPnP AV Framework uses UPnP event subscriptions and UPnP event notifications to connect control points and device services.

All of the UPnP AV Framework service classes — IAVTransport, IConnectionManager, IContentDirectory, and IRenderingControl — implement IEventSource and therefore accept IEventSink references to which they provide state variable notifications.

Requirements

Header av_upnp.h
Library Av_upnp.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

UPnP AV Interface and Implementation Classes
IAVTransport
IConnectionManager
IContentDirectory
IEventSink
IRenderingControl

Concepts

Eventing in the UPnP AV Framework