Added hint for XML metadata creator to know which kind of

media the image represents.
This commit is contained in:
2015-12-05 17:21:47 +00:00
parent 96048617e1
commit 564775d3f7
11 changed files with 101 additions and 0 deletions

View File

@@ -360,6 +360,8 @@ namespace DiscImageChef.ImagePlugins
a2mgImagePath = imagePath;
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
return true;
}

View File

@@ -1279,6 +1279,8 @@ namespace DiscImageChef.ImagePlugins
}
}
ImageInfo.xmlMediaType = XmlMediaType.OpticalDisc;
return true;
}
catch (Exception ex)

View File

@@ -1,3 +1,17 @@
2015-12-05 Natalia Portillo <claunia@claunia.com>
* VHD.cs:
* Nero.cs:
* CDRWin.cs:
* Apple2MG.cs:
* TeleDisk.cs:
* ImageInfo.cs:
* DiskCopy42.cs:
* ImagePlugin.cs:
* ZZZRawImage.cs:
Added hint for XML metadata creator to know which kind of
media the image represents.
2015-11-23 Natalia Portillo <claunia@claunia.com>
* VHD.cs:

View File

@@ -224,6 +224,8 @@ namespace DiscImageChef.ImagePlugins
return false;
}
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
return true;
}

View File

@@ -32,6 +32,7 @@ namespace DiscImageChef.ImagePlugins
public string driveManufacturer;
public string driveModel;
public string driveSerialNumber;
public XmlMediaType xmlMediaType;
}
}

View File

@@ -622,6 +622,13 @@ namespace DiscImageChef.ImagePlugins
ATAPI_IDENTIFY
};
public enum XmlMediaType
{
OpticalDisc,
BlockMedia,
LinearMedia
}
/// <summary>
/// Feature is supported by image but not implemented yet.
/// </summary>

View File

@@ -1596,6 +1596,9 @@ namespace DiscImageChef.ImagePlugins
_imagePath = imagePath;
imageStream.Close();
ImageInfo.xmlMediaType = XmlMediaType.OpticalDisc;
return true;
}
catch

View File

@@ -580,6 +580,9 @@ namespace DiscImageChef.ImagePlugins
ImageInfo.diskType = DecodeTeleDiskDiskType();
stream.Close();
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
return true;
}

View File

@@ -778,6 +778,8 @@ namespace DiscImageChef.ImagePlugins
DicConsole.DebugWriteLine("VirtualPC plugin", "Bitmap is {0} sectors", bitmapSize);
}
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
switch (thisFooter.diskType)
{
case typeFixed:

View File

@@ -263,6 +263,22 @@ namespace DiscImageChef.ImagePlugins
ImageInfo.diskType = CalculateDiskType();
switch (ImageInfo.diskType)
{
case DiskType.CD:
case DiskType.DVDPR:
case DiskType.DVDR:
case DiskType.DVDRDL:
case DiskType.DVDPRDL:
case DiskType.BDR:
case DiskType.BDRXL:
ImageInfo.xmlMediaType = XmlMediaType.OpticalDisc;
break;
default:
ImageInfo.xmlMediaType = XmlMediaType.BlockMedia;
break;
}
return true;
}

View File

@@ -0,0 +1,49 @@
// /***************************************************************************
// The Disc Image Chef
// ----------------------------------------------------------------------------
//
// Filename : CreateSidecar.cs
// Version : 1.0
// Author(s) : Natalia Portillo
//
// Component : Component
//
// Revision : $Revision$
// Last change by : $Author$
// Date : $Date$
//
// --[ Description ] ----------------------------------------------------------
//
// Description
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright (C) 2011-2015 Claunia.com
// ****************************************************************************/
// //$Id$
using System;
namespace DiscImageChef.Commands
{
public class CreateSidecar
{
public CreateSidecar()
{
}
}
}