2016-01-06 06:45:08 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
2016-06-20 23:14:32 +00:00
|
|
|
|
using System.Collections.Specialized;
|
2015-11-02 19:27:46 +00:00
|
|
|
|
|
2020-04-21 09:12:17 +00:00
|
|
|
|
namespace Flow.Launcher.Plugin
|
2015-11-02 19:27:46 +00:00
|
|
|
|
{
|
|
|
|
|
|
public interface IFeatures { }
|
|
|
|
|
|
|
|
|
|
|
|
public interface IContextMenu : IFeatures
|
|
|
|
|
|
{
|
|
|
|
|
|
List<Result> LoadContextMenus(Result selectedResult);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Represent plugins that support internationalization
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public interface IPluginI18n : IFeatures
|
|
|
|
|
|
{
|
|
|
|
|
|
string GetTranslatedPluginTitle();
|
|
|
|
|
|
|
|
|
|
|
|
string GetTranslatedPluginDescription();
|
|
|
|
|
|
}
|
2015-11-09 03:20:02 +00:00
|
|
|
|
|
2016-05-05 15:08:44 +00:00
|
|
|
|
public interface IResultUpdated : IFeatures
|
|
|
|
|
|
{
|
|
|
|
|
|
event ResultUpdatedEventHandler ResultsUpdated;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2016-05-05 19:26:19 +00:00
|
|
|
|
public delegate void ResultUpdatedEventHandler(IResultUpdated sender, ResultUpdatedEventArgs e);
|
2016-05-05 15:08:44 +00:00
|
|
|
|
|
2016-05-05 19:26:19 +00:00
|
|
|
|
public class ResultUpdatedEventArgs : EventArgs
|
2016-05-05 15:08:44 +00:00
|
|
|
|
{
|
|
|
|
|
|
public List<Result> Results;
|
|
|
|
|
|
public Query Query;
|
|
|
|
|
|
}
|
2015-11-02 19:27:46 +00:00
|
|
|
|
}
|