using System;
using System.Collections.Generic;
using System.Threading;
namespace Flow.Launcher.Plugin
{
///
/// Interface for plugins that want to manually update their results
///
public interface IResultUpdated : IFeatures
{
///
/// Event that is triggered when the results are updated
///
event ResultUpdatedEventHandler ResultsUpdated;
}
///
/// Delegate for the ResultsUpdated event
///
///
///
public delegate void ResultUpdatedEventHandler(IResultUpdated sender, ResultUpdatedEventArgs e);
///
/// Event arguments for the ResultsUpdated event
///
public class ResultUpdatedEventArgs : EventArgs
{
///
/// List of results that should be displayed
///
public List Results;
///
/// Query that triggered the update
///
public Query Query;
///
/// Token that can be used to cancel the update
///
public CancellationToken Token { get; init; }
}
}