From 0ad524da75a91e9f091c5769cd46a6bcd7c97b4a Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 7 Oct 2023 17:52:48 +0100 Subject: [PATCH] [Symbian Installation File] Implement `GetNumberOfEntries()`. --- Aaru.Archives/Symbian/Files.cs | 43 ++++++++++++++++++++++++++++ Aaru.Archives/Symbian/Unsupported.cs | 3 -- 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 Aaru.Archives/Symbian/Files.cs diff --git a/Aaru.Archives/Symbian/Files.cs b/Aaru.Archives/Symbian/Files.cs new file mode 100644 index 000000000..170ba8fd0 --- /dev/null +++ b/Aaru.Archives/Symbian/Files.cs @@ -0,0 +1,43 @@ +// /*************************************************************************** +// 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 +// ****************************************************************************/ + +namespace Aaru.Archives; + +public sealed partial class Symbian +{ +#region IArchive Members + + /// + public int GetNumberOfEntries() => _opened ? -1 : _files.Count; + +#endregion +} \ No newline at end of file diff --git a/Aaru.Archives/Symbian/Unsupported.cs b/Aaru.Archives/Symbian/Unsupported.cs index 2f4de1054..13e5194e4 100644 --- a/Aaru.Archives/Symbian/Unsupported.cs +++ b/Aaru.Archives/Symbian/Unsupported.cs @@ -45,9 +45,6 @@ public sealed partial class Symbian { #region IArchive Members - /// - public int GetNumberOfEntries() => throw new NotImplementedException(); - /// public string GetFilename(int entryNumber) => throw new NotImplementedException();