winget-cli

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

ApplyGroupSettingsResult.cpp (1430B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #include "pch.h"
      4 #include "ApplyGroupSettingsResult.h"
      5 
      6 namespace winrt::Microsoft::Management::Configuration::implementation
      7 {
      8     ApplyGroupSettingsResult::ApplyGroupSettingsResult() :
      9         m_resultInformation(make_self<wil::details::module_count_wrapper<implementation::ConfigurationUnitResultInformation>>()),
     10         m_unitResults(winrt::multi_threaded_vector<IApplyGroupMemberSettingsResult>())
     11     {}
     12 
     13     void ApplyGroupSettingsResult::Group(const Windows::Foundation::IInspectable& value)
     14     {
     15         m_group = value;
     16     }
     17 
     18     void ApplyGroupSettingsResult::RebootRequired(bool value)
     19     {
     20         m_rebootRequired = value;
     21     }
     22 
     23     ApplyGroupSettingsResult::ResultInformationPtr ApplyGroupSettingsResult::ResultInformationInternal()
     24     {
     25         return m_resultInformation;
     26     }
     27 
     28     Windows::Foundation::IInspectable ApplyGroupSettingsResult::Group()
     29     {
     30         return m_group;
     31     }
     32 
     33     bool ApplyGroupSettingsResult::RebootRequired()
     34     {
     35         return m_rebootRequired;
     36     }
     37 
     38     IConfigurationUnitResultInformation ApplyGroupSettingsResult::ResultInformation()
     39     {
     40         return *m_resultInformation;
     41     }
     42 
     43     Windows::Foundation::Collections::IVector<IApplyGroupMemberSettingsResult> ApplyGroupSettingsResult::UnitResults()
     44     {
     45         return m_unitResults;
     46     }
     47 }