Move IAsyncReloadable.cs, IReloadable.cs, ISavable.cs to IFeatures

This commit is contained in:
Kevin Zhang 2021-07-06 11:06:00 +08:00
parent 55e985faae
commit e64771f707
4 changed files with 6 additions and 4 deletions

View file

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Threading;
namespace Flow.Launcher.Plugin
{
@ -32,5 +33,6 @@ namespace Flow.Launcher.Plugin
{
public List<Result> Results;
public Query Query;
public CancellationToken Token { get; init; }
}
}

View file

@ -13,7 +13,7 @@ namespace Flow.Launcher.Plugin
/// The command that allows user to manual reload is exposed via Plugin.Sys, and
/// it will call the plugins that have implemented this interface.
/// </summary>
public interface IAsyncReloadable
public interface IAsyncReloadable : IFeatures
{
Task ReloadDataAsync();
}

View file

@ -15,7 +15,7 @@
/// If requiring reloading data asynchronously, please use the IAsyncReloadable interface
/// </para>
/// </summary>
public interface IReloadable
public interface IReloadable : IFeatures
{
void ReloadData();
}

View file

@ -5,8 +5,8 @@
/// Otherwise if LoadSettingJsonStorage or SaveSettingJsonStorage has been callded,
/// plugin settings will be automatically saved (see Flow.Launcher/PublicAPIInstance.SavePluginSettings) by Flow
/// </summary>
public interface ISavable
public interface ISavable : IFeatures
{
void Save();
}
}
}