winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

TestSettingsResult.h (1105B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include "winrt/Microsoft.Management.Configuration.h"
      5 
      6 namespace winrt::Microsoft::Management::Configuration::implementation
      7 {
      8     struct TestSettingsResult : winrt::implements<TestSettingsResult, ITestSettingsResult>
      9     {
     10         using ConfigurationUnit = Configuration::ConfigurationUnit;
     11 
     12         TestSettingsResult() = default;
     13 
     14 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     15         void Unit(const ConfigurationUnit& value);
     16         void TestResult(ConfigurationTestResult value);
     17         void ResultInformation(const IConfigurationUnitResultInformation& value);
     18 #endif
     19 
     20         ConfigurationUnit Unit();
     21         ConfigurationTestResult TestResult();
     22         IConfigurationUnitResultInformation ResultInformation();
     23 
     24 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     25     private:
     26         ConfigurationUnit m_unit = nullptr;
     27         ConfigurationTestResult m_testResult = ConfigurationTestResult::Unknown;
     28         IConfigurationUnitResultInformation m_resultInformation;
     29 #endif
     30     };
     31 }