moel@1
|
1 |
/*
|
moel@1
|
2 |
|
moel@344
|
3 |
This Source Code Form is subject to the terms of the Mozilla Public
|
moel@344
|
4 |
License, v. 2.0. If a copy of the MPL was not distributed with this
|
moel@344
|
5 |
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
moel@1
|
6 |
|
moel@344
|
7 |
Copyright (C) 2009-2011 Michael Möller <mmoeller@openhardwaremonitor.org>
|
moel@344
|
8 |
|
moel@1
|
9 |
*/
|
moel@1
|
10 |
|
moel@1
|
11 |
namespace OpenHardwareMonitor.Hardware {
|
moel@1
|
12 |
|
moel@1
|
13 |
public delegate void SensorEventHandler(ISensor sensor);
|
moel@298
|
14 |
|
moel@176
|
15 |
public enum HardwareType {
|
moel@165
|
16 |
Mainboard,
|
moel@165
|
17 |
SuperIO,
|
moel@176
|
18 |
CPU,
|
moel@370
|
19 |
RAM,
|
moel@176
|
20 |
GpuNvidia,
|
moel@176
|
21 |
GpuAti,
|
moel@176
|
22 |
TBalancer,
|
moel@176
|
23 |
Heatmaster,
|
moel@370
|
24 |
HDD
|
moel@165
|
25 |
}
|
moel@165
|
26 |
|
moel@110
|
27 |
public interface IHardware : IElement {
|
moel@1
|
28 |
|
moel@275
|
29 |
string Name { get; set; }
|
moel@109
|
30 |
Identifier Identifier { get; }
|
moel@1
|
31 |
|
moel@165
|
32 |
HardwareType HardwareType { get; }
|
moel@1
|
33 |
|
moel@1
|
34 |
string GetReport();
|
moel@1
|
35 |
|
moel@1
|
36 |
void Update();
|
moel@1
|
37 |
|
moel@64
|
38 |
IHardware[] SubHardware { get; }
|
moel@64
|
39 |
|
moel@176
|
40 |
IHardware Parent { get; }
|
moel@176
|
41 |
|
moel@1
|
42 |
ISensor[] Sensors { get; }
|
moel@1
|
43 |
|
moel@1
|
44 |
event SensorEventHandler SensorAdded;
|
moel@1
|
45 |
event SensorEventHandler SensorRemoved;
|
moel@1
|
46 |
}
|
moel@1
|
47 |
}
|