paulwerelds@224: /*
moel@344:  
moel@344:   This Source Code Form is subject to the terms of the Mozilla Public
moel@344:   License, v. 2.0. If a copy of the MPL was not distributed with this
moel@344:   file, You can obtain one at http://mozilla.org/MPL/2.0/.
moel@344:  
moel@344:   Copyright (C) 2009-2010 Paul Werelds <paul@werelds.net>
moel@344: 	
moel@344: */
paulwerelds@224: 
paulwerelds@224: 
paulwerelds@224: using System.Management.Instrumentation;
paulwerelds@223: using OpenHardwareMonitor.Hardware;
paulwerelds@223: 
paulwerelds@227: namespace OpenHardwareMonitor.WMI {
paulwerelds@223:   [InstrumentationClass(InstrumentationType.Instance)]
paulwerelds@224:   public class Hardware : IWmiObject {
paulwerelds@224:     #region WMI Exposed
paulwerelds@224:     
paulwerelds@223:     public string HardwareType { get; private set; }
paulwerelds@223:     public string Identifier { get; private set; }
paulwerelds@223:     public string Name { get; private set; }
paulwerelds@234:     public string Parent { get; private set; }
paulwerelds@223: 
paulwerelds@224:     #endregion
paulwerelds@224: 
paulwerelds@223:     public Hardware(IHardware hardware) {
paulwerelds@223:       Name = hardware.Name;
paulwerelds@223:       Identifier = hardware.Identifier.ToString();
paulwerelds@223:       HardwareType = hardware.HardwareType.ToString();
paulwerelds@235:       Parent = (hardware.Parent != null)
paulwerelds@235:         ? hardware.Parent.Identifier.ToString()
paulwerelds@235:         : "";
paulwerelds@223:     }
paulwerelds@223: 
paulwerelds@223:     public void Update() { }
paulwerelds@223:   }
paulwerelds@223: }