Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This pure virtual class contains methods that device services use to manage references to IEventSinkinterfaces 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 IEventSinkreference that the service calls to notify subscribers of state variable changes.

IEventSource::Unadvise

Called to indicate that the provided IEventSinkpointer 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 IEventSourceand therefore accept IEventSinkreferences 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