[Symbian Installation File] Implement GetNumberOfEntries().

This commit is contained in:
2023-10-07 17:52:48 +01:00
parent f36a7235c1
commit 0ad524da75
2 changed files with 43 additions and 3 deletions

View File

@@ -0,0 +1,43 @@
// /***************************************************************************
// Aaru Data Preservation Suite
// ----------------------------------------------------------------------------
//
// Filename : Symbian.cs
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// 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 <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2011-2023 Natalia Portillo
// ****************************************************************************/
namespace Aaru.Archives;
public sealed partial class Symbian
{
#region IArchive Members
/// <inheritdoc />
public int GetNumberOfEntries() => _opened ? -1 : _files.Count;
#endregion
}

View File

@@ -45,9 +45,6 @@ public sealed partial class Symbian
{
#region IArchive Members
/// <inheritdoc />
public int GetNumberOfEntries() => throw new NotImplementedException();
/// <inheritdoc />
public string GetFilename(int entryNumber) => throw new NotImplementedException();