2021-04-28 12:43:30 +02:00
|
|
|
/*++
|
|
|
|
Copyright (c) Microsoft Corporation
|
|
|
|
Licensed under the MIT license.
|
|
|
|
|
|
|
|
Module Name:
|
|
|
|
- DefaultTerminal.h
|
|
|
|
|
|
|
|
Abstract:
|
|
|
|
- A Default Terminal is an application that can register
|
|
|
|
as the handler window or "terminal" for a command-line
|
|
|
|
application. This class is the model for presenting
|
|
|
|
handler options in the Windows Terminal Settings UI.
|
|
|
|
|
|
|
|
Author(s):
|
|
|
|
- Michael Niksa <miniksa> - 20-Apr-2021
|
|
|
|
|
|
|
|
--*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "DefaultTerminal.g.h"
|
|
|
|
|
|
|
|
#include "../../propslib/DelegationConfig.hpp"
|
|
|
|
|
|
|
|
namespace winrt::Microsoft::Terminal::Settings::Model::implementation
|
|
|
|
{
|
|
|
|
struct DefaultTerminal : public DefaultTerminalT<DefaultTerminal>
|
|
|
|
{
|
2021-10-06 18:58:09 +02:00
|
|
|
explicit DefaultTerminal(DelegationConfig::DelegationPackage&& pkg);
|
2021-04-28 12:43:30 +02:00
|
|
|
|
|
|
|
hstring Name() const;
|
|
|
|
hstring Author() const;
|
|
|
|
hstring Version() const;
|
|
|
|
hstring Icon() const;
|
|
|
|
|
2021-10-06 18:58:09 +02:00
|
|
|
static std::pair<std::vector<Model::DefaultTerminal>, Model::DefaultTerminal> Available();
|
2021-10-07 19:44:03 +02:00
|
|
|
static bool HasCurrent();
|
2021-04-28 12:43:30 +02:00
|
|
|
static void Current(const Model::DefaultTerminal& term);
|
|
|
|
|
|
|
|
private:
|
|
|
|
DelegationConfig::DelegationPackage _pkg;
|
|
|
|
};
|
|
|
|
}
|