00001 using System;
00002 using System.Collections.Generic;
00003
00007 namespace Foodolini.Activities.FoodRegistration.Devices
00008 {
00013 public interface ICaptureDeviceMonitor : IDisposable
00014 {
00018 ICollection<IDeviceInfo> Devices{get;}
00019
00023 event EventHandler<DeviceEventArgs> DeviceAdded;
00024
00028 event EventHandler<DeviceEventArgs> DeviceRemoved;
00029
00038 bool SupportsAutoRefresh{get;}
00039 }
00040
00044 public interface IDeviceInfo{
00045
00046
00047
00051 string Name{get;}
00052
00056 string DevicePath{get;}
00057 }
00058
00062 public sealed class DeviceEventArgs : EventArgs, IDeviceInfo{
00067 public string Name{get; private set;}
00068
00072 public string DevicePath{get; private set;}
00073
00077 internal DeviceEventArgs(string name, string Device){
00078 this.Name = name;
00079 this.DevicePath = Device;
00080 }
00081 }
00082 }