forked from microsoft/winget-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigurationContext.h
More file actions
50 lines (40 loc) · 1.71 KB
/
Copy pathConfigurationContext.h
File metadata and controls
50 lines (40 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include <memory>
#include <vector>
namespace winrt::Microsoft::Management::Configuration
{
struct ConfigurationProcessor;
struct ConfigurationSet;
}
namespace AppInstaller::CLI::Execution
{
namespace details
{
struct ConfigurationContextData;
}
struct ConfigurationContext
{
using ConfigurationSet = winrt::Microsoft::Management::Configuration::ConfigurationSet;
ConfigurationContext();
~ConfigurationContext();
ConfigurationContext(ConfigurationContext&) = delete;
ConfigurationContext& operator=(ConfigurationContext&) = delete;
ConfigurationContext(ConfigurationContext&&);
ConfigurationContext& operator=(ConfigurationContext&&);
winrt::Microsoft::Management::Configuration::ConfigurationProcessor& Processor();
const winrt::Microsoft::Management::Configuration::ConfigurationProcessor& Processor() const;
void Processor(const winrt::Microsoft::Management::Configuration::ConfigurationProcessor& value);
void Processor(winrt::Microsoft::Management::Configuration::ConfigurationProcessor&& value);
ConfigurationSet& Set();
const ConfigurationSet& Set() const;
void Set(const ConfigurationSet& value);
void Set(ConfigurationSet&& value);
std::vector<ConfigurationSet>& History();
const std::vector<ConfigurationSet>& History() const;
void History(const winrt::Windows::Foundation::Collections::IVector<ConfigurationSet>& value);
private:
std::unique_ptr<details::ConfigurationContextData> m_data;
};
}