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
24 lines
866 B
C++
24 lines
866 B
C++
/*++
|
|
Copyright (c) Microsoft Corporation
|
|
Licensed under the MIT license.
|
|
|
|
Abstract:
|
|
- This header stores our default namespace guid. This is used in the creation of
|
|
default and in-box dynamic profiles. It also provides a helper function for
|
|
creating a "default" profile. Prior to GH#754, this was used to create the
|
|
cmd, powershell, wsl, pwsh, and azure profiles. Now, this helper is used for
|
|
any of the in-box dynamic profile generators.
|
|
|
|
Author(s):
|
|
- Mike Griese - August 2019
|
|
-- */
|
|
#pragma once
|
|
|
|
#include "Profile.h"
|
|
|
|
// {2bde4a90-d05f-401c-9492-e40884ead1d8}
|
|
// uuidv5 properties: name format is UTF-16LE bytes
|
|
static constexpr GUID TERMINAL_PROFILE_NAMESPACE_GUID = { 0x2bde4a90, 0xd05f, 0x401c, { 0x94, 0x92, 0xe4, 0x8, 0x84, 0xea, 0xd1, 0xd8 } };
|
|
|
|
winrt::TerminalApp::Profile CreateDefaultProfile(const std::wstring_view name);
|