winget-cli

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

InstalledStatus.cpp (839B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #include "pch.h"
      4 #include "InstalledStatus.h"
      5 #include "InstalledStatus.g.cpp"
      6 
      7 namespace winrt::Microsoft::Management::Deployment::implementation
      8 {
      9     void InstalledStatus::Initialize(const ::AppInstaller::Repository::InstalledStatus& installedStatus)
     10     {
     11         m_type = static_cast<Microsoft::Management::Deployment::InstalledStatusType>(installedStatus.Type);
     12         m_path = winrt::to_hstring(installedStatus.Path);
     13         m_status = installedStatus.Status;
     14     }
     15     winrt::Microsoft::Management::Deployment::InstalledStatusType InstalledStatus::Type()
     16     {
     17         return m_type;
     18     }
     19     hstring InstalledStatus::Path()
     20     {
     21         return m_path;
     22     }
     23     winrt::hresult InstalledStatus::Status()
     24     {
     25         return m_status;
     26     }
     27 }