DownloadOptions.cpp (4095B)
1 // Copyright (c) Microsoft Corporation. 2 // Licensed under the MIT License. 3 #include "pch.h" 4 #pragma warning( push ) 5 #pragma warning ( disable : 4467 6388) 6 // 6388 Allow CreateInstance. 7 #include <wil\cppwinrt_wrl.h> 8 // 4467 Allow use of uuid attribute for com object creation. 9 #include "DownloadOptions.h" 10 #pragma warning( pop ) 11 #include "DownloadOptions.g.cpp" 12 #include "Helpers.h" 13 14 #include <AppInstallerArchitecture.h> 15 16 namespace winrt::Microsoft::Management::Deployment::implementation 17 { 18 DownloadOptions::DownloadOptions() 19 { 20 } 21 winrt::Microsoft::Management::Deployment::PackageVersionId DownloadOptions::PackageVersionId() 22 { 23 return m_packageVersionId; 24 } 25 void DownloadOptions::PackageVersionId(winrt::Microsoft::Management::Deployment::PackageVersionId const& value) 26 { 27 m_packageVersionId = value; 28 } 29 winrt::Microsoft::Management::Deployment::PackageInstallScope DownloadOptions::Scope() 30 { 31 return m_scope; 32 } 33 void DownloadOptions::Scope(winrt::Microsoft::Management::Deployment::PackageInstallScope const& value) 34 { 35 m_scope = value; 36 } 37 winrt::Microsoft::Management::Deployment::PackageInstallerType DownloadOptions::InstallerType() 38 { 39 return m_installerType; 40 } 41 void DownloadOptions::InstallerType(winrt::Microsoft::Management::Deployment::PackageInstallerType const& value) 42 { 43 m_installerType = value; 44 } 45 winrt::Windows::System::ProcessorArchitecture DownloadOptions::Architecture() 46 { 47 return m_architecture; 48 } 49 void DownloadOptions::Architecture(winrt::Windows::System::ProcessorArchitecture const& value) 50 { 51 m_architecture = value; 52 } 53 hstring DownloadOptions::Locale() 54 { 55 return hstring(m_locale); 56 } 57 void DownloadOptions::Locale(hstring const& value) 58 { 59 m_locale = value; 60 } 61 hstring DownloadOptions::DownloadDirectory() 62 { 63 return hstring(m_downloadDirectory); 64 } 65 void DownloadOptions::DownloadDirectory(hstring const& value) 66 { 67 m_downloadDirectory = value; 68 } 69 bool DownloadOptions::AllowHashMismatch() 70 { 71 return m_allowHashMismatch; 72 } 73 void DownloadOptions::AllowHashMismatch(bool value) 74 { 75 m_allowHashMismatch = value; 76 } 77 bool DownloadOptions::SkipDependencies() 78 { 79 return m_skipDependencies; 80 } 81 void DownloadOptions::SkipDependencies(bool value) 82 { 83 m_skipDependencies = value; 84 } 85 bool DownloadOptions::AcceptPackageAgreements() 86 { 87 return m_acceptPackageAgreements; 88 } 89 void DownloadOptions::AcceptPackageAgreements(bool value) 90 { 91 m_acceptPackageAgreements = value; 92 } 93 hstring DownloadOptions::CorrelationData() 94 { 95 return hstring(m_correlationData); 96 } 97 void DownloadOptions::CorrelationData(hstring const& value) 98 { 99 m_correlationData = value; 100 } 101 winrt::Microsoft::Management::Deployment::AuthenticationArguments DownloadOptions::AuthenticationArguments() 102 { 103 return m_authenticationArguments; 104 } 105 void DownloadOptions::AuthenticationArguments(winrt::Microsoft::Management::Deployment::AuthenticationArguments const& value) 106 { 107 m_authenticationArguments = value; 108 } 109 110 bool DownloadOptions::SkipMicrosoftStoreLicense() 111 { 112 return m_skipMicrosoftStoreLicense; 113 } 114 115 void DownloadOptions::SkipMicrosoftStoreLicense(bool value) 116 { 117 m_skipMicrosoftStoreLicense = value; 118 } 119 120 winrt::Microsoft::Management::Deployment::WindowsPlatform DownloadOptions::Platform() 121 { 122 return m_platform; 123 } 124 125 void DownloadOptions::Platform(winrt::Microsoft::Management::Deployment::WindowsPlatform value) 126 { 127 m_platform = value; 128 } 129 130 hstring DownloadOptions::TargetOSVersion() 131 { 132 return hstring(m_targetOSVersion); 133 } 134 135 void DownloadOptions::TargetOSVersion(hstring const& value) 136 { 137 m_targetOSVersion = value; 138 } 139 140 CoCreatableMicrosoftManagementDeploymentClass(DownloadOptions); 141 }