// C++/WinRT v2.0.220110.5 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #pragma once #ifndef WINRT_Windows_ApplicationModel_Search_Core_0_H #define WINRT_Windows_ApplicationModel_Search_Core_0_H WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Search { struct LocalContentSuggestionSettings; struct SearchQueryLinguisticDetails; struct SearchSuggestionsRequest; } WINRT_EXPORT namespace winrt::Windows::Foundation { struct EventRegistrationToken; template struct __declspec(empty_bases) TypedEventHandler; } WINRT_EXPORT namespace winrt::Windows::Foundation::Collections { template struct __declspec(empty_bases) IObservableVector; } WINRT_EXPORT namespace winrt::Windows::Storage::Streams { struct IRandomAccessStreamReference; } WINRT_EXPORT namespace winrt::Windows::ApplicationModel::Search::Core { enum class SearchSuggestionKind : int32_t { Query = 0, Result = 1, Separator = 2, }; struct IRequestingFocusOnKeyboardInputEventArgs; struct ISearchSuggestion; struct ISearchSuggestionManager; struct ISearchSuggestionsRequestedEventArgs; struct RequestingFocusOnKeyboardInputEventArgs; struct SearchSuggestion; struct SearchSuggestionManager; struct SearchSuggestionsRequestedEventArgs; } namespace winrt::impl { template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = interface_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = class_category; }; template <> struct category{ using type = enum_category; }; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Search.Core.RequestingFocusOnKeyboardInputEventArgs"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Search.Core.SearchSuggestion"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Search.Core.SearchSuggestionManager"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Search.Core.SearchSuggestionsRequestedEventArgs"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Search.Core.SearchSuggestionKind"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Search.Core.IRequestingFocusOnKeyboardInputEventArgs"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Search.Core.ISearchSuggestion"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Search.Core.ISearchSuggestionManager"; template <> inline constexpr auto& name_v = L"Windows.ApplicationModel.Search.Core.ISearchSuggestionsRequestedEventArgs"; template <> inline constexpr guid guid_v{ 0xA1195F27,0xB1A7,0x41A2,{ 0x87,0x9D,0x6A,0x68,0x68,0x7E,0x59,0x85 } }; // A1195F27-B1A7-41A2-879D-6A68687E5985 template <> inline constexpr guid guid_v{ 0x5B5554B0,0x1527,0x437B,{ 0x95,0xC5,0x8D,0x18,0xD2,0xB8,0xAF,0x55 } }; // 5B5554B0-1527-437B-95C5-8D18D2B8AF55 template <> inline constexpr guid guid_v{ 0x3F0C50A1,0xCB9D,0x497B,{ 0xB5,0x00,0x3C,0x04,0xAC,0x95,0x9A,0xD2 } }; // 3F0C50A1-CB9D-497B-B500-3C04AC959AD2 template <> inline constexpr guid guid_v{ 0x6FD519E5,0x9E7E,0x4AB4,{ 0x8B,0xE3,0xC7,0x6B,0x1B,0xD4,0x34,0x4A } }; // 6FD519E5-9E7E-4AB4-8BE3-C76B1BD4344A template <> struct default_interface{ using type = winrt::Windows::ApplicationModel::Search::Core::IRequestingFocusOnKeyboardInputEventArgs; }; template <> struct default_interface{ using type = winrt::Windows::ApplicationModel::Search::Core::ISearchSuggestion; }; template <> struct default_interface{ using type = winrt::Windows::ApplicationModel::Search::Core::ISearchSuggestionManager; }; template <> struct default_interface{ using type = winrt::Windows::ApplicationModel::Search::Core::ISearchSuggestionsRequestedEventArgs; }; template <> struct abi { struct __declspec(novtable) type : inspectable_abi { }; }; template <> struct abi { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Kind(int32_t*) noexcept = 0; virtual int32_t __stdcall get_Text(void**) noexcept = 0; virtual int32_t __stdcall get_Tag(void**) noexcept = 0; virtual int32_t __stdcall get_DetailText(void**) noexcept = 0; virtual int32_t __stdcall get_Image(void**) noexcept = 0; virtual int32_t __stdcall get_ImageAlternateText(void**) noexcept = 0; }; }; template <> struct abi { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_SearchHistoryEnabled(bool*) noexcept = 0; virtual int32_t __stdcall put_SearchHistoryEnabled(bool) noexcept = 0; virtual int32_t __stdcall get_SearchHistoryContext(void**) noexcept = 0; virtual int32_t __stdcall put_SearchHistoryContext(void*) noexcept = 0; virtual int32_t __stdcall SetLocalContentSuggestionSettings(void*) noexcept = 0; virtual int32_t __stdcall SetQuery(void*) noexcept = 0; virtual int32_t __stdcall SetQueryWithLanguage(void*, void*) noexcept = 0; virtual int32_t __stdcall SetQueryWithSearchQueryLinguisticDetails(void*, void*, void*) noexcept = 0; virtual int32_t __stdcall get_Suggestions(void**) noexcept = 0; virtual int32_t __stdcall AddToHistory(void*) noexcept = 0; virtual int32_t __stdcall AddToHistoryWithLanguage(void*, void*) noexcept = 0; virtual int32_t __stdcall ClearHistory() noexcept = 0; virtual int32_t __stdcall add_SuggestionsRequested(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_SuggestionsRequested(winrt::event_token) noexcept = 0; virtual int32_t __stdcall add_RequestingFocusOnKeyboardInput(void*, winrt::event_token*) noexcept = 0; virtual int32_t __stdcall remove_RequestingFocusOnKeyboardInput(winrt::event_token) noexcept = 0; }; }; template <> struct abi { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_QueryText(void**) noexcept = 0; virtual int32_t __stdcall get_Language(void**) noexcept = 0; virtual int32_t __stdcall get_LinguisticDetails(void**) noexcept = 0; virtual int32_t __stdcall get_Request(void**) noexcept = 0; }; }; template struct consume_Windows_ApplicationModel_Search_Core_IRequestingFocusOnKeyboardInputEventArgs { }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Search_Core_IRequestingFocusOnKeyboardInputEventArgs; }; template struct consume_Windows_ApplicationModel_Search_Core_ISearchSuggestion { [[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::ApplicationModel::Search::Core::SearchSuggestionKind) Kind() const; [[nodiscard]] WINRT_IMPL_AUTO(hstring) Text() const; [[nodiscard]] WINRT_IMPL_AUTO(hstring) Tag() const; [[nodiscard]] WINRT_IMPL_AUTO(hstring) DetailText() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Storage::Streams::IRandomAccessStreamReference) Image() const; [[nodiscard]] WINRT_IMPL_AUTO(hstring) ImageAlternateText() const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Search_Core_ISearchSuggestion; }; template struct consume_Windows_ApplicationModel_Search_Core_ISearchSuggestionManager { [[nodiscard]] WINRT_IMPL_AUTO(bool) SearchHistoryEnabled() const; WINRT_IMPL_AUTO(void) SearchHistoryEnabled(bool value) const; [[nodiscard]] WINRT_IMPL_AUTO(hstring) SearchHistoryContext() const; WINRT_IMPL_AUTO(void) SearchHistoryContext(param::hstring const& value) const; WINRT_IMPL_AUTO(void) SetLocalContentSuggestionSettings(winrt::Windows::ApplicationModel::Search::LocalContentSuggestionSettings const& settings) const; WINRT_IMPL_AUTO(void) SetQuery(param::hstring const& queryText) const; WINRT_IMPL_AUTO(void) SetQuery(param::hstring const& queryText, param::hstring const& language) const; WINRT_IMPL_AUTO(void) SetQuery(param::hstring const& queryText, param::hstring const& language, winrt::Windows::ApplicationModel::Search::SearchQueryLinguisticDetails const& linguisticDetails) const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IObservableVector) Suggestions() const; WINRT_IMPL_AUTO(void) AddToHistory(param::hstring const& queryText) const; WINRT_IMPL_AUTO(void) AddToHistory(param::hstring const& queryText, param::hstring const& language) const; WINRT_IMPL_AUTO(void) ClearHistory() const; WINRT_IMPL_AUTO(winrt::event_token) SuggestionsRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using SuggestionsRequested_revoker = impl::event_revoker::remove_SuggestionsRequested>; [[nodiscard]] SuggestionsRequested_revoker SuggestionsRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; WINRT_IMPL_AUTO(void) SuggestionsRequested(winrt::event_token const& token) const noexcept; WINRT_IMPL_AUTO(winrt::event_token) RequestingFocusOnKeyboardInput(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using RequestingFocusOnKeyboardInput_revoker = impl::event_revoker::remove_RequestingFocusOnKeyboardInput>; [[nodiscard]] RequestingFocusOnKeyboardInput_revoker RequestingFocusOnKeyboardInput(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; WINRT_IMPL_AUTO(void) RequestingFocusOnKeyboardInput(winrt::event_token const& token) const noexcept; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Search_Core_ISearchSuggestionManager; }; template struct consume_Windows_ApplicationModel_Search_Core_ISearchSuggestionsRequestedEventArgs { [[nodiscard]] WINRT_IMPL_AUTO(hstring) QueryText() const; [[nodiscard]] WINRT_IMPL_AUTO(hstring) Language() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::ApplicationModel::Search::SearchQueryLinguisticDetails) LinguisticDetails() const; [[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::ApplicationModel::Search::SearchSuggestionsRequest) Request() const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Search_Core_ISearchSuggestionsRequestedEventArgs; }; } #endif