2010-01-26 22:37:48 +00:00
|
|
|
|
/*
|
|
|
|
|
|
2012-05-27 14:23:31 +00:00
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
|
License, v. 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/.
|
2010-01-26 22:37:48 +00:00
|
|
|
|
|
2012-05-27 14:23:31 +00:00
|
|
|
|
Copyright (C) 2009-2011 Michael Möller <mmoeller@openhardwaremonitor.org>
|
|
|
|
|
|
2010-01-26 22:37:48 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace OpenHardwareMonitor.Hardware {
|
|
|
|
|
|
|
|
|
|
public delegate void SensorEventHandler(ISensor sensor);
|
2011-06-19 12:41:18 +00:00
|
|
|
|
|
2010-09-06 19:53:13 +00:00
|
|
|
|
public enum HardwareType {
|
2010-08-08 13:57:26 +00:00
|
|
|
|
Mainboard,
|
|
|
|
|
SuperIO,
|
2010-09-06 19:53:13 +00:00
|
|
|
|
CPU,
|
2012-07-23 21:54:35 +00:00
|
|
|
|
RAM,
|
2010-09-06 19:53:13 +00:00
|
|
|
|
GpuNvidia,
|
|
|
|
|
GpuAti,
|
|
|
|
|
TBalancer,
|
|
|
|
|
Heatmaster,
|
2012-07-23 21:54:35 +00:00
|
|
|
|
HDD
|
2010-08-08 13:57:26 +00:00
|
|
|
|
}
|
|
|
|
|
|
2010-05-09 16:22:13 +00:00
|
|
|
|
public interface IHardware : IElement {
|
2010-01-26 22:37:48 +00:00
|
|
|
|
|
2011-04-30 16:03:58 +00:00
|
|
|
|
string Name { get; set; }
|
2010-05-06 19:20:38 +00:00
|
|
|
|
Identifier Identifier { get; }
|
2010-01-26 22:37:48 +00:00
|
|
|
|
|
2010-08-08 13:57:26 +00:00
|
|
|
|
HardwareType HardwareType { get; }
|
2010-01-26 22:37:48 +00:00
|
|
|
|
|
|
|
|
|
string GetReport();
|
|
|
|
|
|
|
|
|
|
void Update();
|
|
|
|
|
|
2010-02-27 20:08:13 +00:00
|
|
|
|
IHardware[] SubHardware { get; }
|
|
|
|
|
|
2010-09-06 19:53:13 +00:00
|
|
|
|
IHardware Parent { get; }
|
|
|
|
|
|
2010-01-26 22:37:48 +00:00
|
|
|
|
ISensor[] Sensors { get; }
|
|
|
|
|
|
|
|
|
|
event SensorEventHandler SensorAdded;
|
|
|
|
|
event SensorEventHandler SensorRemoved;
|
|
|
|
|
}
|
|
|
|
|
}
|