| using Playnite.SDK.Models; |
| using Playnite.SDK.Models; |
| using System; |
| using System; |
| using System.Collections.Generic; |
| using System.Collections.Generic; |
| using System.Linq; |
| using System.Linq; |
| using System.Text; |
| using System.Text; |
| using System.Threading.Tasks; |
| using System.Threading.Tasks; |
| |
| |
| namespace Playnite.SDK |
| namespace Playnite.SDK |
| { |
| { |
| /// <summary> |
| /// <summary> |
. | |
| /// |
| |
| /// </summary> |
| |
| public enum DesktopView : int |
| |
| { |
| |
| /// <summary> |
| |
| /// |
| |
| /// </summary> |
| |
| Details = 0, |
| |
| /// <summary> |
| |
| /// |
| |
| /// </summary> |
| |
| Grid = 1, |
| |
| /// <summary> |
| |
| /// |
| |
| /// </summary> |
| |
| List = 2 |
| |
| } |
| |
| |
| |
| /// <summary> |
| /// Describes object providing API for main UI view. |
| /// Describes object providing API for main UI view. |
| /// </summary> |
| /// </summary> |
| public interface IMainViewAPI |
| public interface IMainViewAPI |
| { |
| { |
| /// <summary> |
| /// <summary> |
. | |
| /// Gets currently active Desktop mode view. |
| |
| /// </summary> |
| |
| DesktopView ActiveDesktopView { get; } |
| |
| |
| |
| /// <summary> |
| /// Gets list of currently selected games. |
| /// Gets list of currently selected games. |
| /// </summary> |
| /// </summary> |
| IEnumerable<Game> SelectedGames { get; } |
| IEnumerable<Game> SelectedGames { get; } |
| |
| |
| /// <summary> |
| /// <summary> |
. | |
| /// Gets list of games currently available in game list. |
| |
| /// </summary> |
| |
| List<Game> FilteredGames { get; } |
| |
| |
| |
| /// <summary> |
| /// Opens settings view for specified plugin. |
| /// Opens settings view for specified plugin. |
| /// </summary> |
| /// </summary> |
| /// <param name="pluginId">Plugin ID.</param> |
| /// <param name="pluginId">Plugin ID.</param> |
| /// <returns>True if user saved any changes, False if dialog was canceled.</returns> |
| /// <returns>True if user saved any changes, False if dialog was canceled.</returns> |
| bool OpenPluginSettings(Guid pluginId); |
| bool OpenPluginSettings(Guid pluginId); |
| |
| |
| /// <summary> |
| /// <summary> |
| /// Switches Playnite to Library view. |
| /// Switches Playnite to Library view. |
| /// </summary> |
| /// </summary> |
| void SwitchToLibraryView(); |
| void SwitchToLibraryView(); |
| |
| |
| /// <summary> |
| /// <summary> |
| /// Selects game. |
| /// Selects game. |
| /// </summary> |
| /// </summary> |
| /// <param name="gameId">Game's database ID.</param> |
| /// <param name="gameId">Game's database ID.</param> |
| void SelectGame(Guid gameId); |
| void SelectGame(Guid gameId); |
. | |
| |
| |
| /// <summary> |
| |
| /// Selects multiple games. |
| |
| /// </summary> |
| |
| /// <param name="gameIds">List of game IDs to select.</param> |
| |
| void SelectGames(IEnumerable<Guid> gameIds); |
| } |
| } |
| } |
| } |
| |
| |