winget-cli

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

FindPackagesOptions.h (1600B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include "FindPackagesOptions.g.h"
      5 #include "Public/ComClsids.h"
      6 
      7 namespace winrt::Microsoft::Management::Deployment::implementation
      8 {
      9     [uuid(WINGET_OUTOFPROC_COM_CLSID_FindPackagesOptions)]
     10     struct FindPackagesOptions : FindPackagesOptionsT<FindPackagesOptions>
     11     {
     12         FindPackagesOptions() = default;
     13 
     14         winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::PackageMatchFilter> Selectors();
     15         winrt::Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::PackageMatchFilter> Filters();
     16         uint32_t ResultLimit();
     17         void ResultLimit(uint32_t value);
     18 
     19 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     20     private:
     21         uint32_t m_resultLimit = 0;
     22         Windows::Foundation::Collections::IVector<Microsoft::Management::Deployment::PackageMatchFilter> m_selectors{ 
     23             winrt::single_threaded_vector<winrt::Microsoft::Management::Deployment::PackageMatchFilter>() };
     24         Windows::Foundation::Collections::IVector<Microsoft::Management::Deployment::PackageMatchFilter> m_filters{ 
     25             winrt::single_threaded_vector<winrt::Microsoft::Management::Deployment::PackageMatchFilter>() };
     26 #endif
     27     };
     28 }
     29 
     30 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     31 namespace winrt::Microsoft::Management::Deployment::factory_implementation
     32 {
     33     struct FindPackagesOptions : FindPackagesOptionsT<FindPackagesOptions, implementation::FindPackagesOptions>
     34     {
     35     };
     36 }
     37 #endif