winget-cli

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

ConfigurationUnitResultInformation.h (1577B)


      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 ConfigurationUnitResultInformation : winrt::implements<ConfigurationUnitResultInformation, IConfigurationUnitResultInformation>
      9     {
     10         ConfigurationUnitResultInformation() = default;
     11 
     12 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     13         void Initialize(const Configuration::IConfigurationUnitResultInformation& other);
     14         void Initialize(hresult resultCode, std::wstring_view description);
     15         void Initialize(hresult resultCode, hstring description);
     16         void Initialize(hresult resultCode, ConfigurationUnitResultSource resultSource);
     17         void Initialize(hresult resultCode, std::wstring_view description, std::wstring_view details, ConfigurationUnitResultSource resultSource);
     18 #endif
     19 
     20         hresult ResultCode() const;
     21         void ResultCode(hresult resultCode);
     22 
     23         hstring Description();
     24         void Description(hstring value);
     25 
     26         hstring Details();
     27         void Details(hstring value);
     28 
     29         ConfigurationUnitResultSource ResultSource() const;
     30         void ResultSource(ConfigurationUnitResultSource value);
     31 
     32 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     33     private:
     34         hresult m_resultCode;
     35         hstring m_description;
     36         hstring m_details;
     37         ConfigurationUnitResultSource m_resultSource = ConfigurationUnitResultSource::None;
     38 #endif
     39     };
     40 }