mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-03 17:56:44 +02:00
37 lines
1023 B
C#
37 lines
1023 B
C#
|
|
// 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.
|
||
|
|
|
||
|
|
using System;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using Microsoft.CmdPal.Ext.Apps.Programs;
|
||
|
|
|
||
|
|
namespace Microsoft.CmdPal.Ext.Apps;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Interface for application cache that provides access to Win32 and UWP applications.
|
||
|
|
/// </summary>
|
||
|
|
public interface IAppCache : IDisposable
|
||
|
|
{
|
||
|
|
/// <summary>
|
||
|
|
/// Gets the collection of Win32 programs.
|
||
|
|
/// </summary>
|
||
|
|
IList<Win32Program> Win32s { get; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Gets the collection of UWP applications.
|
||
|
|
/// </summary>
|
||
|
|
IList<IUWPApplication> UWPs { get; }
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Determines whether the cache should be reloaded.
|
||
|
|
/// </summary>
|
||
|
|
/// <returns>True if cache should be reloaded, false otherwise.</returns>
|
||
|
|
bool ShouldReload();
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Resets the reload flag.
|
||
|
|
/// </summary>
|
||
|
|
void ResetReloadFlag();
|
||
|
|
}
|