Latest update for winrt

PiperOrigin-RevId: 452591835
This commit is contained in:
jfcarroll
2022-06-02 12:05:19 -07:00
committed by Copybara-Service
parent 11558b453c
commit 28da839987
1366 changed files with 69568 additions and 70576 deletions
@@ -1,4 +1,4 @@
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.220531.1
#pragma once
#ifndef WINRT_Windows_System_Update_0_H
@@ -8,11 +8,6 @@ WINRT_EXPORT namespace winrt::Windows::Foundation
template <typename T> struct __declspec(empty_bases) EventHandler;
struct EventRegistrationToken;
struct HResult;
template <typename TResult> struct __declspec(empty_bases) IAsyncOperation;
}
WINRT_EXPORT namespace winrt::Windows::Foundation::Collections
{
template <typename T> struct __declspec(empty_bases) IVectorView;
}
WINRT_EXPORT namespace winrt::Windows::System::Update
{
@@ -146,14 +141,14 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_System_Update_ISystemUpdateItem
{
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::System::Update::SystemUpdateItemState) State() const;
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Title() const;
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Description() const;
[[nodiscard]] WINRT_IMPL_AUTO(hstring) Id() const;
[[nodiscard]] WINRT_IMPL_AUTO(uint32_t) Revision() const;
[[nodiscard]] WINRT_IMPL_AUTO(double) DownloadProgress() const;
[[nodiscard]] WINRT_IMPL_AUTO(double) InstallProgress() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::hresult) ExtendedError() const;
[[nodiscard]] auto State() const;
[[nodiscard]] auto Title() const;
[[nodiscard]] auto Description() const;
[[nodiscard]] auto Id() const;
[[nodiscard]] auto Revision() const;
[[nodiscard]] auto DownloadProgress() const;
[[nodiscard]] auto InstallProgress() const;
[[nodiscard]] auto ExtendedError() const;
};
template <> struct consume<winrt::Windows::System::Update::ISystemUpdateItem>
{
@@ -162,9 +157,9 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_System_Update_ISystemUpdateLastErrorInfo
{
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::System::Update::SystemUpdateManagerState) State() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::hresult) ExtendedError() const;
[[nodiscard]] WINRT_IMPL_AUTO(bool) IsInteractive() const;
[[nodiscard]] auto State() const;
[[nodiscard]] auto ExtendedError() const;
[[nodiscard]] auto IsInteractive() const;
};
template <> struct consume<winrt::Windows::System::Update::ISystemUpdateLastErrorInfo>
{
@@ -173,32 +168,32 @@ namespace winrt::impl
template <typename D>
struct consume_Windows_System_Update_ISystemUpdateManagerStatics
{
WINRT_IMPL_AUTO(bool) IsSupported() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::System::Update::SystemUpdateManagerState) State() const;
WINRT_IMPL_AUTO(winrt::event_token) StateChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler) const;
auto IsSupported() const;
[[nodiscard]] auto State() const;
auto StateChanged(winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler) const;
using StateChanged_revoker = impl::event_revoker<winrt::Windows::System::Update::ISystemUpdateManagerStatics, &impl::abi_t<winrt::Windows::System::Update::ISystemUpdateManagerStatics>::remove_StateChanged>;
[[nodiscard]] StateChanged_revoker StateChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler) const;
WINRT_IMPL_AUTO(void) StateChanged(winrt::event_token const& token) const noexcept;
[[nodiscard]] WINRT_IMPL_AUTO(double) DownloadProgress() const;
[[nodiscard]] WINRT_IMPL_AUTO(double) InstallProgress() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::TimeSpan) UserActiveHoursStart() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::TimeSpan) UserActiveHoursEnd() const;
[[nodiscard]] WINRT_IMPL_AUTO(int32_t) UserActiveHoursMax() const;
WINRT_IMPL_AUTO(bool) TrySetUserActiveHours(winrt::Windows::Foundation::TimeSpan const& start, winrt::Windows::Foundation::TimeSpan const& end) const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::DateTime) LastUpdateCheckTime() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::Foundation::DateTime) LastUpdateInstallTime() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::System::Update::SystemUpdateLastErrorInfo) LastErrorInfo() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IVectorView<hstring>) GetAutomaticRebootBlockIds() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) BlockAutomaticRebootAsync(param::hstring const& lockId) const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::IAsyncOperation<bool>) UnblockAutomaticRebootAsync(param::hstring const& lockId) const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::hresult) ExtendedError() const;
WINRT_IMPL_AUTO(winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::System::Update::SystemUpdateItem>) GetUpdateItems() const;
[[nodiscard]] WINRT_IMPL_AUTO(winrt::Windows::System::Update::SystemUpdateAttentionRequiredReason) AttentionRequiredReason() const;
WINRT_IMPL_AUTO(bool) SetFlightRing(param::hstring const& flightRing) const;
WINRT_IMPL_AUTO(hstring) GetFlightRing() const;
WINRT_IMPL_AUTO(void) StartInstall(winrt::Windows::System::Update::SystemUpdateStartInstallAction const& action) const;
WINRT_IMPL_AUTO(void) RebootToCompleteInstall() const;
WINRT_IMPL_AUTO(void) StartCancelUpdates() const;
[[nodiscard]] auto StateChanged(auto_revoke_t, winrt::Windows::Foundation::EventHandler<winrt::Windows::Foundation::IInspectable> const& handler) const;
auto StateChanged(winrt::event_token const& token) const noexcept;
[[nodiscard]] auto DownloadProgress() const;
[[nodiscard]] auto InstallProgress() const;
[[nodiscard]] auto UserActiveHoursStart() const;
[[nodiscard]] auto UserActiveHoursEnd() const;
[[nodiscard]] auto UserActiveHoursMax() const;
auto TrySetUserActiveHours(winrt::Windows::Foundation::TimeSpan const& start, winrt::Windows::Foundation::TimeSpan const& end) const;
[[nodiscard]] auto LastUpdateCheckTime() const;
[[nodiscard]] auto LastUpdateInstallTime() const;
[[nodiscard]] auto LastErrorInfo() const;
auto GetAutomaticRebootBlockIds() const;
auto BlockAutomaticRebootAsync(param::hstring const& lockId) const;
auto UnblockAutomaticRebootAsync(param::hstring const& lockId) const;
[[nodiscard]] auto ExtendedError() const;
auto GetUpdateItems() const;
[[nodiscard]] auto AttentionRequiredReason() const;
auto SetFlightRing(param::hstring const& flightRing) const;
auto GetFlightRing() const;
auto StartInstall(winrt::Windows::System::Update::SystemUpdateStartInstallAction const& action) const;
auto RebootToCompleteInstall() const;
auto StartCancelUpdates() const;
};
template <> struct consume<winrt::Windows::System::Update::ISystemUpdateManagerStatics>
{