forked from notpod/Notpod-1.x
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IConnectedDevicesManager.cs
54 lines (45 loc) · 1.75 KB
/
IConnectedDevicesManager.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
using System;
using System.Collections;
using System.Text;
using System.IO;
using Notpod.Configuration12;
namespace Notpod
{
public delegate void DeviceConnectedEventHandler(object sender, CDMEventArgs args);
public delegate void DeviceDisconnectedEventHandler(object sender, string driveName, CDMEventArgs args);
/// <summary>
/// Interface for classes managing connected devices.
/// </summary>
public interface IConnectedDevicesManager
{
/// <summary>
/// Accessor for device configuration.
/// </summary>
DeviceConfiguration DeviceConfig { get; set; }
/// <summary>
/// Event for connected devices.
/// </summary>
event DeviceConnectedEventHandler DeviceConnected;
/// <summary>
/// Event for disconnected devices.
/// </summary>
event DeviceDisconnectedEventHandler DeviceDisconnected;
/// <summary>
/// Synchronize the list of currently connected devices with the
/// list of REMOVABLE drives currently connected to the system.
/// </summary>
/// <param name="drives"></param>
void Synchronize(ArrayList drives);
/// <summary>
/// Get a collection of connected devices.
/// </summary>
/// <returns>A collection containing Device objects representing the
/// connected devices.</returns>
ICollection GetConnectedDevices();
/// <summary>
/// Get the Hashtable containing all connected devices and what drives they are connected at.
/// </summary>
/// <returns>Hashtable containing all connected Devices.</returns>
Hashtable GetConnectedDevicesWithDrives();
}
}