Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor Class Reference

Inherits Foodolini::Activities::FoodRegistration::Devices::ICaptureDeviceMonitor.

Collaboration diagram for Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor:
Collaboration graph

List of all members.

Public Member Functions

void Dispose ()

Properties

bool SupportsAutoRefresh [get]
static WindowsCaptureDeviceMonitor Instance [get]
System.Collections.Generic.ICollection
< IDeviceInfo
Devices [get]

Events

EventHandler< DeviceEventArgsDeviceAdded
 Occurs whenever a device added to the system.
EventHandler< DeviceEventArgsDeviceRemoved
 Occurs whenever a device removed from the system.

Private Member Functions

 WindowsCaptureDeviceMonitor ()
static bool capGetDriverDescription (int driverIndex, StringBuilder name, uint nameLength, StringBuilder description, uint descLength)
 Interop call to the old windows API.

Static Private Attributes

static WindowsCaptureDeviceMonitor instance = null
 The singleton instance holder.

Detailed Description

Definition at line 11 of file WindowsCaptureDeviceMonitor.cs.


Constructor & Destructor Documentation

Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor.WindowsCaptureDeviceMonitor (  )  [private]

Definition at line 13 of file WindowsCaptureDeviceMonitor.cs.


Member Function Documentation

static bool Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor.capGetDriverDescription ( int  driverIndex,
StringBuilder  name,
uint  nameLength,
StringBuilder  description,
uint  descLength 
) [private]

Interop call to the old windows API.

Parameters:
driverIndex A System.Int32
name A StringBuilder
nameLength A System.UInt32
description A StringBuilder
descLength A System.UInt32
Returns:
A System.Boolean
void Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor.Dispose (  ) 

Definition at line 96 of file WindowsCaptureDeviceMonitor.cs.


Member Data Documentation

The singleton instance holder.

Definition at line 27 of file WindowsCaptureDeviceMonitor.cs.


Property Documentation

System.Collections.Generic.ICollection<IDeviceInfo> Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor.Devices [get]

List potential video sources on the system

Implements Foodolini.Activities.FoodRegistration.Devices.ICaptureDeviceMonitor.

Definition at line 45 of file WindowsCaptureDeviceMonitor.cs.

WindowsCaptureDeviceMonitor Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor.Instance [static, get]

Definition at line 29 of file WindowsCaptureDeviceMonitor.cs.

bool Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor.SupportsAutoRefresh [get]

Returns true, if DeviceAdded and DeviceRemoved events can be relied upon to provide device status updates

If this is false, the UI should offer a refresh button that synchronizes the UI to the Devices property. Note, that this does not imply that DeviceAdded and DeviceRemoved may not be used. However, merly they may not be relied upon.

Implements Foodolini.Activities.FoodRegistration.Devices.ICaptureDeviceMonitor.

Definition at line 18 of file WindowsCaptureDeviceMonitor.cs.


Event Documentation

EventHandler<DeviceEventArgs> Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor.DeviceAdded

Occurs whenever a device added to the system.

Implements Foodolini.Activities.FoodRegistration.Devices.ICaptureDeviceMonitor.

Definition at line 41 of file WindowsCaptureDeviceMonitor.cs.

EventHandler<DeviceEventArgs> Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor.DeviceRemoved

Occurs whenever a device removed from the system.

Implements Foodolini.Activities.FoodRegistration.Devices.ICaptureDeviceMonitor.

Definition at line 43 of file WindowsCaptureDeviceMonitor.cs.


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

Foodolini 1.0.0 Documentation, generated with DoxyGen.