winget-cli

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

FindPackagesOptions.cpp (1132B)


      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 "FindPackagesOptions.h"
     10 #pragma warning( pop )
     11 #include "FindPackagesOptions.g.cpp"
     12 #include "Helpers.h"
     13 
     14 namespace winrt::Microsoft::Management::Deployment::implementation
     15 {
     16     winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::PackageMatchFilter> FindPackagesOptions::Selectors()
     17     {
     18         return m_selectors;
     19     }
     20     winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::PackageMatchFilter> FindPackagesOptions::Filters()
     21     {
     22         return m_filters;
     23     }
     24     uint32_t FindPackagesOptions::ResultLimit()
     25     {
     26         return m_resultLimit;
     27     }
     28     void FindPackagesOptions::ResultLimit(uint32_t value)
     29     {
     30         m_resultLimit = value;
     31     }
     32 
     33     CoCreatableMicrosoftManagementDeploymentClass(FindPackagesOptions);
     34 }