// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #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 WINRT_IMPL_EMPTY_BASES TypedEventHandler; } 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; struct SearchCoreContract; } 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 auto& name_v = L"Windows.ApplicationModel.Search.Core.SearchCoreContract"; 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 WINRT_IMPL_NOVTABLE type : inspectable_abi { }; }; template <> struct abi { struct WINRT_IMPL_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 WINRT_IMPL_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 WINRT_IMPL_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]] auto Kind() const; [[nodiscard]] auto Text() const; [[nodiscard]] auto Tag() const; [[nodiscard]] auto DetailText() const; [[nodiscard]] auto Image() const; [[nodiscard]] auto ImageAlternateText() const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Search_Core_ISearchSuggestion; }; template struct consume_Windows_ApplicationModel_Search_Core_ISearchSuggestionManager { [[nodiscard]] auto SearchHistoryEnabled() const; auto SearchHistoryEnabled(bool value) const; [[nodiscard]] auto SearchHistoryContext() const; auto SearchHistoryContext(param::hstring const& value) const; auto SetLocalContentSuggestionSettings(winrt::Windows::ApplicationModel::Search::LocalContentSuggestionSettings const& settings) const; auto SetQuery(param::hstring const& queryText) const; auto SetQuery(param::hstring const& queryText, param::hstring const& language) const; auto SetQuery(param::hstring const& queryText, param::hstring const& language, winrt::Windows::ApplicationModel::Search::SearchQueryLinguisticDetails const& linguisticDetails) const; [[nodiscard]] auto Suggestions() const; auto AddToHistory(param::hstring const& queryText) const; auto AddToHistory(param::hstring const& queryText, param::hstring const& language) const; auto ClearHistory() const; auto SuggestionsRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using SuggestionsRequested_revoker = impl::event_revoker::remove_SuggestionsRequested>; [[nodiscard]] auto SuggestionsRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto SuggestionsRequested(winrt::event_token const& token) const noexcept; auto RequestingFocusOnKeyboardInput(winrt::Windows::Foundation::TypedEventHandler const& handler) const; using RequestingFocusOnKeyboardInput_revoker = impl::event_revoker::remove_RequestingFocusOnKeyboardInput>; [[nodiscard]] auto RequestingFocusOnKeyboardInput(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const; auto 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]] auto QueryText() const; [[nodiscard]] auto Language() const; [[nodiscard]] auto LinguisticDetails() const; [[nodiscard]] auto Request() const; }; template <> struct consume { template using type = consume_Windows_ApplicationModel_Search_Core_ISearchSuggestionsRequestedEventArgs; }; } #endif