moel@83: /* moel@83: moel@83: Version: MPL 1.1/GPL 2.0/LGPL 2.1 moel@83: moel@83: The contents of this file are subject to the Mozilla Public License Version moel@83: 1.1 (the "License"); you may not use this file except in compliance with moel@83: the License. You may obtain a copy of the License at moel@83: moel@83: http://www.mozilla.org/MPL/ moel@83: moel@83: Software distributed under the License is distributed on an "AS IS" basis, moel@83: WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License moel@83: for the specific language governing rights and limitations under the License. moel@83: moel@83: The Original Code is the Open Hardware Monitor code. moel@83: moel@83: The Initial Developer of the Original Code is moel@83: Michael Möller . moel@83: Portions created by the Initial Developer are Copyright (C) 2009-2010 moel@83: the Initial Developer. All Rights Reserved. moel@83: moel@83: Contributor(s): moel@83: moel@83: Alternatively, the contents of this file may be used under the terms of moel@83: either the GNU General Public License Version 2 or later (the "GPL"), or moel@83: the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), moel@83: in which case the provisions of the GPL or the LGPL are applicable instead moel@83: of those above. If you wish to allow use of your version of this file only moel@83: under the terms of either the GPL or the LGPL, and not to allow others to moel@83: use your version of this file under the terms of the MPL, indicate your moel@83: decision by deleting the provisions above and replace them with the notice moel@83: and other provisions required by the GPL or the LGPL. If you do not delete moel@83: the provisions above, a recipient may use your version of this file under moel@83: the terms of any one of the MPL, the GPL or the LGPL. moel@83: moel@83: */ moel@83: moel@83: using System; moel@83: using System.Collections.Generic; moel@83: moel@83: namespace OpenHardwareMonitor.Hardware { moel@83: moel@83: public delegate void HardwareEventHandler(IHardware hardware); moel@83: moel@110: public interface IComputer : IElement { moel@83: moel@83: IHardware[] Hardware { get; } moel@83: moel@167: bool HDDEnabled { get; } moel@83: moel@83: string GetReport(); moel@83: moel@83: event HardwareEventHandler HardwareAdded; moel@83: event HardwareEventHandler HardwareRemoved; moel@83: } moel@83: }