master
h 41 lines 1.22 KB
Raw
1 /*++
2
3 Copyright (c) Microsoft. All rights reserved.
4
5 Module Name:
6
7 InstallOptions.h
8
9 Abstract:
10
11 This file contains the definition of the WinRT wrapper for the WSLC SDK InstallOptions class.
12
13 --*/
14
15 #pragma once
16 #include "Microsoft.WSL.Containers.InstallOptions.g.h"
17 #include "Helpers.h"
18
19 namespace winrt::Microsoft::WSL::Containers::implementation {
20 struct InstallOptions : InstallOptionsT<InstallOptions>
21 {
22 InstallOptions() = default;
23
24 winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::WSL::Containers::Component> Components();
25 void Components(winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::WSL::Containers::Component> value);
26 bool Repair();
27 void Repair(bool value);
28
29 private:
30 winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::WSL::Containers::Component> m_components = nullptr;
31 bool m_repair = false;
32 };
33 } // namespace winrt::Microsoft::WSL::Containers::implementation
34
35 namespace winrt::Microsoft::WSL::Containers::factory_implementation {
36 struct InstallOptions : InstallOptionsT<InstallOptions, implementation::InstallOptions>
37 {
38 };
39 } // namespace winrt::Microsoft::WSL::Containers::factory_implementation
40
41 DEFINE_TYPE_HELPERS(InstallOptions);