mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-18 14:41:21 +08:00
Add interface that will be used by plugins
This commit is contained in:
parent
483940a98d
commit
30fd5fcf14
18
Wox.Plugin/Interfaces/IReloadable.cs
Normal file
18
Wox.Plugin/Interfaces/IReloadable.cs
Normal file
@ -0,0 +1,18 @@
|
||||
namespace Wox.Plugin
|
||||
{
|
||||
/// <summary>
|
||||
/// This interface is to indicate and allow plugins to reload their
|
||||
/// in memory data cache or other mediums when user makes a new change
|
||||
/// that is not immediately captured. For example, for BrowserBookmark and Program
|
||||
/// plugin does not automatically detect when a user added a new bookmark or program,
|
||||
/// so this interface's function is exposed to allow user manually do the reloading after
|
||||
/// those new additions.
|
||||
///
|
||||
/// 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 IReloadable
|
||||
{
|
||||
void ReloadData();
|
||||
}
|
||||
}
|
@ -66,6 +66,7 @@
|
||||
<Compile Include="Features\IContextMenu.cs" />
|
||||
<Compile Include="Features\IExclusiveQuery.cs" />
|
||||
<Compile Include="Features\IInstantQuery.cs" />
|
||||
<Compile Include="Interfaces\IReloadable.cs" />
|
||||
<Compile Include="IPlugin.cs" />
|
||||
<Compile Include="IPublicAPI.cs" />
|
||||
<Compile Include="ISettingProvider.cs" />
|
||||
|
Loading…
Reference in New Issue
Block a user