Hardware/Mainboard/MainboardGroup.cs
author moel.mich
Sat, 27 Feb 2010 20:08:13 +0000
changeset 64 15181001ee61
child 165 813d8bc3192f
permissions -rw-r--r--
Added sub-hardware support and basic enumeration for mainboards.
moel@64
     1
/*
moel@64
     2
  
moel@64
     3
  Version: MPL 1.1/GPL 2.0/LGPL 2.1
moel@64
     4
moel@64
     5
  The contents of this file are subject to the Mozilla Public License Version
moel@64
     6
  1.1 (the "License"); you may not use this file except in compliance with
moel@64
     7
  the License. You may obtain a copy of the License at
moel@64
     8
 
moel@64
     9
  http://www.mozilla.org/MPL/
moel@64
    10
moel@64
    11
  Software distributed under the License is distributed on an "AS IS" basis,
moel@64
    12
  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
moel@64
    13
  for the specific language governing rights and limitations under the License.
moel@64
    14
moel@64
    15
  The Original Code is the Open Hardware Monitor code.
moel@64
    16
moel@64
    17
  The Initial Developer of the Original Code is 
moel@64
    18
  Michael Möller <m.moeller@gmx.ch>.
moel@64
    19
  Portions created by the Initial Developer are Copyright (C) 2009-2010
moel@64
    20
  the Initial Developer. All Rights Reserved.
moel@64
    21
moel@64
    22
  Contributor(s):
moel@64
    23
moel@64
    24
  Alternatively, the contents of this file may be used under the terms of
moel@64
    25
  either the GNU General Public License Version 2 or later (the "GPL"), or
moel@64
    26
  the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
moel@64
    27
  in which case the provisions of the GPL or the LGPL are applicable instead
moel@64
    28
  of those above. If you wish to allow use of your version of this file only
moel@64
    29
  under the terms of either the GPL or the LGPL, and not to allow others to
moel@64
    30
  use your version of this file under the terms of the MPL, indicate your
moel@64
    31
  decision by deleting the provisions above and replace them with the notice
moel@64
    32
  and other provisions required by the GPL or the LGPL. If you do not delete
moel@64
    33
  the provisions above, a recipient may use your version of this file under
moel@64
    34
  the terms of any one of the MPL, the GPL or the LGPL.
moel@64
    35
 
moel@64
    36
*/
moel@64
    37
moel@64
    38
using System;
moel@64
    39
using System.Collections.Generic;
moel@64
    40
moel@64
    41
namespace OpenHardwareMonitor.Hardware.Mainboard {
moel@64
    42
  public class MainboardGroup : IGroup {
moel@64
    43
moel@64
    44
    private Mainboard[] mainboards;
moel@64
    45
moel@64
    46
    public MainboardGroup() {
moel@64
    47
      mainboards = new Mainboard[1];
moel@64
    48
      mainboards[0] = new Mainboard();
moel@64
    49
    }
moel@64
    50
moel@64
    51
    public void Close() {
moel@64
    52
      foreach (Mainboard mainboard in mainboards)
moel@64
    53
        mainboard.Close();
moel@64
    54
    }
moel@64
    55
moel@64
    56
    public string GetReport() {
moel@64
    57
      return null;
moel@64
    58
    }
moel@64
    59
moel@64
    60
    public IHardware[] Hardware {
moel@64
    61
      get { return mainboards; }
moel@64
    62
moel@64
    63
    }
moel@64
    64
  }
moel@64
    65
}