25 lines
1.0 KiB
C#
25 lines
1.0 KiB
C#
// Mozilla Public License 2.0
|
|
// If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
// Copyright (C) LibreHardwareMonitor and Contributors
|
|
// All Rights Reserved
|
|
|
|
using System.Text;
|
|
|
|
namespace OpenHardwareMonitor.Hardware.HDD {
|
|
internal sealed class StorageGeneric : AbstractStorage {
|
|
private StorageGeneric(StorageInfo storageInfo, string name, string firmwareRevision, int index, ISettings settings)
|
|
: base(storageInfo, name, firmwareRevision, "hdd", index, settings) {
|
|
CreateSensors();
|
|
}
|
|
|
|
public static AbstractStorage CreateInstance(StorageInfo info, ISettings settings) {
|
|
string name = string.IsNullOrEmpty(info.Name) ? "Generic Hard Disk" : info.Name;
|
|
string firmwareRevision = string.IsNullOrEmpty(info.Revision) ? "Unknown" : info.Revision;
|
|
return new StorageGeneric(info, name, firmwareRevision, info.Index, settings);
|
|
}
|
|
|
|
protected override void UpdateSensors() { }
|
|
|
|
protected override void GetReport(StringBuilder r) { }
|
|
}
|
|
} |