InstalledStatus.h (945B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include "InstalledStatus.g.h" 5 #include <winget/RepositorySearch.h> 6 #include <winget/InstalledStatus.h> 7 8 namespace winrt::Microsoft::Management::Deployment::implementation 9 { 10 struct InstalledStatus : InstalledStatusT<InstalledStatus> 11 { 12 InstalledStatus() = default; 13 14 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 15 void Initialize(const ::AppInstaller::Repository::InstalledStatus& installedStatus); 16 #endif 17 18 winrt::Microsoft::Management::Deployment::InstalledStatusType Type(); 19 hstring Path(); 20 winrt::hresult Status(); 21 22 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 23 private: 24 winrt::Microsoft::Management::Deployment::InstalledStatusType m_type = winrt::Microsoft::Management::Deployment::InstalledStatusType::None; 25 hstring m_path; 26 winrt::hresult m_status = S_OK; 27 #endif 28 }; 29 }