Hardware/IComputer.cs
author paulwerelds
Tue, 21 Sep 2010 10:18:07 +0000
changeset 193 52ef1cf6b8e5
parent 167 b7cc9d09aefe
child 344 3145aadca3d2
permissions -rw-r--r--
Added thermal and voltage/frequency MSRs for K8 CPUs, fixed chars-per-line limit
moel@83
     1
/*
moel@83
     2
  
moel@83
     3
  Version: MPL 1.1/GPL 2.0/LGPL 2.1
moel@83
     4
moel@83
     5
  The contents of this file are subject to the Mozilla Public License Version
moel@83
     6
  1.1 (the "License"); you may not use this file except in compliance with
moel@83
     7
  the License. You may obtain a copy of the License at
moel@83
     8
 
moel@83
     9
  http://www.mozilla.org/MPL/
moel@83
    10
moel@83
    11
  Software distributed under the License is distributed on an "AS IS" basis,
moel@83
    12
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
moel@83
    13
  for the specific language governing rights and limitations under the License.
moel@83
    14
moel@83
    15
  The Original Code is the Open Hardware Monitor code.
moel@83
    16
moel@83
    17
  The Initial Developer of the Original Code is 
moel@83
    18
  Michael Möller <m.moeller@gmx.ch>.
moel@83
    19
  Portions created by the Initial Developer are Copyright (C) 2009-2010
moel@83
    20
  the Initial Developer. All Rights Reserved.
moel@83
    21
moel@83
    22
  Contributor(s):
moel@83
    23
moel@83
    24
  Alternatively, the contents of this file may be used under the terms of
moel@83
    25
  either the GNU General Public License Version 2 or later (the "GPL"), or
moel@83
    26
  the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
moel@83
    27
  in which case the provisions of the GPL or the LGPL are applicable instead
moel@83
    28
  of those above. If you wish to allow use of your version of this file only
moel@83
    29
  under the terms of either the GPL or the LGPL, and not to allow others to
moel@83
    30
  use your version of this file under the terms of the MPL, indicate your
moel@83
    31
  decision by deleting the provisions above and replace them with the notice
moel@83
    32
  and other provisions required by the GPL or the LGPL. If you do not delete
moel@83
    33
  the provisions above, a recipient may use your version of this file under
moel@83
    34
  the terms of any one of the MPL, the GPL or the LGPL.
moel@83
    35
 
moel@83
    36
*/
moel@83
    37
moel@83
    38
namespace OpenHardwareMonitor.Hardware {
moel@83
    39
moel@83
    40
  public delegate void HardwareEventHandler(IHardware hardware);
moel@83
    41
moel@110
    42
  public interface IComputer : IElement {
moel@83
    43
moel@83
    44
    IHardware[] Hardware { get; }
moel@83
    45
moel@167
    46
    bool HDDEnabled { get; }
moel@83
    47
moel@83
    48
    string GetReport();
moel@83
    49
moel@83
    50
    event HardwareEventHandler HardwareAdded;
moel@83
    51
    event HardwareEventHandler HardwareRemoved;
moel@83
    52
  }
moel@83
    53
}