2022-03-21 13:37:51 +01:00
|
|
|
|
// Copyright (c) Microsoft Corporation
|
|
|
|
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
|
|
|
|
|
|
|
namespace Microsoft.PowerToys.Run.Plugin.System.Components
|
|
|
|
|
|
{
|
2023-03-16 15:51:31 +01:00
|
|
|
|
internal sealed class SystemPluginContext
|
2022-03-21 13:37:51 +01:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the type of the result
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public ResultContextType Type { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets the context data for the command/results
|
|
|
|
|
|
/// </summary>
|
2023-01-10 15:09:23 +01:00
|
|
|
|
public string Data { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets or sets an additional result name for searching
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string SearchTag { get; set; } = string.Empty;
|
2022-03-21 13:37:51 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
internal enum ResultContextType
|
|
|
|
|
|
{
|
|
|
|
|
|
Command, // Reserved for later usage
|
|
|
|
|
|
NetworkAdapterInfo,
|
2023-01-10 15:09:23 +01:00
|
|
|
|
RecycleBinCommand,
|
2022-03-21 13:37:51 +01:00
|
|
|
|
}
|
|
|
|
|
|
}
|