Hardware/IHardware.cs
author moel.mich
Sat, 14 Jul 2012 19:24:04 +0000
changeset 363 daa9590e1bee
parent 298 96263190189a
child 370 8e4dedc41924
permissions -rw-r--r--
Fixed Issue 269.
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@176
    19
    GpuNvidia,
moel@176
    20
    GpuAti,    
moel@176
    21
    TBalancer,
moel@176
    22
    Heatmaster,
moel@176
    23
    HDD,     
moel@165
    24
  }
moel@165
    25
moel@110
    26
  public interface IHardware : IElement {
moel@1
    27
moel@275
    28
    string Name { get; set; }
moel@109
    29
    Identifier Identifier { get; }
moel@1
    30
moel@165
    31
    HardwareType HardwareType { get; }
moel@1
    32
moel@1
    33
    string GetReport();
moel@1
    34
moel@1
    35
    void Update();
moel@1
    36
moel@64
    37
    IHardware[] SubHardware { get; }
moel@64
    38
moel@176
    39
    IHardware Parent { get; }
moel@176
    40
moel@1
    41
    ISensor[] Sensors { get; }
moel@1
    42
moel@1
    43
    event SensorEventHandler SensorAdded;
moel@1
    44
    event SensorEventHandler SensorRemoved;
moel@1
    45
  }
moel@1
    46
}