2016-07-28 18:13:49 +01:00
|
|
|
// /***************************************************************************
|
|
|
|
|
// The Disc Image Chef
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Filename : PartPlugin.cs
|
|
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
|
|
|
|
//
|
|
|
|
|
// Component : Partitioning scheme plugins.
|
|
|
|
|
//
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Defines methods to be used by partitioning scheme plugins and several
|
|
|
|
|
// constants.
|
|
|
|
|
//
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// This library is free software; you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU Lesser General Public License as
|
|
|
|
|
// published by the Free Software Foundation; either version 2.1 of the
|
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
//
|
|
|
|
|
// This library is distributed in the hope that it will be useful, but
|
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
// Lesser General Public License for more details.
|
|
|
|
|
//
|
|
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2017-05-19 20:28:49 +01:00
|
|
|
// Copyright © 2011-2017 Natalia Portillo
|
2016-07-28 18:13:49 +01:00
|
|
|
// ****************************************************************************/
|
2014-04-17 19:58:14 +00:00
|
|
|
|
2011-03-03 18:34:33 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2014-06-15 23:39:34 +01:00
|
|
|
namespace DiscImageChef.PartPlugins
|
2011-03-03 18:34:33 +00:00
|
|
|
{
|
2014-06-07 05:57:17 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Abstract class to implement partitioning schemes interpreting plugins.
|
|
|
|
|
/// </summary>
|
2014-04-14 01:14:20 +00:00
|
|
|
public abstract class PartPlugin
|
|
|
|
|
{
|
2014-06-07 05:57:17 +01:00
|
|
|
/// <summary>Plugin name.</summary>
|
2014-04-14 01:14:20 +00:00
|
|
|
public string Name;
|
2014-06-07 05:57:17 +01:00
|
|
|
/// <summary>Plugin UUID.</summary>
|
2011-03-03 18:34:33 +00:00
|
|
|
public Guid PluginUUID;
|
2014-04-14 01:14:20 +00:00
|
|
|
|
|
|
|
|
protected PartPlugin()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-07 05:57:17 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Interprets a partitioning scheme.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns><c>true</c>, if partitioning scheme is recognized, <c>false</c> otherwise.</returns>
|
|
|
|
|
/// <param name="imagePlugin">Disk image.</param>
|
|
|
|
|
/// <param name="partitions">Returns list of partitions.</param>
|
2015-10-05 19:45:07 +01:00
|
|
|
public abstract bool GetInformation(ImagePlugins.ImagePlugin imagePlugin, out List<CommonTypes.Partition> partitions);
|
2014-04-14 01:14:20 +00:00
|
|
|
}
|
2011-03-03 18:34:33 +00:00
|
|
|
}
|