// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.210930.14 #pragma once #ifndef WINRT_Windows_Devices_Sms_2_H #define WINRT_Windows_Devices_Sms_2_H #include "winrt/impl/Windows.Foundation.1.h" #include "winrt/impl/Windows.Foundation.Collections.1.h" #include "winrt/impl/Windows.Devices.Sms.1.h" WINRT_EXPORT namespace winrt::Windows::Devices::Sms { struct SmsDeviceStatusChangedEventHandler : winrt::Windows::Foundation::IUnknown { SmsDeviceStatusChangedEventHandler(std::nullptr_t = nullptr) noexcept {} SmsDeviceStatusChangedEventHandler(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {} template SmsDeviceStatusChangedEventHandler(L lambda); template SmsDeviceStatusChangedEventHandler(F* function); template SmsDeviceStatusChangedEventHandler(O* object, M method); template SmsDeviceStatusChangedEventHandler(com_ptr&& object, M method); template SmsDeviceStatusChangedEventHandler(weak_ref&& object, M method); auto operator()(winrt::Windows::Devices::Sms::SmsDevice const& sender) const; }; struct SmsMessageReceivedEventHandler : winrt::Windows::Foundation::IUnknown { SmsMessageReceivedEventHandler(std::nullptr_t = nullptr) noexcept {} SmsMessageReceivedEventHandler(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IUnknown(ptr, take_ownership_from_abi) {} template SmsMessageReceivedEventHandler(L lambda); template SmsMessageReceivedEventHandler(F* function); template SmsMessageReceivedEventHandler(O* object, M method); template SmsMessageReceivedEventHandler(com_ptr&& object, M method); template SmsMessageReceivedEventHandler(weak_ref&& object, M method); auto operator()(winrt::Windows::Devices::Sms::SmsDevice const& sender, winrt::Windows::Devices::Sms::SmsMessageReceivedEventArgs const& e) const; }; struct SmsEncodedLength { uint32_t SegmentCount; uint32_t CharacterCountLastSegment; uint32_t CharactersPerSegment; uint32_t ByteCountLastSegment; uint32_t BytesPerSegment; }; inline bool operator==(SmsEncodedLength const& left, SmsEncodedLength const& right) noexcept { return left.SegmentCount == right.SegmentCount && left.CharacterCountLastSegment == right.CharacterCountLastSegment && left.CharactersPerSegment == right.CharactersPerSegment && left.ByteCountLastSegment == right.ByteCountLastSegment && left.BytesPerSegment == right.BytesPerSegment; } inline bool operator!=(SmsEncodedLength const& left, SmsEncodedLength const& right) noexcept { return !(left == right); } struct __declspec(empty_bases) DeleteSmsMessageOperation : winrt::Windows::Foundation::IAsyncAction { DeleteSmsMessageOperation(std::nullptr_t) noexcept {} DeleteSmsMessageOperation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IAsyncAction(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) DeleteSmsMessagesOperation : winrt::Windows::Foundation::IAsyncAction { DeleteSmsMessagesOperation(std::nullptr_t) noexcept {} DeleteSmsMessagesOperation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IAsyncAction(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) GetSmsDeviceOperation : winrt::Windows::Foundation::IAsyncOperation { GetSmsDeviceOperation(std::nullptr_t) noexcept {} GetSmsDeviceOperation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IAsyncOperation(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) GetSmsMessageOperation : winrt::Windows::Foundation::IAsyncOperation { GetSmsMessageOperation(std::nullptr_t) noexcept {} GetSmsMessageOperation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IAsyncOperation(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) GetSmsMessagesOperation : winrt::Windows::Foundation::IAsyncOperationWithProgress, int32_t> { GetSmsMessagesOperation(std::nullptr_t) noexcept {} GetSmsMessagesOperation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IAsyncOperationWithProgress, int32_t>(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) SendSmsMessageOperation : winrt::Windows::Foundation::IAsyncAction { SendSmsMessageOperation(std::nullptr_t) noexcept {} SendSmsMessageOperation(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Foundation::IAsyncAction(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) SmsAppMessage : winrt::Windows::Devices::Sms::ISmsAppMessage { SmsAppMessage(std::nullptr_t) noexcept {} SmsAppMessage(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsAppMessage(ptr, take_ownership_from_abi) {} SmsAppMessage(); }; struct __declspec(empty_bases) SmsBinaryMessage : winrt::Windows::Devices::Sms::ISmsBinaryMessage { SmsBinaryMessage(std::nullptr_t) noexcept {} SmsBinaryMessage(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsBinaryMessage(ptr, take_ownership_from_abi) {} SmsBinaryMessage(); }; struct __declspec(empty_bases) SmsBroadcastMessage : winrt::Windows::Devices::Sms::ISmsBroadcastMessage { SmsBroadcastMessage(std::nullptr_t) noexcept {} SmsBroadcastMessage(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsBroadcastMessage(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) SmsDevice : winrt::Windows::Devices::Sms::ISmsDevice { SmsDevice(std::nullptr_t) noexcept {} SmsDevice(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsDevice(ptr, take_ownership_from_abi) {} static auto GetDeviceSelector(); static auto FromIdAsync(param::hstring const& deviceId); static auto GetDefaultAsync(); static auto FromNetworkAccountIdAsync(param::hstring const& networkAccountId); }; struct __declspec(empty_bases) SmsDevice2 : winrt::Windows::Devices::Sms::ISmsDevice2 { SmsDevice2(std::nullptr_t) noexcept {} SmsDevice2(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsDevice2(ptr, take_ownership_from_abi) {} static auto GetDeviceSelector(); static auto FromId(param::hstring const& deviceId); static auto GetDefault(); static auto FromParentId(param::hstring const& parentDeviceId); }; struct __declspec(empty_bases) SmsDeviceMessageStore : winrt::Windows::Devices::Sms::ISmsDeviceMessageStore { SmsDeviceMessageStore(std::nullptr_t) noexcept {} SmsDeviceMessageStore(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsDeviceMessageStore(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) SmsFilterRule : winrt::Windows::Devices::Sms::ISmsFilterRule { SmsFilterRule(std::nullptr_t) noexcept {} SmsFilterRule(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsFilterRule(ptr, take_ownership_from_abi) {} explicit SmsFilterRule(winrt::Windows::Devices::Sms::SmsMessageType const& messageType); }; struct __declspec(empty_bases) SmsFilterRules : winrt::Windows::Devices::Sms::ISmsFilterRules { SmsFilterRules(std::nullptr_t) noexcept {} SmsFilterRules(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsFilterRules(ptr, take_ownership_from_abi) {} explicit SmsFilterRules(winrt::Windows::Devices::Sms::SmsFilterActionType const& actionType); }; struct __declspec(empty_bases) SmsMessageReceivedEventArgs : winrt::Windows::Devices::Sms::ISmsMessageReceivedEventArgs { SmsMessageReceivedEventArgs(std::nullptr_t) noexcept {} SmsMessageReceivedEventArgs(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsMessageReceivedEventArgs(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) SmsMessageReceivedTriggerDetails : winrt::Windows::Devices::Sms::ISmsMessageReceivedTriggerDetails { SmsMessageReceivedTriggerDetails(std::nullptr_t) noexcept {} SmsMessageReceivedTriggerDetails(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsMessageReceivedTriggerDetails(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) SmsMessageRegistration : winrt::Windows::Devices::Sms::ISmsMessageRegistration { SmsMessageRegistration(std::nullptr_t) noexcept {} SmsMessageRegistration(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsMessageRegistration(ptr, take_ownership_from_abi) {} [[nodiscard]] static auto AllRegistrations(); static auto Register(param::hstring const& id, winrt::Windows::Devices::Sms::SmsFilterRules const& filterRules); }; struct __declspec(empty_bases) SmsReceivedEventDetails : winrt::Windows::Devices::Sms::ISmsReceivedEventDetails, impl::require { SmsReceivedEventDetails(std::nullptr_t) noexcept {} SmsReceivedEventDetails(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsReceivedEventDetails(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) SmsSendMessageResult : winrt::Windows::Devices::Sms::ISmsSendMessageResult { SmsSendMessageResult(std::nullptr_t) noexcept {} SmsSendMessageResult(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsSendMessageResult(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) SmsStatusMessage : winrt::Windows::Devices::Sms::ISmsStatusMessage { SmsStatusMessage(std::nullptr_t) noexcept {} SmsStatusMessage(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsStatusMessage(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) SmsTextMessage : winrt::Windows::Devices::Sms::ISmsTextMessage { SmsTextMessage(std::nullptr_t) noexcept {} SmsTextMessage(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsTextMessage(ptr, take_ownership_from_abi) {} SmsTextMessage(); static auto FromBinaryMessage(winrt::Windows::Devices::Sms::SmsBinaryMessage const& binaryMessage); static auto FromBinaryData(winrt::Windows::Devices::Sms::SmsDataFormat const& format, array_view value); }; struct __declspec(empty_bases) SmsTextMessage2 : winrt::Windows::Devices::Sms::ISmsTextMessage2 { SmsTextMessage2(std::nullptr_t) noexcept {} SmsTextMessage2(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsTextMessage2(ptr, take_ownership_from_abi) {} SmsTextMessage2(); }; struct __declspec(empty_bases) SmsVoicemailMessage : winrt::Windows::Devices::Sms::ISmsVoicemailMessage { SmsVoicemailMessage(std::nullptr_t) noexcept {} SmsVoicemailMessage(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsVoicemailMessage(ptr, take_ownership_from_abi) {} }; struct __declspec(empty_bases) SmsWapMessage : winrt::Windows::Devices::Sms::ISmsWapMessage { SmsWapMessage(std::nullptr_t) noexcept {} SmsWapMessage(void* ptr, take_ownership_from_abi_t) noexcept : winrt::Windows::Devices::Sms::ISmsWapMessage(ptr, take_ownership_from_abi) {} }; } #endif