// C++/WinRT v2.0.200609.3 // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #ifndef WINRT_Windows_Networking_PushNotifications_2_H #define WINRT_Windows_Networking_PushNotifications_2_H #include "winrt/impl/Windows.Foundation.1.h" #include "winrt/impl/Windows.System.1.h" #include "winrt/impl/Windows.Networking.PushNotifications.1.h" WINRT_EXPORT namespace winrt::Windows::Networking::PushNotifications { struct __declspec(empty_bases) PushNotificationChannel : Windows::Networking::PushNotifications::IPushNotificationChannel { PushNotificationChannel(std::nullptr_t) noexcept {} PushNotificationChannel(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Networking::PushNotifications::IPushNotificationChannel(ptr, take_ownership_from_abi) {} }; struct PushNotificationChannelManager { PushNotificationChannelManager() = delete; static auto CreatePushNotificationChannelForApplicationAsync(); static auto CreatePushNotificationChannelForApplicationAsync(param::hstring const& applicationId); static auto CreatePushNotificationChannelForSecondaryTileAsync(param::hstring const& tileId); static auto GetForUser(Windows::System::User const& user); static auto GetDefault(); static auto ChannelsRevoked(Windows::Foundation::EventHandler const& handler); using ChannelsRevoked_revoker = impl::factory_event_revoker::remove_ChannelsRevoked>; [[nodiscard]] static ChannelsRevoked_revoker ChannelsRevoked(auto_revoke_t, Windows::Foundation::EventHandler const& handler); static auto ChannelsRevoked(winrt::event_token const& token); }; struct __declspec(empty_bases) PushNotificationChannelManagerForUser : Windows::Networking::PushNotifications::IPushNotificationChannelManagerForUser, impl::require { PushNotificationChannelManagerForUser(std::nullptr_t) noexcept {} PushNotificationChannelManagerForUser(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Networking::PushNotifications::IPushNotificationChannelManagerForUser(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) PushNotificationChannelsRevokedEventArgs : Windows::Networking::PushNotifications::IPushNotificationChannelsRevokedEventArgs { PushNotificationChannelsRevokedEventArgs(std::nullptr_t) noexcept {} PushNotificationChannelsRevokedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Networking::PushNotifications::IPushNotificationChannelsRevokedEventArgs(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) PushNotificationReceivedEventArgs : Windows::Networking::PushNotifications::IPushNotificationReceivedEventArgs { PushNotificationReceivedEventArgs(std::nullptr_t) noexcept {} PushNotificationReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Networking::PushNotifications::IPushNotificationReceivedEventArgs(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) RawNotification : Windows::Networking::PushNotifications::IRawNotification, impl::require { RawNotification(std::nullptr_t) noexcept {} RawNotification(void* ptr, take_ownership_from_abi_t) noexcept : Windows::Networking::PushNotifications::IRawNotification(ptr, take_ownership_from_abi) {} }; } #endif