Inherits Foodolini::Activities::FoodRegistration::Devices::ICaptureDeviceMonitor.
Public Member Functions | |
void | Dispose () |
Properties | |
bool | SupportsAutoRefresh [get] |
static WindowsCaptureDeviceMonitor | Instance [get] |
System.Collections.Generic.ICollection < IDeviceInfo > | Devices [get] |
Events | |
EventHandler< DeviceEventArgs > | DeviceAdded |
Occurs whenever a device added to the system. | |
EventHandler< DeviceEventArgs > | DeviceRemoved |
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. |
Definition at line 11 of file WindowsCaptureDeviceMonitor.cs.
Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor.WindowsCaptureDeviceMonitor | ( | ) | [private] |
Definition at line 13 of file WindowsCaptureDeviceMonitor.cs.
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.
driverIndex | A System.Int32 | |
name | A StringBuilder | |
nameLength | A System.UInt32 | |
description | A StringBuilder | |
descLength | A System.UInt32 |
void Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor.Dispose | ( | ) |
Definition at line 96 of file WindowsCaptureDeviceMonitor.cs.
WindowsCaptureDeviceMonitor Foodolini.Activities.FoodRegistration.Devices.WindowsCaptureDeviceMonitor.instance = null [static, private] |
The singleton instance holder.
Definition at line 27 of file WindowsCaptureDeviceMonitor.cs.
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.
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.