// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System.Collections.Generic; using System.Threading.Tasks; namespace osu.Game.Database { /// /// A class which can accept files for importing. /// public interface ICanAcceptFiles { /// /// Import one or more items from filesystem . /// /// /// This will be treated as a low priority batch import if more than one path is specified. /// This will post notifications tracking progress. /// /// The files which should be imported. Task Import(params string[] paths); /// /// Import the specified files from the given import tasks. /// /// /// This will be treated as a low priority batch import if more than one path is specified. /// This will post notifications tracking progress. /// /// The import tasks from which the files should be imported. /// Parameters to further configure the import process. Task Import(ImportTask[] tasks, ImportParameters parameters = default); /// /// An array of accepted file extensions (in the standard format of ".abc"). /// IEnumerable HandledExtensions { get; } } }