48 lines
980 B
C#
Raw Permalink Normal View History

2010-01-26 22:37:48 +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
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);
2010-09-06 19:53:13 +00:00
public enum HardwareType {
Mainboard,
SuperIO,
2010-09-06 19:53:13 +00:00
CPU,
RAM,
2010-09-06 19:53:13 +00:00
GpuNvidia,
GpuAti,
TBalancer,
Heatmaster,
HDD
}
public interface IHardware : IElement {
2010-01-26 22:37:48 +00:00
2011-04-30 16:03:58 +00:00
string Name { get; set; }
Identifier Identifier { get; }
2010-01-26 22:37:48 +00:00
HardwareType HardwareType { get; }
2010-01-26 22:37:48 +00:00
string GetReport();
void Update();
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;
}
}