Hardware/IComputer.cs
author moel.mich
Tue, 27 Jul 2010 18:38:11 +0000
changeset 159 eda3e3458cf4
parent 86 b4f0f206173d
child 167 b7cc9d09aefe
permissions -rw-r--r--
Refactoring and fine tuning for Linux GUI.
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
using System;
moel@83
    39
using System.Collections.Generic;
moel@83
    40
moel@83
    41
namespace OpenHardwareMonitor.Hardware {
moel@83
    42
moel@83
    43
  public delegate void HardwareEventHandler(IHardware hardware);
moel@83
    44
moel@110
    45
  public interface IComputer : IElement {
moel@83
    46
moel@83
    47
    IHardware[] Hardware { get; }
moel@83
    48
moel@83
    49
    bool HDDEnabled { get; set; }
moel@83
    50
moel@83
    51
    string GetReport();
moel@83
    52
moel@83
    53
    event HardwareEventHandler HardwareAdded;
moel@83
    54
    event HardwareEventHandler HardwareRemoved;
moel@83
    55
  }
moel@83
    56
}