mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Added some device static values to variables.
This commit is contained in:
@@ -1,3 +1,10 @@
|
|||||||
|
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
* Enums.cs:
|
||||||
|
* Device/Variables.cs:
|
||||||
|
* Device/Constructor.cs:
|
||||||
|
Added some device static values to variables.
|
||||||
|
|
||||||
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
2015-10-19 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
* Enums.cs:
|
* Enums.cs:
|
||||||
|
|||||||
@@ -88,6 +88,8 @@ namespace DiscImageChef.Devices
|
|||||||
default:
|
default:
|
||||||
throw new InvalidOperationException(String.Format("Platform {0} not yet supported.", platformID));
|
throw new InvalidOperationException(String.Format("Platform {0} not yet supported.", platformID));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type = DeviceType.Unknown;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,6 +46,11 @@ namespace DiscImageChef.Devices
|
|||||||
object fd;
|
object fd;
|
||||||
bool error;
|
bool error;
|
||||||
int lastError;
|
int lastError;
|
||||||
|
DeviceType type;
|
||||||
|
string manufacturer;
|
||||||
|
string model;
|
||||||
|
string revision;
|
||||||
|
string serial;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the Platform ID for this device
|
/// Gets the Platform ID for this device
|
||||||
@@ -104,6 +109,66 @@ namespace DiscImageChef.Devices
|
|||||||
return lastError;
|
return lastError;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the device type.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The device type.</value>
|
||||||
|
public DeviceType Type
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the device's manufacturer
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The manufacturer.</value>
|
||||||
|
public string Manufacturer
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return manufacturer;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the device model
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The model.</value>
|
||||||
|
public string Model
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return model;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the device's revision.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The revision.</value>
|
||||||
|
public string Revision
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return revision;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the device's serial number.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The serial number.</value>
|
||||||
|
public string Serial
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return serial;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,17 @@ using System;
|
|||||||
|
|
||||||
namespace DiscImageChef.Devices
|
namespace DiscImageChef.Devices
|
||||||
{
|
{
|
||||||
|
public enum DeviceType
|
||||||
|
{
|
||||||
|
Unknown,
|
||||||
|
ATA,
|
||||||
|
ATAPI,
|
||||||
|
SCSI,
|
||||||
|
SecureDigital,
|
||||||
|
MMC,
|
||||||
|
NVMe
|
||||||
|
}
|
||||||
|
|
||||||
#region ATA Commands
|
#region ATA Commands
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// All known ATA commands
|
/// All known ATA commands
|
||||||
|
|||||||
Reference in New Issue
Block a user