PackageInstallerInstalledStatus.h (1322B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include "PackageInstallerInstalledStatus.g.h" 5 #include <winget/RepositorySearch.h> 6 #include <winget/InstalledStatus.h> 7 #include <winrt/Windows.Foundation.Collections.h> 8 9 namespace winrt::Microsoft::Management::Deployment::implementation 10 { 11 struct PackageInstallerInstalledStatus : PackageInstallerInstalledStatusT<PackageInstallerInstalledStatus> 12 { 13 PackageInstallerInstalledStatus() = default; 14 15 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 16 void Initialize(const ::AppInstaller::Repository::InstallerInstalledStatus& installerInstalledStatus); 17 #endif 18 19 winrt::Microsoft::Management::Deployment::PackageInstallerInfo InstallerInfo(); 20 winrt::Windows::Foundation::Collections::IVectorView<winrt::Microsoft::Management::Deployment::InstalledStatus> InstallerInstalledStatus(); 21 22 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 23 private: 24 winrt::Microsoft::Management::Deployment::PackageInstallerInfo m_installerInfo{ nullptr }; 25 winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::InstalledStatus> m_installedStatus{ 26 winrt::single_threaded_vector<winrt::Microsoft::Management::Deployment::InstalledStatus>() }; 27 #endif 28 }; 29 }