WIP
This commit is contained in:
@@ -4,4 +4,5 @@ public interface IUserCommunicationService
|
||||
{
|
||||
Task<bool> ReadInputs(params IInputElement[] fields);
|
||||
void ShowToastMessage(string text);
|
||||
Task<MessageBoxResult> ShowMessageBox(string text);
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace FileTime.Core.Interactions;
|
||||
|
||||
public enum MessageBoxResult
|
||||
{
|
||||
Ok,
|
||||
Cancel
|
||||
}
|
||||
@@ -6,4 +6,5 @@ public interface IContainer : IItem
|
||||
{
|
||||
IObservable<IObservable<IChangeSet<AbsolutePath, string>>?> Items { get; }
|
||||
IObservable<bool> IsLoading { get; }
|
||||
bool AllowRecursiveDeletion { get; }
|
||||
}
|
||||
25
src/Core/FileTime.Core.Command/Delete/DeleteCommand.cs
Normal file
25
src/Core/FileTime.Core.Command/Delete/DeleteCommand.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using FileTime.Core.Models;
|
||||
using FileTime.Core.Timeline;
|
||||
|
||||
namespace FileTime.Core.Command.Delete;
|
||||
|
||||
public class DeleteCommand : IExecutableCommand
|
||||
{
|
||||
public bool HardDelete { get; init; }
|
||||
public List<FullName> ItemsToDelete { get; } = new List<FullName>();
|
||||
|
||||
public Task<CanCommandRun> CanRun(PointInTime currentTime)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task<PointInTime> SimulateCommand(PointInTime currentTime)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task Execute()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
@@ -41,6 +41,7 @@ public abstract class ContentProviderBase : IContentProvider
|
||||
public string? Attributes => null;
|
||||
|
||||
protected BehaviorSubject<bool> IsLoading { get; } = new(false);
|
||||
public bool AllowRecursiveDeletion => false;
|
||||
|
||||
IObservable<bool> IContainer.IsLoading => IsLoading.AsObservable();
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ public record Container(
|
||||
bool CanRename,
|
||||
string? Attributes,
|
||||
IContentProvider Provider,
|
||||
bool AllowRecursiveDeletion,
|
||||
PointInTime PointInTime,
|
||||
IObservable<IEnumerable<Exception>> Exceptions,
|
||||
ReadOnlyExtensionCollection Extensions,
|
||||
|
||||
Reference in New Issue
Block a user