diff --git a/Aaru.Archives/Symbian/Info.cs b/Aaru.Archives/Symbian/Info.cs index d1e94be76..147b8e293 100644 --- a/Aaru.Archives/Symbian/Info.cs +++ b/Aaru.Archives/Symbian/Info.cs @@ -30,10 +30,26 @@ // Copyright © 2011-2023 Natalia Portillo // ****************************************************************************/ +using System; +using System.IO; + namespace Aaru.Archives; public partial class Symbian { +#region IArchive Members + + /// + public bool Identify(string path) => throw new NotImplementedException(); + + /// + public bool Identify(Stream stream) => throw new NotImplementedException(); + + /// + public bool Identify(byte[] buffer) => throw new NotImplementedException(); + +#endregion + /* public override bool Identify(FileStream fileStream, long offset) { diff --git a/Aaru.Archives/Symbian/Symbian.cs b/Aaru.Archives/Symbian/Symbian.cs index c1520c002..7b5c61352 100644 --- a/Aaru.Archives/Symbian/Symbian.cs +++ b/Aaru.Archives/Symbian/Symbian.cs @@ -31,14 +31,20 @@ // ****************************************************************************/ using System; +using Aaru.CommonTypes.Interfaces; namespace Aaru.Archives; // Information from http://www.thoukydides.webspace.virginmedia.com/software/psifs/sis.html -public partial class Symbian +public partial class Symbian : IArchive { const string MODULE_NAME = "Symbian Installation File Plugin"; - public string Name => Filters.Localization.Symbian_Name; - public Guid Id => new("0EC84EC7-EAE6-4196-83FE-943B3FE48DBD"); public string Author => Authors.NataliaPortillo; + +#region IArchive Members + + public string Name => Filters.Localization.Symbian_Name; + public Guid Id => new("0EC84EC7-EAE6-4196-83FE-943B3FE48DBD"); + +#endregion } \ No newline at end of file diff --git a/Aaru.Archives/Symbian/Unsupported.cs b/Aaru.Archives/Symbian/Unsupported.cs new file mode 100644 index 000000000..f424d106e --- /dev/null +++ b/Aaru.Archives/Symbian/Unsupported.cs @@ -0,0 +1,101 @@ +// /*************************************************************************** +// Aaru Data Preservation Suite +// ---------------------------------------------------------------------------- +// +// Filename : Symbian.cs +// Author(s) : Natalia Portillo +// +// Component : Symbian plugin. +// +// --[ Description ] ---------------------------------------------------------- +// +// Identifies Symbian installer (.sis) packages and shows information. +// +// --[ 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 . +// +// ---------------------------------------------------------------------------- +// Copyright © 2011-2023 Natalia Portillo +// ****************************************************************************/ + +using System; +using System.Collections.Generic; +using System.Diagnostics.CodeAnalysis; +using System.IO; +using Aaru.CommonTypes.Enums; +using Aaru.CommonTypes.Interfaces; + +namespace Aaru.Archives; + +[SuppressMessage("ReSharper", "UnusedType.Global")] +[SuppressMessage("ReSharper", "UnusedMember.Local")] +public partial class Symbian +{ +#region IArchive Members + + /// + public ErrorNumber Open(string path) => throw new NotImplementedException(); + + /// + public ErrorNumber Open(Stream stream) => throw new NotImplementedException(); + + /// + public ErrorNumber Open(byte[] buffer) => throw new NotImplementedException(); + + /// + public bool IsOpened() => throw new NotImplementedException(); + + /// + public void Close() + { + throw new NotImplementedException(); + } + + /// + public ArchiveSupportedFeature GetArchiveFeatures() => throw new NotImplementedException(); + + /// + public int GetNumberOfEntries() => throw new NotImplementedException(); + + /// + public string GetFilename(int entryNumber) => throw new NotImplementedException(); + + /// + public int GetEntryNumber(string fileName, bool caseInsensitiveMatch) => throw new NotImplementedException(); + + /// + public long GetCompressedSize(int entryNumber) => throw new NotImplementedException(); + + /// + public long GetUncompressedSize(int entryNumber) => throw new NotImplementedException(); + + /// + public FileAttributes GetAttributes(int entryNumber) => throw new NotImplementedException(); + + /// + public List GetXAttrs(int entryNumber) => throw new NotImplementedException(); + + /// + public ErrorNumber GetXattr(int entryNumber, string xattr, out byte[] buffer) => + throw new NotImplementedException(); + + /// + public FileSystemInfo Stat(int entryNumber) => throw new NotImplementedException(); + + /// + public IFilter GetEntry(int entryNumber) => throw new NotImplementedException(); + +#endregion +} \ No newline at end of file