Hardware/IHardware.cs
author moel.mich
Tue, 30 Dec 2014 22:47:39 +0000
changeset 431 0e46e3ca812a
parent 344 3145aadca3d2
permissions -rw-r--r--
Fixed the following issue (present only on 32-bit systems):

Version: 0.7.0.0

System.NullReferenceException: Object reference not set to an instance of an object.
at OpenHardwareMonitor.GUI.MainForm.timer_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Common Language Runtime: 4.0.30319.18444
Operating System: Microsoft Windows NT 6.1.7601 Service Pack 1
Process Type: 32-Bit
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
}