a51091c615
Profile is now a WinRT object in the TerminalApp project. As with ColorScheme, all of the serialization logic is not exposed via the idl. TerminalSetingsModel will handle it when it's all moved over. I removed the "Get" and "Set" prefixes from all of the Profile functions. It just makes more sense to use the `GETSET_PROPERTY` macro to do most of the work for us. `CloseOnExitMode` is now an enum off of the Profile.idl. `std::optional<wstring>` got converted to `hstring` (as opposed to `IReference<hstring>`). `IReference<hstring>` is not valid to MIDL. ## References #7141 - Profile is a settings object #885 - this new settings object will be moved to a new TerminalSettingsModel project ## Validation Steps Performed - [x] Tests passed - [x] Deployment succeeded Closes #7435
31 lines
715 B
C++
31 lines
715 B
C++
/*++
|
|
Copyright (c) Microsoft Corporation
|
|
Licensed under the MIT license.
|
|
|
|
Module Name:
|
|
- WslDistroGenerator
|
|
|
|
Abstract:
|
|
- This is the dynamic profile generator for WSL distros. Enumerates all the
|
|
installed WSL distros to create profiles for them.
|
|
|
|
Author(s):
|
|
- Mike Griese - August 2019
|
|
|
|
--*/
|
|
|
|
#pragma once
|
|
#include "IDynamicProfileGenerator.h"
|
|
|
|
namespace TerminalApp
|
|
{
|
|
class WslDistroGenerator : public TerminalApp::IDynamicProfileGenerator
|
|
{
|
|
public:
|
|
WslDistroGenerator() = default;
|
|
~WslDistroGenerator() = default;
|
|
std::wstring_view GetNamespace() override;
|
|
std::vector<winrt::TerminalApp::Profile> GenerateProfiles() override;
|
|
};
|
|
};
|