From 43c19eac0b258c852fc10d017daf1ee010f8cdcc Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 13 Oct 2022 09:43:17 -0500 Subject: differentiate read and read/write repositories. add host collection --- src/slskd/Shares/IReadOnlyShareRepository.cs | 60 +--------------------------- 1 file changed, 1 insertion(+), 59 deletions(-) (limited to 'src/slskd/Shares/IReadOnlyShareRepository.cs') diff --git a/src/slskd/Shares/IReadOnlyShareRepository.cs b/src/slskd/Shares/IReadOnlyShareRepository.cs index 9822f536..fff587ad 100644 --- a/src/slskd/Shares/IReadOnlyShareRepository.cs +++ b/src/slskd/Shares/IReadOnlyShareRepository.cs @@ -17,68 +17,10 @@ namespace slskd.Shares { - using System.Collections.Generic; - using Soulseek; - /// /// Read-only persistent storage of shared files and metadata. /// - public interface IReadOnlyShareRepository + public interface IReadOnlyShareRepository : IShareRepository { - /// - /// Gets the connection string for this repository. - /// - string ConnectionString { get; } - - /// - /// Counts the number of directories in the database. - /// - /// The optional directory prefix used for counting subdirectories. - /// The number of directories. - int CountDirectories(string parentDirectory = null); - - /// - /// Counts the number of files in the database. - /// - /// The optional directory prefix used for counting files in a subdirectory. - /// The number of files. - int CountFiles(string parentDirectory = null); - - /// - /// Finds the filename of the file matching the specified . - /// - /// The fully qualified remote path of the file. - /// The filename, if found. - string FindFilename(string maskedFilename); - - /// - /// Lists all directories. - /// - /// The optional directory prefix used for listing subdirectories. - /// The list of directories. - IEnumerable ListDirectories(string parentDirectory = null); - - /// - /// Lists all files. - /// - /// The optional parent directory. - /// A value indicating whether the fully qualified path should be returned. - /// The list of files. - IEnumerable ListFiles(string parentDirectory = null, bool includeFullPath = false); - - /// - /// Searches the database for files matching the specified . - /// - /// The search query. - /// The list of matching files. - IEnumerable Search(SearchQuery query); - - /// - /// Attempts to validate the database at the specified , or the - /// default . - /// - /// The connection string of the database to validate. - /// A value indicating whether the database is valid. - bool TryValidate(string connectionString = null); } } -- cgit v1.2.3