DownloadOptions.h (3607B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #pragma once 4 #include "DownloadOptions.g.h" 5 #include "Public/ComClsids.h" 6 7 namespace winrt::Microsoft::Management::Deployment::implementation 8 { 9 [uuid(WINGET_OUTOFPROC_COM_CLSID_DownloadOptions)] 10 struct DownloadOptions : DownloadOptionsT<DownloadOptions> 11 { 12 DownloadOptions(); 13 14 winrt::Microsoft::Management::Deployment::PackageVersionId PackageVersionId(); 15 void PackageVersionId(winrt::Microsoft::Management::Deployment::PackageVersionId const& value); 16 winrt::Microsoft::Management::Deployment::PackageInstallScope Scope(); 17 void Scope(winrt::Microsoft::Management::Deployment::PackageInstallScope const& value); 18 winrt::Microsoft::Management::Deployment::PackageInstallerType InstallerType(); 19 void InstallerType(winrt::Microsoft::Management::Deployment::PackageInstallerType const& value); 20 winrt::Windows::System::ProcessorArchitecture Architecture(); 21 void Architecture(winrt::Windows::System::ProcessorArchitecture const& value); 22 hstring Locale(); 23 void Locale(hstring const& value); 24 hstring DownloadDirectory(); 25 void DownloadDirectory(hstring const& value); 26 bool AllowHashMismatch(); 27 void AllowHashMismatch(bool value); 28 bool SkipDependencies(); 29 void SkipDependencies(bool value); 30 bool AcceptPackageAgreements(); 31 void AcceptPackageAgreements(bool value); 32 hstring CorrelationData(); 33 void CorrelationData(hstring const& value); 34 winrt::Microsoft::Management::Deployment::AuthenticationArguments AuthenticationArguments(); 35 void AuthenticationArguments(winrt::Microsoft::Management::Deployment::AuthenticationArguments const& value); 36 bool SkipMicrosoftStoreLicense(); 37 void SkipMicrosoftStoreLicense(bool value); 38 winrt::Microsoft::Management::Deployment::WindowsPlatform Platform(); 39 void Platform(winrt::Microsoft::Management::Deployment::WindowsPlatform value); 40 hstring TargetOSVersion(); 41 void TargetOSVersion(hstring const& value); 42 43 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 44 private: 45 winrt::Microsoft::Management::Deployment::PackageVersionId m_packageVersionId{ nullptr }; 46 winrt::Microsoft::Management::Deployment::PackageInstallScope m_scope = winrt::Microsoft::Management::Deployment::PackageInstallScope::Any; 47 winrt::Microsoft::Management::Deployment::PackageInstallerType m_installerType = winrt::Microsoft::Management::Deployment::PackageInstallerType::Unknown; 48 winrt::Windows::System::ProcessorArchitecture m_architecture = winrt::Windows::System::ProcessorArchitecture::Unknown; 49 std::wstring m_locale = L""; 50 std::wstring m_downloadDirectory = L""; 51 bool m_allowHashMismatch = false; 52 bool m_skipDependencies = false; 53 bool m_acceptPackageAgreements = true; 54 std::wstring m_correlationData = L""; 55 winrt::Microsoft::Management::Deployment::AuthenticationArguments m_authenticationArguments{ nullptr }; 56 bool m_skipMicrosoftStoreLicense = false; 57 winrt::Microsoft::Management::Deployment::WindowsPlatform m_platform = winrt::Microsoft::Management::Deployment::WindowsPlatform::Unknown; 58 std::wstring m_targetOSVersion; 59 #endif 60 }; 61 } 62 63 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS) 64 namespace winrt::Microsoft::Management::Deployment::factory_implementation 65 { 66 struct DownloadOptions : DownloadOptionsT<DownloadOptions, implementation::DownloadOptions> 67 { 68 }; 69 } 70 #endif