winget-cli

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

AddPackageCatalogOptions.h (1721B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include "AddPackageCatalogOptions.g.h"
      5 #include "public/ComClsids.h"
      6 
      7 namespace winrt::Microsoft::Management::Deployment::implementation
      8 {
      9     [uuid(WINGET_OUTOFPROC_COM_CLSID_AddPackageCatalogOptions)]
     10     struct AddPackageCatalogOptions : AddPackageCatalogOptionsT<AddPackageCatalogOptions>
     11     {
     12         AddPackageCatalogOptions() = default;
     13 
     14         hstring Name();
     15         void Name(hstring const& value);
     16 
     17         hstring SourceUri();
     18         void SourceUri(hstring const& value);
     19 
     20         hstring Type();
     21         void Type(hstring const& value);
     22 
     23         winrt::Microsoft::Management::Deployment::PackageCatalogTrustLevel TrustLevel();
     24         void TrustLevel(winrt::Microsoft::Management::Deployment::PackageCatalogTrustLevel const& value);
     25 
     26         hstring CustomHeader();
     27         void CustomHeader(hstring const& value);
     28 
     29         bool Explicit();
     30         void Explicit(bool const& value);
     31 
     32 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     33     private:
     34         hstring m_name = L"";
     35         hstring m_sourceUri = L"";
     36         hstring m_type = L"";
     37         winrt::Microsoft::Management::Deployment::PackageCatalogTrustLevel m_trustLevel = winrt::Microsoft::Management::Deployment::PackageCatalogTrustLevel::None;
     38         hstring m_customHeader = L"";
     39         bool m_explicit = false;
     40 #endif
     41     };
     42 }
     43 
     44 #if !defined(INCLUDE_ONLY_INTERFACE_METHODS)
     45 namespace winrt::Microsoft::Management::Deployment::factory_implementation
     46 {
     47     struct AddPackageCatalogOptions : AddPackageCatalogOptionsT<AddPackageCatalogOptions, implementation::AddPackageCatalogOptions>
     48     {
     49     };
     50 }
     51 #endif