]> git.proxmox.com Git - rustc.git/blame - vendor/windows/src/Windows/Phone/Notification/Management/mod.rs
New upstream version 1.70.0+dfsg1
[rustc.git] / vendor / windows / src / Windows / Phone / Notification / Management / mod.rs
CommitLineData
353b0b11
FG
1#[doc(hidden)]
2#[repr(transparent)]
3pub struct IAccessoryManager(::windows::core::IUnknown);
4unsafe impl ::windows::core::Interface for IAccessoryManager {
5 type Vtable = IAccessoryManager_Vtbl;
6}
7impl ::core::clone::Clone for IAccessoryManager {
8 fn clone(&self) -> Self {
9 Self(self.0.clone())
10 }
11}
12unsafe impl ::windows::core::ComInterface for IAccessoryManager {
13 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0d04a12c_883d_4aa7_bca7_fa4bb8bffee6);
14}
15#[repr(C)]
16#[doc(hidden)]
17pub struct IAccessoryManager_Vtbl {
18 pub base__: ::windows::core::IInspectable_Vtbl,
19 pub RegisterAccessoryApp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
20 pub GetNextTriggerDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
21 pub ProcessTriggerDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, pdetails: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
22 #[cfg(feature = "Foundation_Collections")]
23 pub PhoneLineDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
24 #[cfg(not(feature = "Foundation_Collections"))]
25 PhoneLineDetails: usize,
26 pub GetPhoneLineDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phoneline: ::windows::core::GUID, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
27 pub AcceptPhoneCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonecallid: u32) -> ::windows::core::HRESULT,
28 pub AcceptPhoneCallOnEndpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonecallid: u32, endpoint: PhoneCallAudioEndpoint) -> ::windows::core::HRESULT,
29 pub AcceptPhoneCallWithVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonecallid: u32) -> ::windows::core::HRESULT,
30 pub AcceptPhoneCallWithVideoOnAudioEndpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonecallid: u32, endpoint: PhoneCallAudioEndpoint) -> ::windows::core::HRESULT,
31 pub RejectPhoneCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonecallid: u32) -> ::windows::core::HRESULT,
32 pub RejectPhoneCallWithText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonecallid: u32, textresponseid: u32) -> ::windows::core::HRESULT,
33 pub MakePhoneCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phoneline: ::windows::core::GUID, phonenumber: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
34 pub MakePhoneCallOnAudioEndpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phoneline: ::windows::core::GUID, phonenumber: ::std::mem::MaybeUninit<::windows::core::HSTRING>, endpoint: PhoneCallAudioEndpoint) -> ::windows::core::HRESULT,
35 pub MakePhoneCallWithVideo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phoneline: ::windows::core::GUID, phonenumber: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
36 pub MakePhoneCallWithVideoOnAudioEndpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phoneline: ::windows::core::GUID, phonenumber: ::std::mem::MaybeUninit<::windows::core::HSTRING>, endpoint: PhoneCallAudioEndpoint) -> ::windows::core::HRESULT,
37 pub SwapPhoneCalls: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonecallidtohold: u32, phonecallidonhold: u32) -> ::windows::core::HRESULT,
38 pub HoldPhoneCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonecallid: u32, holdcall: bool) -> ::windows::core::HRESULT,
39 pub EndPhoneCall: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, phonecallid: u32) -> ::windows::core::HRESULT,
40 pub SetPhoneMute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
41 pub PhoneMute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
42 pub SetPhoneCallAudioEndpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: PhoneCallAudioEndpoint) -> ::windows::core::HRESULT,
43 pub PhoneCallAudioEndpoint: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneCallAudioEndpoint) -> ::windows::core::HRESULT,
44 pub SnoozeAlarm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, alarmid: ::windows::core::GUID) -> ::windows::core::HRESULT,
45 #[cfg(feature = "Foundation")]
46 pub SnoozeAlarmForSpecifiedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, alarmid: ::windows::core::GUID, timespan: super::super::super::Foundation::TimeSpan) -> ::windows::core::HRESULT,
47 #[cfg(not(feature = "Foundation"))]
48 SnoozeAlarmForSpecifiedTime: usize,
49 pub DismissAlarm: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, alarmid: ::windows::core::GUID) -> ::windows::core::HRESULT,
50 pub SnoozeReminder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reminderid: ::windows::core::GUID) -> ::windows::core::HRESULT,
51 #[cfg(feature = "Foundation")]
52 pub SnoozeReminderForSpecifiedTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reminderid: ::windows::core::GUID, timespan: super::super::super::Foundation::TimeSpan) -> ::windows::core::HRESULT,
53 #[cfg(not(feature = "Foundation"))]
54 SnoozeReminderForSpecifiedTime: usize,
55 pub DismissReminder: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, reminderid: ::windows::core::GUID) -> ::windows::core::HRESULT,
56 pub GetMediaMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
57 pub MediaPlaybackCapabilities: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PlaybackCapability) -> ::windows::core::HRESULT,
58 pub MediaPlaybackStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PlaybackStatus) -> ::windows::core::HRESULT,
59 pub PerformMediaPlaybackCommand: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, command: PlaybackCommand) -> ::windows::core::HRESULT,
60 pub DoNotDisturbEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
61 pub DrivingModeEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
62 pub BatterySaverState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
63 #[cfg(feature = "Foundation_Collections")]
64 pub GetApps: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
65 #[cfg(not(feature = "Foundation_Collections"))]
66 GetApps: usize,
67 pub EnableNotificationsForApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appid: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
68 pub DisableNotificationsForApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appid: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
69 pub IsNotificationEnabledForApplication: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut bool) -> ::windows::core::HRESULT,
70 pub GetEnabledAccessoryNotificationTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut i32) -> ::windows::core::HRESULT,
71 pub EnableAccessoryNotificationTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, accessorynotificationtypes: i32) -> ::windows::core::HRESULT,
72 pub DisableAllAccessoryNotificationTypes: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
73 pub GetUserConsent: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
74 #[cfg(feature = "Storage_Streams")]
75 pub GetAppIcon: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, appid: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
76 #[cfg(not(feature = "Storage_Streams"))]
77 GetAppIcon: usize,
78}
79#[doc(hidden)]
80#[repr(transparent)]
81pub struct IAccessoryManager2(::windows::core::IUnknown);
82unsafe impl ::windows::core::Interface for IAccessoryManager2 {
83 type Vtable = IAccessoryManager2_Vtbl;
84}
85impl ::core::clone::Clone for IAccessoryManager2 {
86 fn clone(&self) -> Self {
87 Self(self.0.clone())
88 }
89}
90unsafe impl ::windows::core::ComInterface for IAccessoryManager2 {
91 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xbacad44d_d393_46c6_b80c_15fdf44d5386);
92}
93#[repr(C)]
94#[doc(hidden)]
95pub struct IAccessoryManager2_Vtbl {
96 pub base__: ::windows::core::IInspectable_Vtbl,
97 pub RingDevice: unsafe extern "system" fn(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
98 #[cfg(feature = "Foundation_Collections")]
99 pub SpeedDialList: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
100 #[cfg(not(feature = "Foundation_Collections"))]
101 SpeedDialList: usize,
102 pub ClearToast: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instanceid: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
103 pub IsPhonePinLocked: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
104 pub IncreaseVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, step: i32) -> ::windows::core::HRESULT,
105 pub DecreaseVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, step: i32) -> ::windows::core::HRESULT,
106 pub SetMute: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, mute: bool) -> ::windows::core::HRESULT,
107 pub SetRingerVibrate: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, ringer: bool, vibrate: bool) -> ::windows::core::HRESULT,
108 pub VolumeInfo: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
109 #[cfg(feature = "Foundation_Collections")]
110 pub GetAllEmailAccounts: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
111 #[cfg(not(feature = "Foundation_Collections"))]
112 GetAllEmailAccounts: usize,
113 #[cfg(feature = "Foundation_Collections")]
114 pub GetFolders: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emailaccount: ::std::mem::MaybeUninit<::windows::core::HSTRING>, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
115 #[cfg(not(feature = "Foundation_Collections"))]
116 GetFolders: usize,
117 pub EnableEmailNotificationEmailAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emailaccount: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
118 pub DisableEmailNotificationEmailAccount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emailaccount: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
119 #[cfg(feature = "Foundation_Collections")]
120 pub EnableEmailNotificationFolderFilter: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, emailaccount: ::std::mem::MaybeUninit<::windows::core::HSTRING>, folders: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
121 #[cfg(not(feature = "Foundation_Collections"))]
122 EnableEmailNotificationFolderFilter: usize,
123 pub UpdateEmailReadStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, messageentryid: *mut ::core::ffi::c_void, isread: bool) -> ::windows::core::HRESULT,
124}
125#[doc(hidden)]
126#[repr(transparent)]
127pub struct IAccessoryManager3(::windows::core::IUnknown);
128unsafe impl ::windows::core::Interface for IAccessoryManager3 {
129 type Vtable = IAccessoryManager3_Vtbl;
130}
131impl ::core::clone::Clone for IAccessoryManager3 {
132 fn clone(&self) -> Self {
133 Self(self.0.clone())
134 }
135}
136unsafe impl ::windows::core::ComInterface for IAccessoryManager3 {
137 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x81f75137_edc7_47e0_b2f7_7e577c833f7d);
138}
139#[repr(C)]
140#[doc(hidden)]
141pub struct IAccessoryManager3_Vtbl {
142 pub base__: ::windows::core::IInspectable_Vtbl,
143 pub SnoozeAlarmByInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instanceid: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
144 pub DismissAlarmByInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instanceid: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
145 pub SnoozeReminderByInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instanceid: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
146 pub DismissReminderByInstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, instanceid: ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
147}
148#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
149#[repr(transparent)]
150pub struct IAccessoryNotificationTriggerDetails(::windows::core::IUnknown);
151impl IAccessoryNotificationTriggerDetails {
152 #[doc = "*Required features: `\"Foundation\"`*"]
153 #[cfg(feature = "Foundation")]
154 pub fn TimeCreated(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
155 let this = self;
156 unsafe {
157 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
158 (::windows::core::Interface::vtable(this).TimeCreated)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
159 }
160 }
161 pub fn AppDisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
162 let this = self;
163 unsafe {
164 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
165 (::windows::core::Interface::vtable(this).AppDisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
166 }
167 }
168 pub fn AppId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
169 let this = self;
170 unsafe {
171 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
172 (::windows::core::Interface::vtable(this).AppId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
173 }
174 }
175 pub fn AccessoryNotificationType(&self) -> ::windows::core::Result<AccessoryNotificationType> {
176 let this = self;
177 unsafe {
178 let mut result__ = ::windows::core::zeroed::<AccessoryNotificationType>();
179 (::windows::core::Interface::vtable(this).AccessoryNotificationType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
180 }
181 }
182 pub fn StartedProcessing(&self) -> ::windows::core::Result<bool> {
183 let this = self;
184 unsafe {
185 let mut result__ = ::windows::core::zeroed::<bool>();
186 (::windows::core::Interface::vtable(this).StartedProcessing)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
187 }
188 }
189 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::core::Result<()> {
190 let this = self;
191 unsafe { (::windows::core::Interface::vtable(this).SetStartedProcessing)(::windows::core::Interface::as_raw(this), value).ok() }
192 }
193}
194::windows::imp::interface_hierarchy!(IAccessoryNotificationTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
195impl ::core::cmp::PartialEq for IAccessoryNotificationTriggerDetails {
196 fn eq(&self, other: &Self) -> bool {
197 self.0 == other.0
198 }
199}
200impl ::core::cmp::Eq for IAccessoryNotificationTriggerDetails {}
201impl ::core::fmt::Debug for IAccessoryNotificationTriggerDetails {
202 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
203 f.debug_tuple("IAccessoryNotificationTriggerDetails").field(&self.0).finish()
204 }
205}
206impl ::windows::core::RuntimeType for IAccessoryNotificationTriggerDetails {
207 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"{6968a7d4-e3ca-49cb-8c87-2c11cdff9646}");
208}
209unsafe impl ::windows::core::Interface for IAccessoryNotificationTriggerDetails {
210 type Vtable = IAccessoryNotificationTriggerDetails_Vtbl;
211}
212impl ::core::clone::Clone for IAccessoryNotificationTriggerDetails {
213 fn clone(&self) -> Self {
214 Self(self.0.clone())
215 }
216}
217unsafe impl ::windows::core::ComInterface for IAccessoryNotificationTriggerDetails {
218 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x6968a7d4_e3ca_49cb_8c87_2c11cdff9646);
219}
220#[repr(C)]
221#[doc(hidden)]
222pub struct IAccessoryNotificationTriggerDetails_Vtbl {
223 pub base__: ::windows::core::IInspectable_Vtbl,
224 #[cfg(feature = "Foundation")]
225 pub TimeCreated: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
226 #[cfg(not(feature = "Foundation"))]
227 TimeCreated: usize,
228 pub AppDisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
229 pub AppId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
230 pub AccessoryNotificationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut AccessoryNotificationType) -> ::windows::core::HRESULT,
231 pub StartedProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
232 pub SetStartedProcessing: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, value: bool) -> ::windows::core::HRESULT,
233}
234#[doc(hidden)]
235#[repr(transparent)]
236pub struct IAlarmNotificationTriggerDetails(::windows::core::IUnknown);
237unsafe impl ::windows::core::Interface for IAlarmNotificationTriggerDetails {
238 type Vtable = IAlarmNotificationTriggerDetails_Vtbl;
239}
240impl ::core::clone::Clone for IAlarmNotificationTriggerDetails {
241 fn clone(&self) -> Self {
242 Self(self.0.clone())
243 }
244}
245unsafe impl ::windows::core::ComInterface for IAlarmNotificationTriggerDetails {
246 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x38f5fa30_c738_4da2_908c_775d83c36abb);
247}
248#[repr(C)]
249#[doc(hidden)]
250pub struct IAlarmNotificationTriggerDetails_Vtbl {
251 pub base__: ::windows::core::IInspectable_Vtbl,
252 pub AlarmId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
253 pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
254 #[cfg(feature = "Foundation")]
255 pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
256 #[cfg(not(feature = "Foundation"))]
257 Timestamp: usize,
258 pub ReminderState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ReminderState) -> ::windows::core::HRESULT,
259}
260#[doc(hidden)]
261#[repr(transparent)]
262pub struct IAlarmNotificationTriggerDetails2(::windows::core::IUnknown);
263unsafe impl ::windows::core::Interface for IAlarmNotificationTriggerDetails2 {
264 type Vtable = IAlarmNotificationTriggerDetails2_Vtbl;
265}
266impl ::core::clone::Clone for IAlarmNotificationTriggerDetails2 {
267 fn clone(&self) -> Self {
268 Self(self.0.clone())
269 }
270}
271unsafe impl ::windows::core::ComInterface for IAlarmNotificationTriggerDetails2 {
272 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xcf16e06a_7155_40fe_a9c2_7bd2127ef853);
273}
274#[repr(C)]
275#[doc(hidden)]
276pub struct IAlarmNotificationTriggerDetails2_Vtbl {
277 pub base__: ::windows::core::IInspectable_Vtbl,
278 pub InstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
279}
280#[doc(hidden)]
281#[repr(transparent)]
282pub struct IAppNotificationInfo(::windows::core::IUnknown);
283unsafe impl ::windows::core::Interface for IAppNotificationInfo {
284 type Vtable = IAppNotificationInfo_Vtbl;
285}
286impl ::core::clone::Clone for IAppNotificationInfo {
287 fn clone(&self) -> Self {
288 Self(self.0.clone())
289 }
290}
291unsafe impl ::windows::core::ComInterface for IAppNotificationInfo {
292 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x2157bea5_e286_45d3_9bea_f790fc216e0e);
293}
294#[repr(C)]
295#[doc(hidden)]
296pub struct IAppNotificationInfo_Vtbl {
297 pub base__: ::windows::core::IInspectable_Vtbl,
298 pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
299 pub Name: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
300}
301#[doc(hidden)]
302#[repr(transparent)]
303pub struct IBinaryId(::windows::core::IUnknown);
304unsafe impl ::windows::core::Interface for IBinaryId {
305 type Vtable = IBinaryId_Vtbl;
306}
307impl ::core::clone::Clone for IBinaryId {
308 fn clone(&self) -> Self {
309 Self(self.0.clone())
310 }
311}
312unsafe impl ::windows::core::ComInterface for IBinaryId {
313 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4f0da531_5595_44b4_9181_ce4efa3fc168);
314}
315#[repr(C)]
316#[doc(hidden)]
317pub struct IBinaryId_Vtbl {
318 pub base__: ::windows::core::IInspectable_Vtbl,
319 pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u8) -> ::windows::core::HRESULT,
320 pub Length: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
321}
322#[doc(hidden)]
323#[repr(transparent)]
324pub struct ICalendarChangedNotificationTriggerDetails(::windows::core::IUnknown);
325unsafe impl ::windows::core::Interface for ICalendarChangedNotificationTriggerDetails {
326 type Vtable = ICalendarChangedNotificationTriggerDetails_Vtbl;
327}
328impl ::core::clone::Clone for ICalendarChangedNotificationTriggerDetails {
329 fn clone(&self) -> Self {
330 Self(self.0.clone())
331 }
332}
333unsafe impl ::windows::core::ComInterface for ICalendarChangedNotificationTriggerDetails {
334 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x4b8a3bfc_279d_42ab_9c68_3e87977bf216);
335}
336#[repr(C)]
337#[doc(hidden)]
338pub struct ICalendarChangedNotificationTriggerDetails_Vtbl {
339 pub base__: ::windows::core::IInspectable_Vtbl,
340 pub EventType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut CalendarChangedEvent) -> ::windows::core::HRESULT,
341 pub ItemId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
342}
343#[doc(hidden)]
344#[repr(transparent)]
345pub struct ICortanaTileNotificationTriggerDetails(::windows::core::IUnknown);
346unsafe impl ::windows::core::Interface for ICortanaTileNotificationTriggerDetails {
347 type Vtable = ICortanaTileNotificationTriggerDetails_Vtbl;
348}
349impl ::core::clone::Clone for ICortanaTileNotificationTriggerDetails {
350 fn clone(&self) -> Self {
351 Self(self.0.clone())
352 }
353}
354unsafe impl ::windows::core::ComInterface for ICortanaTileNotificationTriggerDetails {
355 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdc0f01d5_1489_46bb_b73b_7f90067ecf27);
356}
357#[repr(C)]
358#[doc(hidden)]
359pub struct ICortanaTileNotificationTriggerDetails_Vtbl {
360 pub base__: ::windows::core::IInspectable_Vtbl,
361 pub TileId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
362 pub Content: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
363 pub LargeContent1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
364 pub LargeContent2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
365 pub EmphasizedText: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
366 pub NonWrappedSmallContent1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
367 pub NonWrappedSmallContent2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
368 pub NonWrappedSmallContent3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
369 pub NonWrappedSmallContent4: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
370 pub Source: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
371}
372#[doc(hidden)]
373#[repr(transparent)]
374pub struct IEmailAccountInfo(::windows::core::IUnknown);
375unsafe impl ::windows::core::Interface for IEmailAccountInfo {
376 type Vtable = IEmailAccountInfo_Vtbl;
377}
378impl ::core::clone::Clone for IEmailAccountInfo {
379 fn clone(&self) -> Self {
380 Self(self.0.clone())
381 }
382}
383unsafe impl ::windows::core::ComInterface for IEmailAccountInfo {
384 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xdfbc02ab_bda0_4568_927e_b2ede35818a1);
385}
386#[repr(C)]
387#[doc(hidden)]
388pub struct IEmailAccountInfo_Vtbl {
389 pub base__: ::windows::core::IInspectable_Vtbl,
390 pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
391 pub IsNotificationEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
392}
393#[doc(hidden)]
394#[repr(transparent)]
395pub struct IEmailFolderInfo(::windows::core::IUnknown);
396unsafe impl ::windows::core::Interface for IEmailFolderInfo {
397 type Vtable = IEmailFolderInfo_Vtbl;
398}
399impl ::core::clone::Clone for IEmailFolderInfo {
400 fn clone(&self) -> Self {
401 Self(self.0.clone())
402 }
403}
404unsafe impl ::windows::core::ComInterface for IEmailFolderInfo {
405 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc207150e_e237_46d6_90e6_4f529eeac1e2);
406}
407#[repr(C)]
408#[doc(hidden)]
409pub struct IEmailFolderInfo_Vtbl {
410 pub base__: ::windows::core::IInspectable_Vtbl,
411 pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
412 pub IsNotificationEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
413}
414#[doc(hidden)]
415#[repr(transparent)]
416pub struct IEmailNotificationTriggerDetails(::windows::core::IUnknown);
417unsafe impl ::windows::core::Interface for IEmailNotificationTriggerDetails {
418 type Vtable = IEmailNotificationTriggerDetails_Vtbl;
419}
420impl ::core::clone::Clone for IEmailNotificationTriggerDetails {
421 fn clone(&self) -> Self {
422 Self(self.0.clone())
423 }
424}
425unsafe impl ::windows::core::ComInterface for IEmailNotificationTriggerDetails {
426 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf3b82612_46cf_4e70_8e0d_7b2e04ab492b);
427}
428#[repr(C)]
429#[doc(hidden)]
430pub struct IEmailNotificationTriggerDetails_Vtbl {
431 pub base__: ::windows::core::IInspectable_Vtbl,
432 pub AccountName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
433 pub ParentFolderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
434 pub SenderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
435 pub SenderAddress: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
436 #[cfg(feature = "ApplicationModel_Email")]
437 pub EmailMessage: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
438 #[cfg(not(feature = "ApplicationModel_Email"))]
439 EmailMessage: usize,
440 #[cfg(feature = "Foundation")]
441 pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
442 #[cfg(not(feature = "Foundation"))]
443 Timestamp: usize,
444}
445#[doc(hidden)]
446#[repr(transparent)]
447pub struct IEmailNotificationTriggerDetails2(::windows::core::IUnknown);
448unsafe impl ::windows::core::Interface for IEmailNotificationTriggerDetails2 {
449 type Vtable = IEmailNotificationTriggerDetails2_Vtbl;
450}
451impl ::core::clone::Clone for IEmailNotificationTriggerDetails2 {
452 fn clone(&self) -> Self {
453 Self(self.0.clone())
454 }
455}
456unsafe impl ::windows::core::ComInterface for IEmailNotificationTriggerDetails2 {
457 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x168067e3_c56f_4ec7_bed1_f734e08de5b2);
458}
459#[repr(C)]
460#[doc(hidden)]
461pub struct IEmailNotificationTriggerDetails2_Vtbl {
462 pub base__: ::windows::core::IInspectable_Vtbl,
463 pub MessageEntryId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
464}
465#[doc(hidden)]
466#[repr(transparent)]
467pub struct IEmailReadNotificationTriggerDetails(::windows::core::IUnknown);
468unsafe impl ::windows::core::Interface for IEmailReadNotificationTriggerDetails {
469 type Vtable = IEmailReadNotificationTriggerDetails_Vtbl;
470}
471impl ::core::clone::Clone for IEmailReadNotificationTriggerDetails {
472 fn clone(&self) -> Self {
473 Self(self.0.clone())
474 }
475}
476unsafe impl ::windows::core::ComInterface for IEmailReadNotificationTriggerDetails {
477 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xf5b7a087_06f3_4e3e_8c42_325e67010413);
478}
479#[repr(C)]
480#[doc(hidden)]
481pub struct IEmailReadNotificationTriggerDetails_Vtbl {
482 pub base__: ::windows::core::IInspectable_Vtbl,
483 pub AccountName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
484 pub ParentFolderName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
485 pub MessageEntryId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
486 pub IsRead: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
487}
488#[doc(hidden)]
489#[repr(transparent)]
490pub struct IMediaControlsTriggerDetails(::windows::core::IUnknown);
491unsafe impl ::windows::core::Interface for IMediaControlsTriggerDetails {
492 type Vtable = IMediaControlsTriggerDetails_Vtbl;
493}
494impl ::core::clone::Clone for IMediaControlsTriggerDetails {
495 fn clone(&self) -> Self {
496 Self(self.0.clone())
497 }
498}
499unsafe impl ::windows::core::ComInterface for IMediaControlsTriggerDetails {
500 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xfab4648b_ae45_4548_91ca_4ab0548e33b5);
501}
502#[repr(C)]
503#[doc(hidden)]
504pub struct IMediaControlsTriggerDetails_Vtbl {
505 pub base__: ::windows::core::IInspectable_Vtbl,
506 pub PlaybackStatus: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PlaybackStatus) -> ::windows::core::HRESULT,
507 pub MediaMetadata: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
508}
509#[doc(hidden)]
510#[repr(transparent)]
511pub struct IMediaMetadata(::windows::core::IUnknown);
512unsafe impl ::windows::core::Interface for IMediaMetadata {
513 type Vtable = IMediaMetadata_Vtbl;
514}
515impl ::core::clone::Clone for IMediaMetadata {
516 fn clone(&self) -> Self {
517 Self(self.0.clone())
518 }
519}
520unsafe impl ::windows::core::ComInterface for IMediaMetadata {
521 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9b50ddf7_bb6c_4330_b3cd_0704a54cdb80);
522}
523#[repr(C)]
524#[doc(hidden)]
525pub struct IMediaMetadata_Vtbl {
526 pub base__: ::windows::core::IInspectable_Vtbl,
527 pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
528 pub Subtitle: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
529 pub Artist: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
530 pub Album: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
531 pub Track: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
532 #[cfg(feature = "Foundation")]
533 pub Duration: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::TimeSpan) -> ::windows::core::HRESULT,
534 #[cfg(not(feature = "Foundation"))]
535 Duration: usize,
536 #[cfg(feature = "Storage_Streams")]
537 pub Thumbnail: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
538 #[cfg(not(feature = "Storage_Streams"))]
539 Thumbnail: usize,
540}
541#[doc(hidden)]
542#[repr(transparent)]
543pub struct IPhoneCallDetails(::windows::core::IUnknown);
544unsafe impl ::windows::core::Interface for IPhoneCallDetails {
545 type Vtable = IPhoneCallDetails_Vtbl;
546}
547impl ::core::clone::Clone for IPhoneCallDetails {
548 fn clone(&self) -> Self {
549 Self(self.0.clone())
550 }
551}
552unsafe impl ::windows::core::ComInterface for IPhoneCallDetails {
553 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x0c1b6f53_f071_483e_bf33_ebd44b724447);
554}
555#[repr(C)]
556#[doc(hidden)]
557pub struct IPhoneCallDetails_Vtbl {
558 pub base__: ::windows::core::IInspectable_Vtbl,
559 pub PhoneLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
560 pub CallId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
561 pub CallTransport: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneCallTransport) -> ::windows::core::HRESULT,
562 pub CallMediaType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneMediaType) -> ::windows::core::HRESULT,
563 pub CallDirection: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneCallDirection) -> ::windows::core::HRESULT,
564 pub State: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneCallState) -> ::windows::core::HRESULT,
565 pub ConferenceCallId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
566 #[cfg(feature = "Foundation")]
567 pub StartTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
568 #[cfg(not(feature = "Foundation"))]
569 StartTime: usize,
570 #[cfg(feature = "Foundation")]
571 pub EndTime: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
572 #[cfg(not(feature = "Foundation"))]
573 EndTime: usize,
574 pub PhoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
575 pub ContactName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
576 #[cfg(feature = "Foundation_Collections")]
577 pub PresetTextResponses: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
578 #[cfg(not(feature = "Foundation_Collections"))]
579 PresetTextResponses: usize,
580}
581#[doc(hidden)]
582#[repr(transparent)]
583pub struct IPhoneLineDetails(::windows::core::IUnknown);
584unsafe impl ::windows::core::Interface for IPhoneLineDetails {
585 type Vtable = IPhoneLineDetails_Vtbl;
586}
587impl ::core::clone::Clone for IPhoneLineDetails {
588 fn clone(&self) -> Self {
589 Self(self.0.clone())
590 }
591}
592unsafe impl ::windows::core::ComInterface for IPhoneLineDetails {
593 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x47eb32dc_33ed_49b9_995c_a296bac82b77);
594}
595#[repr(C)]
596#[doc(hidden)]
597pub struct IPhoneLineDetails_Vtbl {
598 pub base__: ::windows::core::IInspectable_Vtbl,
599 pub LineId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
600 pub DisplayName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
601 pub LineNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
602 pub DefaultOutgoingLine: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
603 pub VoicemailCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
604 pub RegistrationState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneLineRegistrationState) -> ::windows::core::HRESULT,
605}
606#[doc(hidden)]
607#[repr(transparent)]
608pub struct IPhoneLineDetails2(::windows::core::IUnknown);
609unsafe impl ::windows::core::Interface for IPhoneLineDetails2 {
610 type Vtable = IPhoneLineDetails2_Vtbl;
611}
612impl ::core::clone::Clone for IPhoneLineDetails2 {
613 fn clone(&self) -> Self {
614 Self(self.0.clone())
615 }
616}
617unsafe impl ::windows::core::ComInterface for IPhoneLineDetails2 {
618 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xb30cd77d_0147_498c_8241_bf0cabc60a25);
619}
620#[repr(C)]
621#[doc(hidden)]
622pub struct IPhoneLineDetails2_Vtbl {
623 pub base__: ::windows::core::IInspectable_Vtbl,
624 pub MissedCallCount: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
625}
626#[doc(hidden)]
627#[repr(transparent)]
628pub struct IPhoneNotificationTriggerDetails(::windows::core::IUnknown);
629unsafe impl ::windows::core::Interface for IPhoneNotificationTriggerDetails {
630 type Vtable = IPhoneNotificationTriggerDetails_Vtbl;
631}
632impl ::core::clone::Clone for IPhoneNotificationTriggerDetails {
633 fn clone(&self) -> Self {
634 Self(self.0.clone())
635 }
636}
637unsafe impl ::windows::core::ComInterface for IPhoneNotificationTriggerDetails {
638 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xccc2fdf7_09c3_4118_91bc_ca6323a8d383);
639}
640#[repr(C)]
641#[doc(hidden)]
642pub struct IPhoneNotificationTriggerDetails_Vtbl {
643 pub base__: ::windows::core::IInspectable_Vtbl,
644 pub PhoneNotificationType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut PhoneNotificationType) -> ::windows::core::HRESULT,
645 pub CallDetails: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
646 pub PhoneLineChangedId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
647}
648#[doc(hidden)]
649#[repr(transparent)]
650pub struct IReminderNotificationTriggerDetails(::windows::core::IUnknown);
651unsafe impl ::windows::core::Interface for IReminderNotificationTriggerDetails {
652 type Vtable = IReminderNotificationTriggerDetails_Vtbl;
653}
654impl ::core::clone::Clone for IReminderNotificationTriggerDetails {
655 fn clone(&self) -> Self {
656 Self(self.0.clone())
657 }
658}
659unsafe impl ::windows::core::ComInterface for IReminderNotificationTriggerDetails {
660 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x5bddaa5d_9f61_4bf0_9feb_10502bc0b0c2);
661}
662#[repr(C)]
663#[doc(hidden)]
664pub struct IReminderNotificationTriggerDetails_Vtbl {
665 pub base__: ::windows::core::IInspectable_Vtbl,
666 pub ReminderId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::windows::core::GUID) -> ::windows::core::HRESULT,
667 pub Title: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
668 pub Description: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
669 pub Details: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
670 #[cfg(feature = "Foundation")]
671 pub Timestamp: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut super::super::super::Foundation::DateTime) -> ::windows::core::HRESULT,
672 #[cfg(not(feature = "Foundation"))]
673 Timestamp: usize,
674 #[cfg(feature = "ApplicationModel_Appointments")]
675 pub Appointment: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT,
676 #[cfg(not(feature = "ApplicationModel_Appointments"))]
677 Appointment: usize,
678 pub ReminderState: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ReminderState) -> ::windows::core::HRESULT,
679}
680#[doc(hidden)]
681#[repr(transparent)]
682pub struct IReminderNotificationTriggerDetails2(::windows::core::IUnknown);
683unsafe impl ::windows::core::Interface for IReminderNotificationTriggerDetails2 {
684 type Vtable = IReminderNotificationTriggerDetails2_Vtbl;
685}
686impl ::core::clone::Clone for IReminderNotificationTriggerDetails2 {
687 fn clone(&self) -> Self {
688 Self(self.0.clone())
689 }
690}
691unsafe impl ::windows::core::ComInterface for IReminderNotificationTriggerDetails2 {
692 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe715f9c0_504d_4c0f_a6b3_bcb9722c6cdd);
693}
694#[repr(C)]
695#[doc(hidden)]
696pub struct IReminderNotificationTriggerDetails2_Vtbl {
697 pub base__: ::windows::core::IInspectable_Vtbl,
698 pub InstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
699}
700#[doc(hidden)]
701#[repr(transparent)]
702pub struct ISpeedDialEntry(::windows::core::IUnknown);
703unsafe impl ::windows::core::Interface for ISpeedDialEntry {
704 type Vtable = ISpeedDialEntry_Vtbl;
705}
706impl ::core::clone::Clone for ISpeedDialEntry {
707 fn clone(&self) -> Self {
708 Self(self.0.clone())
709 }
710}
711unsafe impl ::windows::core::ComInterface for ISpeedDialEntry {
712 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x9240b6db_872c_46dc_b62a_be4541b166f8);
713}
714#[repr(C)]
715#[doc(hidden)]
716pub struct ISpeedDialEntry_Vtbl {
717 pub base__: ::windows::core::IInspectable_Vtbl,
718 pub PhoneNumber: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
719 pub NumberType: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
720 pub ContactName: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
721}
722#[doc(hidden)]
723#[repr(transparent)]
724pub struct ITextResponse(::windows::core::IUnknown);
725unsafe impl ::windows::core::Interface for ITextResponse {
726 type Vtable = ITextResponse_Vtbl;
727}
728impl ::core::clone::Clone for ITextResponse {
729 fn clone(&self) -> Self {
730 Self(self.0.clone())
731 }
732}
733unsafe impl ::windows::core::ComInterface for ITextResponse {
734 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xe9cb74c3_2457_4cdb_8110_72f5e8e883e8);
735}
736#[repr(C)]
737#[doc(hidden)]
738pub struct ITextResponse_Vtbl {
739 pub base__: ::windows::core::IInspectable_Vtbl,
740 pub Id: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
741 pub Content: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
742}
743#[doc(hidden)]
744#[repr(transparent)]
745pub struct IToastNotificationTriggerDetails(::windows::core::IUnknown);
746unsafe impl ::windows::core::Interface for IToastNotificationTriggerDetails {
747 type Vtable = IToastNotificationTriggerDetails_Vtbl;
748}
749impl ::core::clone::Clone for IToastNotificationTriggerDetails {
750 fn clone(&self) -> Self {
751 Self(self.0.clone())
752 }
753}
754unsafe impl ::windows::core::ComInterface for IToastNotificationTriggerDetails {
755 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0xc9314895_4e6d_4e9d_afec_9e921b875ae8);
756}
757#[repr(C)]
758#[doc(hidden)]
759pub struct IToastNotificationTriggerDetails_Vtbl {
760 pub base__: ::windows::core::IInspectable_Vtbl,
761 pub Text1: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
762 pub Text2: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
763 pub Text3: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
764 pub Text4: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
765 pub SuppressPopup: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
766}
767#[doc(hidden)]
768#[repr(transparent)]
769pub struct IToastNotificationTriggerDetails2(::windows::core::IUnknown);
770unsafe impl ::windows::core::Interface for IToastNotificationTriggerDetails2 {
771 type Vtable = IToastNotificationTriggerDetails2_Vtbl;
772}
773impl ::core::clone::Clone for IToastNotificationTriggerDetails2 {
774 fn clone(&self) -> Self {
775 Self(self.0.clone())
776 }
777}
778unsafe impl ::windows::core::ComInterface for IToastNotificationTriggerDetails2 {
779 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x3e0479dd_cac4_4f60_afa3_b925d9d83c93);
780}
781#[repr(C)]
782#[doc(hidden)]
783pub struct IToastNotificationTriggerDetails2_Vtbl {
784 pub base__: ::windows::core::IInspectable_Vtbl,
785 pub InstanceId: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut ::std::mem::MaybeUninit<::windows::core::HSTRING>) -> ::windows::core::HRESULT,
786}
787#[doc(hidden)]
788#[repr(transparent)]
789pub struct IVolumeInfo(::windows::core::IUnknown);
790unsafe impl ::windows::core::Interface for IVolumeInfo {
791 type Vtable = IVolumeInfo_Vtbl;
792}
793impl ::core::clone::Clone for IVolumeInfo {
794 fn clone(&self) -> Self {
795 Self(self.0.clone())
796 }
797}
798unsafe impl ::windows::core::ComInterface for IVolumeInfo {
799 const IID: ::windows::core::GUID = ::windows::core::GUID::from_u128(0x944dd118_7704_4481_b92e_d3ed3ece6322);
800}
801#[repr(C)]
802#[doc(hidden)]
803pub struct IVolumeInfo_Vtbl {
804 pub base__: ::windows::core::IInspectable_Vtbl,
805 pub SystemVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
806 pub CallVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
807 pub MediaVolume: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut u32) -> ::windows::core::HRESULT,
808 pub IsMuted: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut bool) -> ::windows::core::HRESULT,
809 pub IsVibrateEnabled: unsafe extern "system" fn(this: *mut ::core::ffi::c_void, result__: *mut VibrateState) -> ::windows::core::HRESULT,
810}
811#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
812pub struct AccessoryManager;
813impl AccessoryManager {
814 pub fn RegisterAccessoryApp() -> ::windows::core::Result<::windows::core::HSTRING> {
815 Self::IAccessoryManager(|this| unsafe {
816 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
817 (::windows::core::Interface::vtable(this).RegisterAccessoryApp)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
818 })
819 }
820 pub fn GetNextTriggerDetails() -> ::windows::core::Result<IAccessoryNotificationTriggerDetails> {
821 Self::IAccessoryManager(|this| unsafe {
822 let mut result__ = ::windows::core::zeroed::<IAccessoryNotificationTriggerDetails>();
823 (::windows::core::Interface::vtable(this).GetNextTriggerDetails)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
824 })
825 }
826 pub fn ProcessTriggerDetails<P0>(pdetails: P0) -> ::windows::core::Result<()>
827 where
828 P0: ::windows::core::TryIntoParam<IAccessoryNotificationTriggerDetails>,
829 {
830 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).ProcessTriggerDetails)(::windows::core::Interface::as_raw(this), pdetails.try_into_param()?.abi()).ok() })
831 }
832 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
833 #[cfg(feature = "Foundation_Collections")]
834 pub fn PhoneLineDetails() -> ::windows::core::Result<super::super::super::Foundation::Collections::IVectorView<PhoneLineDetails>> {
835 Self::IAccessoryManager(|this| unsafe {
836 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::Collections::IVectorView<PhoneLineDetails>>();
837 (::windows::core::Interface::vtable(this).PhoneLineDetails)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
838 })
839 }
840 pub fn GetPhoneLineDetails(phoneline: ::windows::core::GUID) -> ::windows::core::Result<PhoneLineDetails> {
841 Self::IAccessoryManager(|this| unsafe {
842 let mut result__ = ::windows::core::zeroed::<PhoneLineDetails>();
843 (::windows::core::Interface::vtable(this).GetPhoneLineDetails)(::windows::core::Interface::as_raw(this), phoneline, &mut result__).from_abi(result__)
844 })
845 }
846 pub fn AcceptPhoneCall(phonecallid: u32) -> ::windows::core::Result<()> {
847 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).AcceptPhoneCall)(::windows::core::Interface::as_raw(this), phonecallid).ok() })
848 }
849 pub fn AcceptPhoneCallOnEndpoint(phonecallid: u32, endpoint: PhoneCallAudioEndpoint) -> ::windows::core::Result<()> {
850 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).AcceptPhoneCallOnEndpoint)(::windows::core::Interface::as_raw(this), phonecallid, endpoint).ok() })
851 }
852 pub fn AcceptPhoneCallWithVideo(phonecallid: u32) -> ::windows::core::Result<()> {
853 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).AcceptPhoneCallWithVideo)(::windows::core::Interface::as_raw(this), phonecallid).ok() })
854 }
855 pub fn AcceptPhoneCallWithVideoOnAudioEndpoint(phonecallid: u32, endpoint: PhoneCallAudioEndpoint) -> ::windows::core::Result<()> {
856 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).AcceptPhoneCallWithVideoOnAudioEndpoint)(::windows::core::Interface::as_raw(this), phonecallid, endpoint).ok() })
857 }
858 pub fn RejectPhoneCall(phonecallid: u32) -> ::windows::core::Result<()> {
859 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).RejectPhoneCall)(::windows::core::Interface::as_raw(this), phonecallid).ok() })
860 }
861 pub fn RejectPhoneCallWithText(phonecallid: u32, textresponseid: u32) -> ::windows::core::Result<()> {
862 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).RejectPhoneCallWithText)(::windows::core::Interface::as_raw(this), phonecallid, textresponseid).ok() })
863 }
864 pub fn MakePhoneCall(phoneline: ::windows::core::GUID, phonenumber: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
865 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).MakePhoneCall)(::windows::core::Interface::as_raw(this), phoneline, ::core::mem::transmute_copy(phonenumber)).ok() })
866 }
867 pub fn MakePhoneCallOnAudioEndpoint(phoneline: ::windows::core::GUID, phonenumber: &::windows::core::HSTRING, endpoint: PhoneCallAudioEndpoint) -> ::windows::core::Result<()> {
868 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).MakePhoneCallOnAudioEndpoint)(::windows::core::Interface::as_raw(this), phoneline, ::core::mem::transmute_copy(phonenumber), endpoint).ok() })
869 }
870 pub fn MakePhoneCallWithVideo(phoneline: ::windows::core::GUID, phonenumber: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
871 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).MakePhoneCallWithVideo)(::windows::core::Interface::as_raw(this), phoneline, ::core::mem::transmute_copy(phonenumber)).ok() })
872 }
873 pub fn MakePhoneCallWithVideoOnAudioEndpoint(phoneline: ::windows::core::GUID, phonenumber: &::windows::core::HSTRING, endpoint: PhoneCallAudioEndpoint) -> ::windows::core::Result<()> {
874 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).MakePhoneCallWithVideoOnAudioEndpoint)(::windows::core::Interface::as_raw(this), phoneline, ::core::mem::transmute_copy(phonenumber), endpoint).ok() })
875 }
876 pub fn SwapPhoneCalls(phonecallidtohold: u32, phonecallidonhold: u32) -> ::windows::core::Result<()> {
877 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).SwapPhoneCalls)(::windows::core::Interface::as_raw(this), phonecallidtohold, phonecallidonhold).ok() })
878 }
879 pub fn HoldPhoneCall(phonecallid: u32, holdcall: bool) -> ::windows::core::Result<()> {
880 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).HoldPhoneCall)(::windows::core::Interface::as_raw(this), phonecallid, holdcall).ok() })
881 }
882 pub fn EndPhoneCall(phonecallid: u32) -> ::windows::core::Result<()> {
883 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).EndPhoneCall)(::windows::core::Interface::as_raw(this), phonecallid).ok() })
884 }
885 pub fn SetPhoneMute(value: bool) -> ::windows::core::Result<()> {
886 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).SetPhoneMute)(::windows::core::Interface::as_raw(this), value).ok() })
887 }
888 pub fn PhoneMute() -> ::windows::core::Result<bool> {
889 Self::IAccessoryManager(|this| unsafe {
890 let mut result__ = ::windows::core::zeroed::<bool>();
891 (::windows::core::Interface::vtable(this).PhoneMute)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
892 })
893 }
894 pub fn SetPhoneCallAudioEndpoint(value: PhoneCallAudioEndpoint) -> ::windows::core::Result<()> {
895 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).SetPhoneCallAudioEndpoint)(::windows::core::Interface::as_raw(this), value).ok() })
896 }
897 pub fn PhoneCallAudioEndpoint() -> ::windows::core::Result<PhoneCallAudioEndpoint> {
898 Self::IAccessoryManager(|this| unsafe {
899 let mut result__ = ::windows::core::zeroed::<PhoneCallAudioEndpoint>();
900 (::windows::core::Interface::vtable(this).PhoneCallAudioEndpoint)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
901 })
902 }
903 pub fn SnoozeAlarm(alarmid: ::windows::core::GUID) -> ::windows::core::Result<()> {
904 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).SnoozeAlarm)(::windows::core::Interface::as_raw(this), alarmid).ok() })
905 }
906 #[doc = "*Required features: `\"Foundation\"`*"]
907 #[cfg(feature = "Foundation")]
908 pub fn SnoozeAlarmForSpecifiedTime(alarmid: ::windows::core::GUID, timespan: super::super::super::Foundation::TimeSpan) -> ::windows::core::Result<()> {
909 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).SnoozeAlarmForSpecifiedTime)(::windows::core::Interface::as_raw(this), alarmid, timespan).ok() })
910 }
911 pub fn DismissAlarm(alarmid: ::windows::core::GUID) -> ::windows::core::Result<()> {
912 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).DismissAlarm)(::windows::core::Interface::as_raw(this), alarmid).ok() })
913 }
914 pub fn SnoozeReminder(reminderid: ::windows::core::GUID) -> ::windows::core::Result<()> {
915 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).SnoozeReminder)(::windows::core::Interface::as_raw(this), reminderid).ok() })
916 }
917 #[doc = "*Required features: `\"Foundation\"`*"]
918 #[cfg(feature = "Foundation")]
919 pub fn SnoozeReminderForSpecifiedTime(reminderid: ::windows::core::GUID, timespan: super::super::super::Foundation::TimeSpan) -> ::windows::core::Result<()> {
920 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).SnoozeReminderForSpecifiedTime)(::windows::core::Interface::as_raw(this), reminderid, timespan).ok() })
921 }
922 pub fn DismissReminder(reminderid: ::windows::core::GUID) -> ::windows::core::Result<()> {
923 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).DismissReminder)(::windows::core::Interface::as_raw(this), reminderid).ok() })
924 }
925 pub fn GetMediaMetadata() -> ::windows::core::Result<MediaMetadata> {
926 Self::IAccessoryManager(|this| unsafe {
927 let mut result__ = ::windows::core::zeroed::<MediaMetadata>();
928 (::windows::core::Interface::vtable(this).GetMediaMetadata)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
929 })
930 }
931 pub fn MediaPlaybackCapabilities() -> ::windows::core::Result<PlaybackCapability> {
932 Self::IAccessoryManager(|this| unsafe {
933 let mut result__ = ::windows::core::zeroed::<PlaybackCapability>();
934 (::windows::core::Interface::vtable(this).MediaPlaybackCapabilities)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
935 })
936 }
937 pub fn MediaPlaybackStatus() -> ::windows::core::Result<PlaybackStatus> {
938 Self::IAccessoryManager(|this| unsafe {
939 let mut result__ = ::windows::core::zeroed::<PlaybackStatus>();
940 (::windows::core::Interface::vtable(this).MediaPlaybackStatus)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
941 })
942 }
943 pub fn PerformMediaPlaybackCommand(command: PlaybackCommand) -> ::windows::core::Result<()> {
944 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).PerformMediaPlaybackCommand)(::windows::core::Interface::as_raw(this), command).ok() })
945 }
946 pub fn DoNotDisturbEnabled() -> ::windows::core::Result<bool> {
947 Self::IAccessoryManager(|this| unsafe {
948 let mut result__ = ::windows::core::zeroed::<bool>();
949 (::windows::core::Interface::vtable(this).DoNotDisturbEnabled)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
950 })
951 }
952 pub fn DrivingModeEnabled() -> ::windows::core::Result<bool> {
953 Self::IAccessoryManager(|this| unsafe {
954 let mut result__ = ::windows::core::zeroed::<bool>();
955 (::windows::core::Interface::vtable(this).DrivingModeEnabled)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
956 })
957 }
958 pub fn BatterySaverState() -> ::windows::core::Result<bool> {
959 Self::IAccessoryManager(|this| unsafe {
960 let mut result__ = ::windows::core::zeroed::<bool>();
961 (::windows::core::Interface::vtable(this).BatterySaverState)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
962 })
963 }
964 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
965 #[cfg(feature = "Foundation_Collections")]
966 pub fn GetApps() -> ::windows::core::Result<super::super::super::Foundation::Collections::IMapView<::windows::core::HSTRING, AppNotificationInfo>> {
967 Self::IAccessoryManager(|this| unsafe {
968 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::Collections::IMapView<::windows::core::HSTRING, AppNotificationInfo>>();
969 (::windows::core::Interface::vtable(this).GetApps)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
970 })
971 }
972 pub fn EnableNotificationsForApplication(appid: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
973 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).EnableNotificationsForApplication)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(appid)).ok() })
974 }
975 pub fn DisableNotificationsForApplication(appid: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
976 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).DisableNotificationsForApplication)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(appid)).ok() })
977 }
978 pub fn IsNotificationEnabledForApplication(appid: &::windows::core::HSTRING) -> ::windows::core::Result<bool> {
979 Self::IAccessoryManager(|this| unsafe {
980 let mut result__ = ::windows::core::zeroed::<bool>();
981 (::windows::core::Interface::vtable(this).IsNotificationEnabledForApplication)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(appid), &mut result__).from_abi(result__)
982 })
983 }
984 pub fn GetEnabledAccessoryNotificationTypes() -> ::windows::core::Result<i32> {
985 Self::IAccessoryManager(|this| unsafe {
986 let mut result__ = ::windows::core::zeroed::<i32>();
987 (::windows::core::Interface::vtable(this).GetEnabledAccessoryNotificationTypes)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
988 })
989 }
990 pub fn EnableAccessoryNotificationTypes(accessorynotificationtypes: i32) -> ::windows::core::Result<()> {
991 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).EnableAccessoryNotificationTypes)(::windows::core::Interface::as_raw(this), accessorynotificationtypes).ok() })
992 }
993 pub fn DisableAllAccessoryNotificationTypes() -> ::windows::core::Result<()> {
994 Self::IAccessoryManager(|this| unsafe { (::windows::core::Interface::vtable(this).DisableAllAccessoryNotificationTypes)(::windows::core::Interface::as_raw(this)).ok() })
995 }
996 pub fn GetUserConsent() -> ::windows::core::Result<bool> {
997 Self::IAccessoryManager(|this| unsafe {
998 let mut result__ = ::windows::core::zeroed::<bool>();
999 (::windows::core::Interface::vtable(this).GetUserConsent)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1000 })
1001 }
1002 #[doc = "*Required features: `\"Storage_Streams\"`*"]
1003 #[cfg(feature = "Storage_Streams")]
1004 pub fn GetAppIcon(appid: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::super::Storage::Streams::IRandomAccessStreamReference> {
1005 Self::IAccessoryManager(|this| unsafe {
1006 let mut result__ = ::windows::core::zeroed::<super::super::super::Storage::Streams::IRandomAccessStreamReference>();
1007 (::windows::core::Interface::vtable(this).GetAppIcon)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(appid), &mut result__).from_abi(result__)
1008 })
1009 }
1010 pub fn RingDevice() -> ::windows::core::Result<()> {
1011 Self::IAccessoryManager2(|this| unsafe { (::windows::core::Interface::vtable(this).RingDevice)(::windows::core::Interface::as_raw(this)).ok() })
1012 }
1013 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
1014 #[cfg(feature = "Foundation_Collections")]
1015 pub fn SpeedDialList() -> ::windows::core::Result<super::super::super::Foundation::Collections::IVectorView<SpeedDialEntry>> {
1016 Self::IAccessoryManager2(|this| unsafe {
1017 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::Collections::IVectorView<SpeedDialEntry>>();
1018 (::windows::core::Interface::vtable(this).SpeedDialList)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1019 })
1020 }
1021 pub fn ClearToast(instanceid: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
1022 Self::IAccessoryManager2(|this| unsafe { (::windows::core::Interface::vtable(this).ClearToast)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(instanceid)).ok() })
1023 }
1024 pub fn IsPhonePinLocked() -> ::windows::core::Result<bool> {
1025 Self::IAccessoryManager2(|this| unsafe {
1026 let mut result__ = ::windows::core::zeroed::<bool>();
1027 (::windows::core::Interface::vtable(this).IsPhonePinLocked)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1028 })
1029 }
1030 pub fn IncreaseVolume(step: i32) -> ::windows::core::Result<()> {
1031 Self::IAccessoryManager2(|this| unsafe { (::windows::core::Interface::vtable(this).IncreaseVolume)(::windows::core::Interface::as_raw(this), step).ok() })
1032 }
1033 pub fn DecreaseVolume(step: i32) -> ::windows::core::Result<()> {
1034 Self::IAccessoryManager2(|this| unsafe { (::windows::core::Interface::vtable(this).DecreaseVolume)(::windows::core::Interface::as_raw(this), step).ok() })
1035 }
1036 pub fn SetMute(mute: bool) -> ::windows::core::Result<()> {
1037 Self::IAccessoryManager2(|this| unsafe { (::windows::core::Interface::vtable(this).SetMute)(::windows::core::Interface::as_raw(this), mute).ok() })
1038 }
1039 pub fn SetRingerVibrate(ringer: bool, vibrate: bool) -> ::windows::core::Result<()> {
1040 Self::IAccessoryManager2(|this| unsafe { (::windows::core::Interface::vtable(this).SetRingerVibrate)(::windows::core::Interface::as_raw(this), ringer, vibrate).ok() })
1041 }
1042 pub fn VolumeInfo() -> ::windows::core::Result<VolumeInfo> {
1043 Self::IAccessoryManager2(|this| unsafe {
1044 let mut result__ = ::windows::core::zeroed::<VolumeInfo>();
1045 (::windows::core::Interface::vtable(this).VolumeInfo)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1046 })
1047 }
1048 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
1049 #[cfg(feature = "Foundation_Collections")]
1050 pub fn GetAllEmailAccounts() -> ::windows::core::Result<super::super::super::Foundation::Collections::IVectorView<EmailAccountInfo>> {
1051 Self::IAccessoryManager2(|this| unsafe {
1052 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::Collections::IVectorView<EmailAccountInfo>>();
1053 (::windows::core::Interface::vtable(this).GetAllEmailAccounts)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1054 })
1055 }
1056 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
1057 #[cfg(feature = "Foundation_Collections")]
1058 pub fn GetFolders(emailaccount: &::windows::core::HSTRING) -> ::windows::core::Result<super::super::super::Foundation::Collections::IVectorView<EmailFolderInfo>> {
1059 Self::IAccessoryManager2(|this| unsafe {
1060 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::Collections::IVectorView<EmailFolderInfo>>();
1061 (::windows::core::Interface::vtable(this).GetFolders)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(emailaccount), &mut result__).from_abi(result__)
1062 })
1063 }
1064 pub fn EnableEmailNotificationEmailAccount(emailaccount: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
1065 Self::IAccessoryManager2(|this| unsafe { (::windows::core::Interface::vtable(this).EnableEmailNotificationEmailAccount)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(emailaccount)).ok() })
1066 }
1067 pub fn DisableEmailNotificationEmailAccount(emailaccount: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
1068 Self::IAccessoryManager2(|this| unsafe { (::windows::core::Interface::vtable(this).DisableEmailNotificationEmailAccount)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(emailaccount)).ok() })
1069 }
1070 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
1071 #[cfg(feature = "Foundation_Collections")]
1072 pub fn EnableEmailNotificationFolderFilter<P0>(emailaccount: &::windows::core::HSTRING, folders: P0) -> ::windows::core::Result<()>
1073 where
1074 P0: ::windows::core::TryIntoParam<super::super::super::Foundation::Collections::IVectorView<::windows::core::HSTRING>>,
1075 {
1076 Self::IAccessoryManager2(|this| unsafe { (::windows::core::Interface::vtable(this).EnableEmailNotificationFolderFilter)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(emailaccount), folders.try_into_param()?.abi()).ok() })
1077 }
1078 pub fn UpdateEmailReadStatus(messageentryid: &BinaryId, isread: bool) -> ::windows::core::Result<()> {
1079 Self::IAccessoryManager2(|this| unsafe { (::windows::core::Interface::vtable(this).UpdateEmailReadStatus)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(messageentryid), isread).ok() })
1080 }
1081 pub fn SnoozeAlarmByInstanceId(instanceid: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
1082 Self::IAccessoryManager3(|this| unsafe { (::windows::core::Interface::vtable(this).SnoozeAlarmByInstanceId)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(instanceid)).ok() })
1083 }
1084 pub fn DismissAlarmByInstanceId(instanceid: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
1085 Self::IAccessoryManager3(|this| unsafe { (::windows::core::Interface::vtable(this).DismissAlarmByInstanceId)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(instanceid)).ok() })
1086 }
1087 pub fn SnoozeReminderByInstanceId(instanceid: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
1088 Self::IAccessoryManager3(|this| unsafe { (::windows::core::Interface::vtable(this).SnoozeReminderByInstanceId)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(instanceid)).ok() })
1089 }
1090 pub fn DismissReminderByInstanceId(instanceid: &::windows::core::HSTRING) -> ::windows::core::Result<()> {
1091 Self::IAccessoryManager3(|this| unsafe { (::windows::core::Interface::vtable(this).DismissReminderByInstanceId)(::windows::core::Interface::as_raw(this), ::core::mem::transmute_copy(instanceid)).ok() })
1092 }
1093 #[doc(hidden)]
1094 pub fn IAccessoryManager<R, F: FnOnce(&IAccessoryManager) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
1095 static SHARED: ::windows::imp::FactoryCache<AccessoryManager, IAccessoryManager> = ::windows::imp::FactoryCache::new();
1096 SHARED.call(callback)
1097 }
1098 #[doc(hidden)]
1099 pub fn IAccessoryManager2<R, F: FnOnce(&IAccessoryManager2) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
1100 static SHARED: ::windows::imp::FactoryCache<AccessoryManager, IAccessoryManager2> = ::windows::imp::FactoryCache::new();
1101 SHARED.call(callback)
1102 }
1103 #[doc(hidden)]
1104 pub fn IAccessoryManager3<R, F: FnOnce(&IAccessoryManager3) -> ::windows::core::Result<R>>(callback: F) -> ::windows::core::Result<R> {
1105 static SHARED: ::windows::imp::FactoryCache<AccessoryManager, IAccessoryManager3> = ::windows::imp::FactoryCache::new();
1106 SHARED.call(callback)
1107 }
1108}
1109impl ::windows::core::RuntimeName for AccessoryManager {
1110 const NAME: &'static str = "Windows.Phone.Notification.Management.AccessoryManager";
1111}
1112#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
1113#[repr(transparent)]
1114pub struct AlarmNotificationTriggerDetails(::windows::core::IUnknown);
1115impl AlarmNotificationTriggerDetails {
1116 #[doc = "*Required features: `\"Foundation\"`*"]
1117 #[cfg(feature = "Foundation")]
1118 pub fn TimeCreated(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
1119 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1120 unsafe {
1121 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
1122 (::windows::core::Interface::vtable(this).TimeCreated)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1123 }
1124 }
1125 pub fn AppDisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1126 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1127 unsafe {
1128 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1129 (::windows::core::Interface::vtable(this).AppDisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1130 }
1131 }
1132 pub fn AppId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1133 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1134 unsafe {
1135 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1136 (::windows::core::Interface::vtable(this).AppId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1137 }
1138 }
1139 pub fn AccessoryNotificationType(&self) -> ::windows::core::Result<AccessoryNotificationType> {
1140 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1141 unsafe {
1142 let mut result__ = ::windows::core::zeroed::<AccessoryNotificationType>();
1143 (::windows::core::Interface::vtable(this).AccessoryNotificationType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1144 }
1145 }
1146 pub fn StartedProcessing(&self) -> ::windows::core::Result<bool> {
1147 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1148 unsafe {
1149 let mut result__ = ::windows::core::zeroed::<bool>();
1150 (::windows::core::Interface::vtable(this).StartedProcessing)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1151 }
1152 }
1153 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::core::Result<()> {
1154 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1155 unsafe { (::windows::core::Interface::vtable(this).SetStartedProcessing)(::windows::core::Interface::as_raw(this), value).ok() }
1156 }
1157 pub fn AlarmId(&self) -> ::windows::core::Result<::windows::core::GUID> {
1158 let this = self;
1159 unsafe {
1160 let mut result__ = ::windows::core::zeroed::<::windows::core::GUID>();
1161 (::windows::core::Interface::vtable(this).AlarmId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1162 }
1163 }
1164 pub fn Title(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1165 let this = self;
1166 unsafe {
1167 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1168 (::windows::core::Interface::vtable(this).Title)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1169 }
1170 }
1171 #[doc = "*Required features: `\"Foundation\"`*"]
1172 #[cfg(feature = "Foundation")]
1173 pub fn Timestamp(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
1174 let this = self;
1175 unsafe {
1176 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
1177 (::windows::core::Interface::vtable(this).Timestamp)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1178 }
1179 }
1180 pub fn ReminderState(&self) -> ::windows::core::Result<ReminderState> {
1181 let this = self;
1182 unsafe {
1183 let mut result__ = ::windows::core::zeroed::<ReminderState>();
1184 (::windows::core::Interface::vtable(this).ReminderState)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1185 }
1186 }
1187 pub fn InstanceId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1188 let this = &::windows::core::ComInterface::cast::<IAlarmNotificationTriggerDetails2>(self)?;
1189 unsafe {
1190 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1191 (::windows::core::Interface::vtable(this).InstanceId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1192 }
1193 }
1194}
1195impl ::core::cmp::PartialEq for AlarmNotificationTriggerDetails {
1196 fn eq(&self, other: &Self) -> bool {
1197 self.0 == other.0
1198 }
1199}
1200impl ::core::cmp::Eq for AlarmNotificationTriggerDetails {}
1201impl ::core::fmt::Debug for AlarmNotificationTriggerDetails {
1202 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1203 f.debug_tuple("AlarmNotificationTriggerDetails").field(&self.0).finish()
1204 }
1205}
1206impl ::windows::core::RuntimeType for AlarmNotificationTriggerDetails {
1207 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.AlarmNotificationTriggerDetails;{38f5fa30-c738-4da2-908c-775d83c36abb})");
1208}
1209impl ::core::clone::Clone for AlarmNotificationTriggerDetails {
1210 fn clone(&self) -> Self {
1211 Self(self.0.clone())
1212 }
1213}
1214unsafe impl ::windows::core::Interface for AlarmNotificationTriggerDetails {
1215 type Vtable = IAlarmNotificationTriggerDetails_Vtbl;
1216}
1217unsafe impl ::windows::core::ComInterface for AlarmNotificationTriggerDetails {
1218 const IID: ::windows::core::GUID = <IAlarmNotificationTriggerDetails as ::windows::core::ComInterface>::IID;
1219}
1220impl ::windows::core::RuntimeName for AlarmNotificationTriggerDetails {
1221 const NAME: &'static str = "Windows.Phone.Notification.Management.AlarmNotificationTriggerDetails";
1222}
1223::windows::imp::interface_hierarchy!(AlarmNotificationTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
1224impl ::windows::core::CanTryInto<IAccessoryNotificationTriggerDetails> for AlarmNotificationTriggerDetails {}
1225#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
1226#[repr(transparent)]
1227pub struct AppNotificationInfo(::windows::core::IUnknown);
1228impl AppNotificationInfo {
1229 pub fn Id(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1230 let this = self;
1231 unsafe {
1232 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1233 (::windows::core::Interface::vtable(this).Id)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1234 }
1235 }
1236 pub fn Name(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1237 let this = self;
1238 unsafe {
1239 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1240 (::windows::core::Interface::vtable(this).Name)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1241 }
1242 }
1243}
1244impl ::core::cmp::PartialEq for AppNotificationInfo {
1245 fn eq(&self, other: &Self) -> bool {
1246 self.0 == other.0
1247 }
1248}
1249impl ::core::cmp::Eq for AppNotificationInfo {}
1250impl ::core::fmt::Debug for AppNotificationInfo {
1251 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1252 f.debug_tuple("AppNotificationInfo").field(&self.0).finish()
1253 }
1254}
1255impl ::windows::core::RuntimeType for AppNotificationInfo {
1256 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.AppNotificationInfo;{2157bea5-e286-45d3-9bea-f790fc216e0e})");
1257}
1258impl ::core::clone::Clone for AppNotificationInfo {
1259 fn clone(&self) -> Self {
1260 Self(self.0.clone())
1261 }
1262}
1263unsafe impl ::windows::core::Interface for AppNotificationInfo {
1264 type Vtable = IAppNotificationInfo_Vtbl;
1265}
1266unsafe impl ::windows::core::ComInterface for AppNotificationInfo {
1267 const IID: ::windows::core::GUID = <IAppNotificationInfo as ::windows::core::ComInterface>::IID;
1268}
1269impl ::windows::core::RuntimeName for AppNotificationInfo {
1270 const NAME: &'static str = "Windows.Phone.Notification.Management.AppNotificationInfo";
1271}
1272::windows::imp::interface_hierarchy!(AppNotificationInfo, ::windows::core::IUnknown, ::windows::core::IInspectable);
1273#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
1274#[repr(transparent)]
1275pub struct BinaryId(::windows::core::IUnknown);
1276impl BinaryId {
1277 pub fn Id(&self) -> ::windows::core::Result<u8> {
1278 let this = self;
1279 unsafe {
1280 let mut result__ = ::windows::core::zeroed::<u8>();
1281 (::windows::core::Interface::vtable(this).Id)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1282 }
1283 }
1284 pub fn Length(&self) -> ::windows::core::Result<u32> {
1285 let this = self;
1286 unsafe {
1287 let mut result__ = ::windows::core::zeroed::<u32>();
1288 (::windows::core::Interface::vtable(this).Length)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1289 }
1290 }
1291}
1292impl ::core::cmp::PartialEq for BinaryId {
1293 fn eq(&self, other: &Self) -> bool {
1294 self.0 == other.0
1295 }
1296}
1297impl ::core::cmp::Eq for BinaryId {}
1298impl ::core::fmt::Debug for BinaryId {
1299 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1300 f.debug_tuple("BinaryId").field(&self.0).finish()
1301 }
1302}
1303impl ::windows::core::RuntimeType for BinaryId {
1304 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.BinaryId;{4f0da531-5595-44b4-9181-ce4efa3fc168})");
1305}
1306impl ::core::clone::Clone for BinaryId {
1307 fn clone(&self) -> Self {
1308 Self(self.0.clone())
1309 }
1310}
1311unsafe impl ::windows::core::Interface for BinaryId {
1312 type Vtable = IBinaryId_Vtbl;
1313}
1314unsafe impl ::windows::core::ComInterface for BinaryId {
1315 const IID: ::windows::core::GUID = <IBinaryId as ::windows::core::ComInterface>::IID;
1316}
1317impl ::windows::core::RuntimeName for BinaryId {
1318 const NAME: &'static str = "Windows.Phone.Notification.Management.BinaryId";
1319}
1320::windows::imp::interface_hierarchy!(BinaryId, ::windows::core::IUnknown, ::windows::core::IInspectable);
1321#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
1322#[repr(transparent)]
1323pub struct CalendarChangedNotificationTriggerDetails(::windows::core::IUnknown);
1324impl CalendarChangedNotificationTriggerDetails {
1325 #[doc = "*Required features: `\"Foundation\"`*"]
1326 #[cfg(feature = "Foundation")]
1327 pub fn TimeCreated(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
1328 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1329 unsafe {
1330 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
1331 (::windows::core::Interface::vtable(this).TimeCreated)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1332 }
1333 }
1334 pub fn AppDisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1335 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1336 unsafe {
1337 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1338 (::windows::core::Interface::vtable(this).AppDisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1339 }
1340 }
1341 pub fn AppId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1342 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1343 unsafe {
1344 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1345 (::windows::core::Interface::vtable(this).AppId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1346 }
1347 }
1348 pub fn AccessoryNotificationType(&self) -> ::windows::core::Result<AccessoryNotificationType> {
1349 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1350 unsafe {
1351 let mut result__ = ::windows::core::zeroed::<AccessoryNotificationType>();
1352 (::windows::core::Interface::vtable(this).AccessoryNotificationType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1353 }
1354 }
1355 pub fn StartedProcessing(&self) -> ::windows::core::Result<bool> {
1356 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1357 unsafe {
1358 let mut result__ = ::windows::core::zeroed::<bool>();
1359 (::windows::core::Interface::vtable(this).StartedProcessing)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1360 }
1361 }
1362 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::core::Result<()> {
1363 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1364 unsafe { (::windows::core::Interface::vtable(this).SetStartedProcessing)(::windows::core::Interface::as_raw(this), value).ok() }
1365 }
1366 pub fn EventType(&self) -> ::windows::core::Result<CalendarChangedEvent> {
1367 let this = self;
1368 unsafe {
1369 let mut result__ = ::windows::core::zeroed::<CalendarChangedEvent>();
1370 (::windows::core::Interface::vtable(this).EventType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1371 }
1372 }
1373 pub fn ItemId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1374 let this = self;
1375 unsafe {
1376 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1377 (::windows::core::Interface::vtable(this).ItemId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1378 }
1379 }
1380}
1381impl ::core::cmp::PartialEq for CalendarChangedNotificationTriggerDetails {
1382 fn eq(&self, other: &Self) -> bool {
1383 self.0 == other.0
1384 }
1385}
1386impl ::core::cmp::Eq for CalendarChangedNotificationTriggerDetails {}
1387impl ::core::fmt::Debug for CalendarChangedNotificationTriggerDetails {
1388 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1389 f.debug_tuple("CalendarChangedNotificationTriggerDetails").field(&self.0).finish()
1390 }
1391}
1392impl ::windows::core::RuntimeType for CalendarChangedNotificationTriggerDetails {
1393 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.CalendarChangedNotificationTriggerDetails;{4b8a3bfc-279d-42ab-9c68-3e87977bf216})");
1394}
1395impl ::core::clone::Clone for CalendarChangedNotificationTriggerDetails {
1396 fn clone(&self) -> Self {
1397 Self(self.0.clone())
1398 }
1399}
1400unsafe impl ::windows::core::Interface for CalendarChangedNotificationTriggerDetails {
1401 type Vtable = ICalendarChangedNotificationTriggerDetails_Vtbl;
1402}
1403unsafe impl ::windows::core::ComInterface for CalendarChangedNotificationTriggerDetails {
1404 const IID: ::windows::core::GUID = <ICalendarChangedNotificationTriggerDetails as ::windows::core::ComInterface>::IID;
1405}
1406impl ::windows::core::RuntimeName for CalendarChangedNotificationTriggerDetails {
1407 const NAME: &'static str = "Windows.Phone.Notification.Management.CalendarChangedNotificationTriggerDetails";
1408}
1409::windows::imp::interface_hierarchy!(CalendarChangedNotificationTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
1410impl ::windows::core::CanTryInto<IAccessoryNotificationTriggerDetails> for CalendarChangedNotificationTriggerDetails {}
1411#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
1412#[repr(transparent)]
1413pub struct CortanaTileNotificationTriggerDetails(::windows::core::IUnknown);
1414impl CortanaTileNotificationTriggerDetails {
1415 #[doc = "*Required features: `\"Foundation\"`*"]
1416 #[cfg(feature = "Foundation")]
1417 pub fn TimeCreated(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
1418 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1419 unsafe {
1420 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
1421 (::windows::core::Interface::vtable(this).TimeCreated)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1422 }
1423 }
1424 pub fn AppDisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1425 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1426 unsafe {
1427 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1428 (::windows::core::Interface::vtable(this).AppDisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1429 }
1430 }
1431 pub fn AppId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1432 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1433 unsafe {
1434 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1435 (::windows::core::Interface::vtable(this).AppId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1436 }
1437 }
1438 pub fn AccessoryNotificationType(&self) -> ::windows::core::Result<AccessoryNotificationType> {
1439 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1440 unsafe {
1441 let mut result__ = ::windows::core::zeroed::<AccessoryNotificationType>();
1442 (::windows::core::Interface::vtable(this).AccessoryNotificationType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1443 }
1444 }
1445 pub fn StartedProcessing(&self) -> ::windows::core::Result<bool> {
1446 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1447 unsafe {
1448 let mut result__ = ::windows::core::zeroed::<bool>();
1449 (::windows::core::Interface::vtable(this).StartedProcessing)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1450 }
1451 }
1452 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::core::Result<()> {
1453 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1454 unsafe { (::windows::core::Interface::vtable(this).SetStartedProcessing)(::windows::core::Interface::as_raw(this), value).ok() }
1455 }
1456 pub fn TileId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1457 let this = self;
1458 unsafe {
1459 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1460 (::windows::core::Interface::vtable(this).TileId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1461 }
1462 }
1463 pub fn Content(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1464 let this = self;
1465 unsafe {
1466 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1467 (::windows::core::Interface::vtable(this).Content)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1468 }
1469 }
1470 pub fn LargeContent1(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1471 let this = self;
1472 unsafe {
1473 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1474 (::windows::core::Interface::vtable(this).LargeContent1)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1475 }
1476 }
1477 pub fn LargeContent2(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1478 let this = self;
1479 unsafe {
1480 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1481 (::windows::core::Interface::vtable(this).LargeContent2)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1482 }
1483 }
1484 pub fn EmphasizedText(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1485 let this = self;
1486 unsafe {
1487 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1488 (::windows::core::Interface::vtable(this).EmphasizedText)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1489 }
1490 }
1491 pub fn NonWrappedSmallContent1(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1492 let this = self;
1493 unsafe {
1494 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1495 (::windows::core::Interface::vtable(this).NonWrappedSmallContent1)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1496 }
1497 }
1498 pub fn NonWrappedSmallContent2(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1499 let this = self;
1500 unsafe {
1501 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1502 (::windows::core::Interface::vtable(this).NonWrappedSmallContent2)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1503 }
1504 }
1505 pub fn NonWrappedSmallContent3(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1506 let this = self;
1507 unsafe {
1508 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1509 (::windows::core::Interface::vtable(this).NonWrappedSmallContent3)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1510 }
1511 }
1512 pub fn NonWrappedSmallContent4(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1513 let this = self;
1514 unsafe {
1515 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1516 (::windows::core::Interface::vtable(this).NonWrappedSmallContent4)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1517 }
1518 }
1519 pub fn Source(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1520 let this = self;
1521 unsafe {
1522 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1523 (::windows::core::Interface::vtable(this).Source)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1524 }
1525 }
1526}
1527impl ::core::cmp::PartialEq for CortanaTileNotificationTriggerDetails {
1528 fn eq(&self, other: &Self) -> bool {
1529 self.0 == other.0
1530 }
1531}
1532impl ::core::cmp::Eq for CortanaTileNotificationTriggerDetails {}
1533impl ::core::fmt::Debug for CortanaTileNotificationTriggerDetails {
1534 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1535 f.debug_tuple("CortanaTileNotificationTriggerDetails").field(&self.0).finish()
1536 }
1537}
1538impl ::windows::core::RuntimeType for CortanaTileNotificationTriggerDetails {
1539 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.CortanaTileNotificationTriggerDetails;{dc0f01d5-1489-46bb-b73b-7f90067ecf27})");
1540}
1541impl ::core::clone::Clone for CortanaTileNotificationTriggerDetails {
1542 fn clone(&self) -> Self {
1543 Self(self.0.clone())
1544 }
1545}
1546unsafe impl ::windows::core::Interface for CortanaTileNotificationTriggerDetails {
1547 type Vtable = ICortanaTileNotificationTriggerDetails_Vtbl;
1548}
1549unsafe impl ::windows::core::ComInterface for CortanaTileNotificationTriggerDetails {
1550 const IID: ::windows::core::GUID = <ICortanaTileNotificationTriggerDetails as ::windows::core::ComInterface>::IID;
1551}
1552impl ::windows::core::RuntimeName for CortanaTileNotificationTriggerDetails {
1553 const NAME: &'static str = "Windows.Phone.Notification.Management.CortanaTileNotificationTriggerDetails";
1554}
1555::windows::imp::interface_hierarchy!(CortanaTileNotificationTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
1556impl ::windows::core::CanTryInto<IAccessoryNotificationTriggerDetails> for CortanaTileNotificationTriggerDetails {}
1557#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
1558#[repr(transparent)]
1559pub struct EmailAccountInfo(::windows::core::IUnknown);
1560impl EmailAccountInfo {
1561 pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1562 let this = self;
1563 unsafe {
1564 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1565 (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1566 }
1567 }
1568 pub fn IsNotificationEnabled(&self) -> ::windows::core::Result<bool> {
1569 let this = self;
1570 unsafe {
1571 let mut result__ = ::windows::core::zeroed::<bool>();
1572 (::windows::core::Interface::vtable(this).IsNotificationEnabled)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1573 }
1574 }
1575}
1576impl ::core::cmp::PartialEq for EmailAccountInfo {
1577 fn eq(&self, other: &Self) -> bool {
1578 self.0 == other.0
1579 }
1580}
1581impl ::core::cmp::Eq for EmailAccountInfo {}
1582impl ::core::fmt::Debug for EmailAccountInfo {
1583 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1584 f.debug_tuple("EmailAccountInfo").field(&self.0).finish()
1585 }
1586}
1587impl ::windows::core::RuntimeType for EmailAccountInfo {
1588 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.EmailAccountInfo;{dfbc02ab-bda0-4568-927e-b2ede35818a1})");
1589}
1590impl ::core::clone::Clone for EmailAccountInfo {
1591 fn clone(&self) -> Self {
1592 Self(self.0.clone())
1593 }
1594}
1595unsafe impl ::windows::core::Interface for EmailAccountInfo {
1596 type Vtable = IEmailAccountInfo_Vtbl;
1597}
1598unsafe impl ::windows::core::ComInterface for EmailAccountInfo {
1599 const IID: ::windows::core::GUID = <IEmailAccountInfo as ::windows::core::ComInterface>::IID;
1600}
1601impl ::windows::core::RuntimeName for EmailAccountInfo {
1602 const NAME: &'static str = "Windows.Phone.Notification.Management.EmailAccountInfo";
1603}
1604::windows::imp::interface_hierarchy!(EmailAccountInfo, ::windows::core::IUnknown, ::windows::core::IInspectable);
1605#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
1606#[repr(transparent)]
1607pub struct EmailFolderInfo(::windows::core::IUnknown);
1608impl EmailFolderInfo {
1609 pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1610 let this = self;
1611 unsafe {
1612 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1613 (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1614 }
1615 }
1616 pub fn IsNotificationEnabled(&self) -> ::windows::core::Result<bool> {
1617 let this = self;
1618 unsafe {
1619 let mut result__ = ::windows::core::zeroed::<bool>();
1620 (::windows::core::Interface::vtable(this).IsNotificationEnabled)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1621 }
1622 }
1623}
1624impl ::core::cmp::PartialEq for EmailFolderInfo {
1625 fn eq(&self, other: &Self) -> bool {
1626 self.0 == other.0
1627 }
1628}
1629impl ::core::cmp::Eq for EmailFolderInfo {}
1630impl ::core::fmt::Debug for EmailFolderInfo {
1631 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1632 f.debug_tuple("EmailFolderInfo").field(&self.0).finish()
1633 }
1634}
1635impl ::windows::core::RuntimeType for EmailFolderInfo {
1636 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.EmailFolderInfo;{c207150e-e237-46d6-90e6-4f529eeac1e2})");
1637}
1638impl ::core::clone::Clone for EmailFolderInfo {
1639 fn clone(&self) -> Self {
1640 Self(self.0.clone())
1641 }
1642}
1643unsafe impl ::windows::core::Interface for EmailFolderInfo {
1644 type Vtable = IEmailFolderInfo_Vtbl;
1645}
1646unsafe impl ::windows::core::ComInterface for EmailFolderInfo {
1647 const IID: ::windows::core::GUID = <IEmailFolderInfo as ::windows::core::ComInterface>::IID;
1648}
1649impl ::windows::core::RuntimeName for EmailFolderInfo {
1650 const NAME: &'static str = "Windows.Phone.Notification.Management.EmailFolderInfo";
1651}
1652::windows::imp::interface_hierarchy!(EmailFolderInfo, ::windows::core::IUnknown, ::windows::core::IInspectable);
1653#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
1654#[repr(transparent)]
1655pub struct EmailNotificationTriggerDetails(::windows::core::IUnknown);
1656impl EmailNotificationTriggerDetails {
1657 #[doc = "*Required features: `\"Foundation\"`*"]
1658 #[cfg(feature = "Foundation")]
1659 pub fn TimeCreated(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
1660 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1661 unsafe {
1662 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
1663 (::windows::core::Interface::vtable(this).TimeCreated)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1664 }
1665 }
1666 pub fn AppDisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1667 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1668 unsafe {
1669 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1670 (::windows::core::Interface::vtable(this).AppDisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1671 }
1672 }
1673 pub fn AppId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1674 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1675 unsafe {
1676 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1677 (::windows::core::Interface::vtable(this).AppId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1678 }
1679 }
1680 pub fn AccessoryNotificationType(&self) -> ::windows::core::Result<AccessoryNotificationType> {
1681 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1682 unsafe {
1683 let mut result__ = ::windows::core::zeroed::<AccessoryNotificationType>();
1684 (::windows::core::Interface::vtable(this).AccessoryNotificationType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1685 }
1686 }
1687 pub fn StartedProcessing(&self) -> ::windows::core::Result<bool> {
1688 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1689 unsafe {
1690 let mut result__ = ::windows::core::zeroed::<bool>();
1691 (::windows::core::Interface::vtable(this).StartedProcessing)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1692 }
1693 }
1694 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::core::Result<()> {
1695 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1696 unsafe { (::windows::core::Interface::vtable(this).SetStartedProcessing)(::windows::core::Interface::as_raw(this), value).ok() }
1697 }
1698 pub fn AccountName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1699 let this = self;
1700 unsafe {
1701 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1702 (::windows::core::Interface::vtable(this).AccountName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1703 }
1704 }
1705 pub fn ParentFolderName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1706 let this = self;
1707 unsafe {
1708 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1709 (::windows::core::Interface::vtable(this).ParentFolderName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1710 }
1711 }
1712 pub fn SenderName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1713 let this = self;
1714 unsafe {
1715 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1716 (::windows::core::Interface::vtable(this).SenderName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1717 }
1718 }
1719 pub fn SenderAddress(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1720 let this = self;
1721 unsafe {
1722 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1723 (::windows::core::Interface::vtable(this).SenderAddress)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1724 }
1725 }
1726 #[doc = "*Required features: `\"ApplicationModel_Email\"`*"]
1727 #[cfg(feature = "ApplicationModel_Email")]
1728 pub fn EmailMessage(&self) -> ::windows::core::Result<super::super::super::ApplicationModel::Email::EmailMessage> {
1729 let this = self;
1730 unsafe {
1731 let mut result__ = ::windows::core::zeroed::<super::super::super::ApplicationModel::Email::EmailMessage>();
1732 (::windows::core::Interface::vtable(this).EmailMessage)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1733 }
1734 }
1735 #[doc = "*Required features: `\"Foundation\"`*"]
1736 #[cfg(feature = "Foundation")]
1737 pub fn Timestamp(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
1738 let this = self;
1739 unsafe {
1740 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
1741 (::windows::core::Interface::vtable(this).Timestamp)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1742 }
1743 }
1744 pub fn MessageEntryId(&self) -> ::windows::core::Result<BinaryId> {
1745 let this = &::windows::core::ComInterface::cast::<IEmailNotificationTriggerDetails2>(self)?;
1746 unsafe {
1747 let mut result__ = ::windows::core::zeroed::<BinaryId>();
1748 (::windows::core::Interface::vtable(this).MessageEntryId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1749 }
1750 }
1751}
1752impl ::core::cmp::PartialEq for EmailNotificationTriggerDetails {
1753 fn eq(&self, other: &Self) -> bool {
1754 self.0 == other.0
1755 }
1756}
1757impl ::core::cmp::Eq for EmailNotificationTriggerDetails {}
1758impl ::core::fmt::Debug for EmailNotificationTriggerDetails {
1759 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1760 f.debug_tuple("EmailNotificationTriggerDetails").field(&self.0).finish()
1761 }
1762}
1763impl ::windows::core::RuntimeType for EmailNotificationTriggerDetails {
1764 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.EmailNotificationTriggerDetails;{f3b82612-46cf-4e70-8e0d-7b2e04ab492b})");
1765}
1766impl ::core::clone::Clone for EmailNotificationTriggerDetails {
1767 fn clone(&self) -> Self {
1768 Self(self.0.clone())
1769 }
1770}
1771unsafe impl ::windows::core::Interface for EmailNotificationTriggerDetails {
1772 type Vtable = IEmailNotificationTriggerDetails_Vtbl;
1773}
1774unsafe impl ::windows::core::ComInterface for EmailNotificationTriggerDetails {
1775 const IID: ::windows::core::GUID = <IEmailNotificationTriggerDetails as ::windows::core::ComInterface>::IID;
1776}
1777impl ::windows::core::RuntimeName for EmailNotificationTriggerDetails {
1778 const NAME: &'static str = "Windows.Phone.Notification.Management.EmailNotificationTriggerDetails";
1779}
1780::windows::imp::interface_hierarchy!(EmailNotificationTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
1781impl ::windows::core::CanTryInto<IAccessoryNotificationTriggerDetails> for EmailNotificationTriggerDetails {}
1782#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
1783#[repr(transparent)]
1784pub struct EmailReadNotificationTriggerDetails(::windows::core::IUnknown);
1785impl EmailReadNotificationTriggerDetails {
1786 #[doc = "*Required features: `\"Foundation\"`*"]
1787 #[cfg(feature = "Foundation")]
1788 pub fn TimeCreated(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
1789 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1790 unsafe {
1791 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
1792 (::windows::core::Interface::vtable(this).TimeCreated)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1793 }
1794 }
1795 pub fn AppDisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1796 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1797 unsafe {
1798 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1799 (::windows::core::Interface::vtable(this).AppDisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1800 }
1801 }
1802 pub fn AppId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1803 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1804 unsafe {
1805 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1806 (::windows::core::Interface::vtable(this).AppId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1807 }
1808 }
1809 pub fn AccessoryNotificationType(&self) -> ::windows::core::Result<AccessoryNotificationType> {
1810 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1811 unsafe {
1812 let mut result__ = ::windows::core::zeroed::<AccessoryNotificationType>();
1813 (::windows::core::Interface::vtable(this).AccessoryNotificationType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1814 }
1815 }
1816 pub fn StartedProcessing(&self) -> ::windows::core::Result<bool> {
1817 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1818 unsafe {
1819 let mut result__ = ::windows::core::zeroed::<bool>();
1820 (::windows::core::Interface::vtable(this).StartedProcessing)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1821 }
1822 }
1823 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::core::Result<()> {
1824 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1825 unsafe { (::windows::core::Interface::vtable(this).SetStartedProcessing)(::windows::core::Interface::as_raw(this), value).ok() }
1826 }
1827 pub fn AccountName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1828 let this = self;
1829 unsafe {
1830 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1831 (::windows::core::Interface::vtable(this).AccountName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1832 }
1833 }
1834 pub fn ParentFolderName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1835 let this = self;
1836 unsafe {
1837 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1838 (::windows::core::Interface::vtable(this).ParentFolderName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1839 }
1840 }
1841 pub fn MessageEntryId(&self) -> ::windows::core::Result<BinaryId> {
1842 let this = self;
1843 unsafe {
1844 let mut result__ = ::windows::core::zeroed::<BinaryId>();
1845 (::windows::core::Interface::vtable(this).MessageEntryId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1846 }
1847 }
1848 pub fn IsRead(&self) -> ::windows::core::Result<bool> {
1849 let this = self;
1850 unsafe {
1851 let mut result__ = ::windows::core::zeroed::<bool>();
1852 (::windows::core::Interface::vtable(this).IsRead)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1853 }
1854 }
1855}
1856impl ::core::cmp::PartialEq for EmailReadNotificationTriggerDetails {
1857 fn eq(&self, other: &Self) -> bool {
1858 self.0 == other.0
1859 }
1860}
1861impl ::core::cmp::Eq for EmailReadNotificationTriggerDetails {}
1862impl ::core::fmt::Debug for EmailReadNotificationTriggerDetails {
1863 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1864 f.debug_tuple("EmailReadNotificationTriggerDetails").field(&self.0).finish()
1865 }
1866}
1867impl ::windows::core::RuntimeType for EmailReadNotificationTriggerDetails {
1868 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.EmailReadNotificationTriggerDetails;{f5b7a087-06f3-4e3e-8c42-325e67010413})");
1869}
1870impl ::core::clone::Clone for EmailReadNotificationTriggerDetails {
1871 fn clone(&self) -> Self {
1872 Self(self.0.clone())
1873 }
1874}
1875unsafe impl ::windows::core::Interface for EmailReadNotificationTriggerDetails {
1876 type Vtable = IEmailReadNotificationTriggerDetails_Vtbl;
1877}
1878unsafe impl ::windows::core::ComInterface for EmailReadNotificationTriggerDetails {
1879 const IID: ::windows::core::GUID = <IEmailReadNotificationTriggerDetails as ::windows::core::ComInterface>::IID;
1880}
1881impl ::windows::core::RuntimeName for EmailReadNotificationTriggerDetails {
1882 const NAME: &'static str = "Windows.Phone.Notification.Management.EmailReadNotificationTriggerDetails";
1883}
1884::windows::imp::interface_hierarchy!(EmailReadNotificationTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
1885impl ::windows::core::CanTryInto<IAccessoryNotificationTriggerDetails> for EmailReadNotificationTriggerDetails {}
1886#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
1887#[repr(transparent)]
1888pub struct MediaControlsTriggerDetails(::windows::core::IUnknown);
1889impl MediaControlsTriggerDetails {
1890 #[doc = "*Required features: `\"Foundation\"`*"]
1891 #[cfg(feature = "Foundation")]
1892 pub fn TimeCreated(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
1893 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1894 unsafe {
1895 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
1896 (::windows::core::Interface::vtable(this).TimeCreated)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1897 }
1898 }
1899 pub fn AppDisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1900 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1901 unsafe {
1902 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1903 (::windows::core::Interface::vtable(this).AppDisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1904 }
1905 }
1906 pub fn AppId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1907 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1908 unsafe {
1909 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1910 (::windows::core::Interface::vtable(this).AppId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1911 }
1912 }
1913 pub fn AccessoryNotificationType(&self) -> ::windows::core::Result<AccessoryNotificationType> {
1914 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1915 unsafe {
1916 let mut result__ = ::windows::core::zeroed::<AccessoryNotificationType>();
1917 (::windows::core::Interface::vtable(this).AccessoryNotificationType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1918 }
1919 }
1920 pub fn StartedProcessing(&self) -> ::windows::core::Result<bool> {
1921 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1922 unsafe {
1923 let mut result__ = ::windows::core::zeroed::<bool>();
1924 (::windows::core::Interface::vtable(this).StartedProcessing)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1925 }
1926 }
1927 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::core::Result<()> {
1928 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
1929 unsafe { (::windows::core::Interface::vtable(this).SetStartedProcessing)(::windows::core::Interface::as_raw(this), value).ok() }
1930 }
1931 pub fn PlaybackStatus(&self) -> ::windows::core::Result<PlaybackStatus> {
1932 let this = self;
1933 unsafe {
1934 let mut result__ = ::windows::core::zeroed::<PlaybackStatus>();
1935 (::windows::core::Interface::vtable(this).PlaybackStatus)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1936 }
1937 }
1938 pub fn MediaMetadata(&self) -> ::windows::core::Result<MediaMetadata> {
1939 let this = self;
1940 unsafe {
1941 let mut result__ = ::windows::core::zeroed::<MediaMetadata>();
1942 (::windows::core::Interface::vtable(this).MediaMetadata)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1943 }
1944 }
1945}
1946impl ::core::cmp::PartialEq for MediaControlsTriggerDetails {
1947 fn eq(&self, other: &Self) -> bool {
1948 self.0 == other.0
1949 }
1950}
1951impl ::core::cmp::Eq for MediaControlsTriggerDetails {}
1952impl ::core::fmt::Debug for MediaControlsTriggerDetails {
1953 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
1954 f.debug_tuple("MediaControlsTriggerDetails").field(&self.0).finish()
1955 }
1956}
1957impl ::windows::core::RuntimeType for MediaControlsTriggerDetails {
1958 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.MediaControlsTriggerDetails;{fab4648b-ae45-4548-91ca-4ab0548e33b5})");
1959}
1960impl ::core::clone::Clone for MediaControlsTriggerDetails {
1961 fn clone(&self) -> Self {
1962 Self(self.0.clone())
1963 }
1964}
1965unsafe impl ::windows::core::Interface for MediaControlsTriggerDetails {
1966 type Vtable = IMediaControlsTriggerDetails_Vtbl;
1967}
1968unsafe impl ::windows::core::ComInterface for MediaControlsTriggerDetails {
1969 const IID: ::windows::core::GUID = <IMediaControlsTriggerDetails as ::windows::core::ComInterface>::IID;
1970}
1971impl ::windows::core::RuntimeName for MediaControlsTriggerDetails {
1972 const NAME: &'static str = "Windows.Phone.Notification.Management.MediaControlsTriggerDetails";
1973}
1974::windows::imp::interface_hierarchy!(MediaControlsTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
1975impl ::windows::core::CanTryInto<IAccessoryNotificationTriggerDetails> for MediaControlsTriggerDetails {}
1976#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
1977#[repr(transparent)]
1978pub struct MediaMetadata(::windows::core::IUnknown);
1979impl MediaMetadata {
1980 pub fn Title(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1981 let this = self;
1982 unsafe {
1983 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1984 (::windows::core::Interface::vtable(this).Title)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1985 }
1986 }
1987 pub fn Subtitle(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1988 let this = self;
1989 unsafe {
1990 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1991 (::windows::core::Interface::vtable(this).Subtitle)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1992 }
1993 }
1994 pub fn Artist(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
1995 let this = self;
1996 unsafe {
1997 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
1998 (::windows::core::Interface::vtable(this).Artist)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
1999 }
2000 }
2001 pub fn Album(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2002 let this = self;
2003 unsafe {
2004 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2005 (::windows::core::Interface::vtable(this).Album)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2006 }
2007 }
2008 pub fn Track(&self) -> ::windows::core::Result<u32> {
2009 let this = self;
2010 unsafe {
2011 let mut result__ = ::windows::core::zeroed::<u32>();
2012 (::windows::core::Interface::vtable(this).Track)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2013 }
2014 }
2015 #[doc = "*Required features: `\"Foundation\"`*"]
2016 #[cfg(feature = "Foundation")]
2017 pub fn Duration(&self) -> ::windows::core::Result<super::super::super::Foundation::TimeSpan> {
2018 let this = self;
2019 unsafe {
2020 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::TimeSpan>();
2021 (::windows::core::Interface::vtable(this).Duration)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2022 }
2023 }
2024 #[doc = "*Required features: `\"Storage_Streams\"`*"]
2025 #[cfg(feature = "Storage_Streams")]
2026 pub fn Thumbnail(&self) -> ::windows::core::Result<super::super::super::Storage::Streams::IRandomAccessStreamReference> {
2027 let this = self;
2028 unsafe {
2029 let mut result__ = ::windows::core::zeroed::<super::super::super::Storage::Streams::IRandomAccessStreamReference>();
2030 (::windows::core::Interface::vtable(this).Thumbnail)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2031 }
2032 }
2033}
2034impl ::core::cmp::PartialEq for MediaMetadata {
2035 fn eq(&self, other: &Self) -> bool {
2036 self.0 == other.0
2037 }
2038}
2039impl ::core::cmp::Eq for MediaMetadata {}
2040impl ::core::fmt::Debug for MediaMetadata {
2041 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2042 f.debug_tuple("MediaMetadata").field(&self.0).finish()
2043 }
2044}
2045impl ::windows::core::RuntimeType for MediaMetadata {
2046 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.MediaMetadata;{9b50ddf7-bb6c-4330-b3cd-0704a54cdb80})");
2047}
2048impl ::core::clone::Clone for MediaMetadata {
2049 fn clone(&self) -> Self {
2050 Self(self.0.clone())
2051 }
2052}
2053unsafe impl ::windows::core::Interface for MediaMetadata {
2054 type Vtable = IMediaMetadata_Vtbl;
2055}
2056unsafe impl ::windows::core::ComInterface for MediaMetadata {
2057 const IID: ::windows::core::GUID = <IMediaMetadata as ::windows::core::ComInterface>::IID;
2058}
2059impl ::windows::core::RuntimeName for MediaMetadata {
2060 const NAME: &'static str = "Windows.Phone.Notification.Management.MediaMetadata";
2061}
2062::windows::imp::interface_hierarchy!(MediaMetadata, ::windows::core::IUnknown, ::windows::core::IInspectable);
2063#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2064#[repr(transparent)]
2065pub struct PhoneCallDetails(::windows::core::IUnknown);
2066impl PhoneCallDetails {
2067 pub fn PhoneLine(&self) -> ::windows::core::Result<::windows::core::GUID> {
2068 let this = self;
2069 unsafe {
2070 let mut result__ = ::windows::core::zeroed::<::windows::core::GUID>();
2071 (::windows::core::Interface::vtable(this).PhoneLine)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2072 }
2073 }
2074 pub fn CallId(&self) -> ::windows::core::Result<u32> {
2075 let this = self;
2076 unsafe {
2077 let mut result__ = ::windows::core::zeroed::<u32>();
2078 (::windows::core::Interface::vtable(this).CallId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2079 }
2080 }
2081 pub fn CallTransport(&self) -> ::windows::core::Result<PhoneCallTransport> {
2082 let this = self;
2083 unsafe {
2084 let mut result__ = ::windows::core::zeroed::<PhoneCallTransport>();
2085 (::windows::core::Interface::vtable(this).CallTransport)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2086 }
2087 }
2088 pub fn CallMediaType(&self) -> ::windows::core::Result<PhoneMediaType> {
2089 let this = self;
2090 unsafe {
2091 let mut result__ = ::windows::core::zeroed::<PhoneMediaType>();
2092 (::windows::core::Interface::vtable(this).CallMediaType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2093 }
2094 }
2095 pub fn CallDirection(&self) -> ::windows::core::Result<PhoneCallDirection> {
2096 let this = self;
2097 unsafe {
2098 let mut result__ = ::windows::core::zeroed::<PhoneCallDirection>();
2099 (::windows::core::Interface::vtable(this).CallDirection)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2100 }
2101 }
2102 pub fn State(&self) -> ::windows::core::Result<PhoneCallState> {
2103 let this = self;
2104 unsafe {
2105 let mut result__ = ::windows::core::zeroed::<PhoneCallState>();
2106 (::windows::core::Interface::vtable(this).State)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2107 }
2108 }
2109 pub fn ConferenceCallId(&self) -> ::windows::core::Result<u32> {
2110 let this = self;
2111 unsafe {
2112 let mut result__ = ::windows::core::zeroed::<u32>();
2113 (::windows::core::Interface::vtable(this).ConferenceCallId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2114 }
2115 }
2116 #[doc = "*Required features: `\"Foundation\"`*"]
2117 #[cfg(feature = "Foundation")]
2118 pub fn StartTime(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
2119 let this = self;
2120 unsafe {
2121 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
2122 (::windows::core::Interface::vtable(this).StartTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2123 }
2124 }
2125 #[doc = "*Required features: `\"Foundation\"`*"]
2126 #[cfg(feature = "Foundation")]
2127 pub fn EndTime(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
2128 let this = self;
2129 unsafe {
2130 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
2131 (::windows::core::Interface::vtable(this).EndTime)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2132 }
2133 }
2134 pub fn PhoneNumber(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2135 let this = self;
2136 unsafe {
2137 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2138 (::windows::core::Interface::vtable(this).PhoneNumber)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2139 }
2140 }
2141 pub fn ContactName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2142 let this = self;
2143 unsafe {
2144 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2145 (::windows::core::Interface::vtable(this).ContactName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2146 }
2147 }
2148 #[doc = "*Required features: `\"Foundation_Collections\"`*"]
2149 #[cfg(feature = "Foundation_Collections")]
2150 pub fn PresetTextResponses(&self) -> ::windows::core::Result<super::super::super::Foundation::Collections::IVectorView<TextResponse>> {
2151 let this = self;
2152 unsafe {
2153 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::Collections::IVectorView<TextResponse>>();
2154 (::windows::core::Interface::vtable(this).PresetTextResponses)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2155 }
2156 }
2157}
2158impl ::core::cmp::PartialEq for PhoneCallDetails {
2159 fn eq(&self, other: &Self) -> bool {
2160 self.0 == other.0
2161 }
2162}
2163impl ::core::cmp::Eq for PhoneCallDetails {}
2164impl ::core::fmt::Debug for PhoneCallDetails {
2165 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2166 f.debug_tuple("PhoneCallDetails").field(&self.0).finish()
2167 }
2168}
2169impl ::windows::core::RuntimeType for PhoneCallDetails {
2170 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.PhoneCallDetails;{0c1b6f53-f071-483e-bf33-ebd44b724447})");
2171}
2172impl ::core::clone::Clone for PhoneCallDetails {
2173 fn clone(&self) -> Self {
2174 Self(self.0.clone())
2175 }
2176}
2177unsafe impl ::windows::core::Interface for PhoneCallDetails {
2178 type Vtable = IPhoneCallDetails_Vtbl;
2179}
2180unsafe impl ::windows::core::ComInterface for PhoneCallDetails {
2181 const IID: ::windows::core::GUID = <IPhoneCallDetails as ::windows::core::ComInterface>::IID;
2182}
2183impl ::windows::core::RuntimeName for PhoneCallDetails {
2184 const NAME: &'static str = "Windows.Phone.Notification.Management.PhoneCallDetails";
2185}
2186::windows::imp::interface_hierarchy!(PhoneCallDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
2187#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2188#[repr(transparent)]
2189pub struct PhoneLineDetails(::windows::core::IUnknown);
2190impl PhoneLineDetails {
2191 pub fn LineId(&self) -> ::windows::core::Result<::windows::core::GUID> {
2192 let this = self;
2193 unsafe {
2194 let mut result__ = ::windows::core::zeroed::<::windows::core::GUID>();
2195 (::windows::core::Interface::vtable(this).LineId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2196 }
2197 }
2198 pub fn DisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2199 let this = self;
2200 unsafe {
2201 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2202 (::windows::core::Interface::vtable(this).DisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2203 }
2204 }
2205 pub fn LineNumber(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2206 let this = self;
2207 unsafe {
2208 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2209 (::windows::core::Interface::vtable(this).LineNumber)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2210 }
2211 }
2212 pub fn DefaultOutgoingLine(&self) -> ::windows::core::Result<bool> {
2213 let this = self;
2214 unsafe {
2215 let mut result__ = ::windows::core::zeroed::<bool>();
2216 (::windows::core::Interface::vtable(this).DefaultOutgoingLine)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2217 }
2218 }
2219 pub fn VoicemailCount(&self) -> ::windows::core::Result<u32> {
2220 let this = self;
2221 unsafe {
2222 let mut result__ = ::windows::core::zeroed::<u32>();
2223 (::windows::core::Interface::vtable(this).VoicemailCount)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2224 }
2225 }
2226 pub fn RegistrationState(&self) -> ::windows::core::Result<PhoneLineRegistrationState> {
2227 let this = self;
2228 unsafe {
2229 let mut result__ = ::windows::core::zeroed::<PhoneLineRegistrationState>();
2230 (::windows::core::Interface::vtable(this).RegistrationState)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2231 }
2232 }
2233 pub fn MissedCallCount(&self) -> ::windows::core::Result<u32> {
2234 let this = &::windows::core::ComInterface::cast::<IPhoneLineDetails2>(self)?;
2235 unsafe {
2236 let mut result__ = ::windows::core::zeroed::<u32>();
2237 (::windows::core::Interface::vtable(this).MissedCallCount)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2238 }
2239 }
2240}
2241impl ::core::cmp::PartialEq for PhoneLineDetails {
2242 fn eq(&self, other: &Self) -> bool {
2243 self.0 == other.0
2244 }
2245}
2246impl ::core::cmp::Eq for PhoneLineDetails {}
2247impl ::core::fmt::Debug for PhoneLineDetails {
2248 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2249 f.debug_tuple("PhoneLineDetails").field(&self.0).finish()
2250 }
2251}
2252impl ::windows::core::RuntimeType for PhoneLineDetails {
2253 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.PhoneLineDetails;{47eb32dc-33ed-49b9-995c-a296bac82b77})");
2254}
2255impl ::core::clone::Clone for PhoneLineDetails {
2256 fn clone(&self) -> Self {
2257 Self(self.0.clone())
2258 }
2259}
2260unsafe impl ::windows::core::Interface for PhoneLineDetails {
2261 type Vtable = IPhoneLineDetails_Vtbl;
2262}
2263unsafe impl ::windows::core::ComInterface for PhoneLineDetails {
2264 const IID: ::windows::core::GUID = <IPhoneLineDetails as ::windows::core::ComInterface>::IID;
2265}
2266impl ::windows::core::RuntimeName for PhoneLineDetails {
2267 const NAME: &'static str = "Windows.Phone.Notification.Management.PhoneLineDetails";
2268}
2269::windows::imp::interface_hierarchy!(PhoneLineDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
2270#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2271#[repr(transparent)]
2272pub struct PhoneNotificationTriggerDetails(::windows::core::IUnknown);
2273impl PhoneNotificationTriggerDetails {
2274 #[doc = "*Required features: `\"Foundation\"`*"]
2275 #[cfg(feature = "Foundation")]
2276 pub fn TimeCreated(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
2277 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2278 unsafe {
2279 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
2280 (::windows::core::Interface::vtable(this).TimeCreated)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2281 }
2282 }
2283 pub fn AppDisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2284 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2285 unsafe {
2286 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2287 (::windows::core::Interface::vtable(this).AppDisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2288 }
2289 }
2290 pub fn AppId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2291 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2292 unsafe {
2293 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2294 (::windows::core::Interface::vtable(this).AppId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2295 }
2296 }
2297 pub fn AccessoryNotificationType(&self) -> ::windows::core::Result<AccessoryNotificationType> {
2298 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2299 unsafe {
2300 let mut result__ = ::windows::core::zeroed::<AccessoryNotificationType>();
2301 (::windows::core::Interface::vtable(this).AccessoryNotificationType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2302 }
2303 }
2304 pub fn StartedProcessing(&self) -> ::windows::core::Result<bool> {
2305 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2306 unsafe {
2307 let mut result__ = ::windows::core::zeroed::<bool>();
2308 (::windows::core::Interface::vtable(this).StartedProcessing)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2309 }
2310 }
2311 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::core::Result<()> {
2312 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2313 unsafe { (::windows::core::Interface::vtable(this).SetStartedProcessing)(::windows::core::Interface::as_raw(this), value).ok() }
2314 }
2315 pub fn PhoneNotificationType(&self) -> ::windows::core::Result<PhoneNotificationType> {
2316 let this = self;
2317 unsafe {
2318 let mut result__ = ::windows::core::zeroed::<PhoneNotificationType>();
2319 (::windows::core::Interface::vtable(this).PhoneNotificationType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2320 }
2321 }
2322 pub fn CallDetails(&self) -> ::windows::core::Result<PhoneCallDetails> {
2323 let this = self;
2324 unsafe {
2325 let mut result__ = ::windows::core::zeroed::<PhoneCallDetails>();
2326 (::windows::core::Interface::vtable(this).CallDetails)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2327 }
2328 }
2329 pub fn PhoneLineChangedId(&self) -> ::windows::core::Result<::windows::core::GUID> {
2330 let this = self;
2331 unsafe {
2332 let mut result__ = ::windows::core::zeroed::<::windows::core::GUID>();
2333 (::windows::core::Interface::vtable(this).PhoneLineChangedId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2334 }
2335 }
2336}
2337impl ::core::cmp::PartialEq for PhoneNotificationTriggerDetails {
2338 fn eq(&self, other: &Self) -> bool {
2339 self.0 == other.0
2340 }
2341}
2342impl ::core::cmp::Eq for PhoneNotificationTriggerDetails {}
2343impl ::core::fmt::Debug for PhoneNotificationTriggerDetails {
2344 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2345 f.debug_tuple("PhoneNotificationTriggerDetails").field(&self.0).finish()
2346 }
2347}
2348impl ::windows::core::RuntimeType for PhoneNotificationTriggerDetails {
2349 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.PhoneNotificationTriggerDetails;{ccc2fdf7-09c3-4118-91bc-ca6323a8d383})");
2350}
2351impl ::core::clone::Clone for PhoneNotificationTriggerDetails {
2352 fn clone(&self) -> Self {
2353 Self(self.0.clone())
2354 }
2355}
2356unsafe impl ::windows::core::Interface for PhoneNotificationTriggerDetails {
2357 type Vtable = IPhoneNotificationTriggerDetails_Vtbl;
2358}
2359unsafe impl ::windows::core::ComInterface for PhoneNotificationTriggerDetails {
2360 const IID: ::windows::core::GUID = <IPhoneNotificationTriggerDetails as ::windows::core::ComInterface>::IID;
2361}
2362impl ::windows::core::RuntimeName for PhoneNotificationTriggerDetails {
2363 const NAME: &'static str = "Windows.Phone.Notification.Management.PhoneNotificationTriggerDetails";
2364}
2365::windows::imp::interface_hierarchy!(PhoneNotificationTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
2366impl ::windows::core::CanTryInto<IAccessoryNotificationTriggerDetails> for PhoneNotificationTriggerDetails {}
2367#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2368#[repr(transparent)]
2369pub struct ReminderNotificationTriggerDetails(::windows::core::IUnknown);
2370impl ReminderNotificationTriggerDetails {
2371 #[doc = "*Required features: `\"Foundation\"`*"]
2372 #[cfg(feature = "Foundation")]
2373 pub fn TimeCreated(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
2374 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2375 unsafe {
2376 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
2377 (::windows::core::Interface::vtable(this).TimeCreated)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2378 }
2379 }
2380 pub fn AppDisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2381 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2382 unsafe {
2383 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2384 (::windows::core::Interface::vtable(this).AppDisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2385 }
2386 }
2387 pub fn AppId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2388 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2389 unsafe {
2390 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2391 (::windows::core::Interface::vtable(this).AppId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2392 }
2393 }
2394 pub fn AccessoryNotificationType(&self) -> ::windows::core::Result<AccessoryNotificationType> {
2395 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2396 unsafe {
2397 let mut result__ = ::windows::core::zeroed::<AccessoryNotificationType>();
2398 (::windows::core::Interface::vtable(this).AccessoryNotificationType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2399 }
2400 }
2401 pub fn StartedProcessing(&self) -> ::windows::core::Result<bool> {
2402 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2403 unsafe {
2404 let mut result__ = ::windows::core::zeroed::<bool>();
2405 (::windows::core::Interface::vtable(this).StartedProcessing)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2406 }
2407 }
2408 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::core::Result<()> {
2409 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2410 unsafe { (::windows::core::Interface::vtable(this).SetStartedProcessing)(::windows::core::Interface::as_raw(this), value).ok() }
2411 }
2412 pub fn ReminderId(&self) -> ::windows::core::Result<::windows::core::GUID> {
2413 let this = self;
2414 unsafe {
2415 let mut result__ = ::windows::core::zeroed::<::windows::core::GUID>();
2416 (::windows::core::Interface::vtable(this).ReminderId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2417 }
2418 }
2419 pub fn Title(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2420 let this = self;
2421 unsafe {
2422 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2423 (::windows::core::Interface::vtable(this).Title)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2424 }
2425 }
2426 pub fn Description(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2427 let this = self;
2428 unsafe {
2429 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2430 (::windows::core::Interface::vtable(this).Description)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2431 }
2432 }
2433 pub fn Details(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2434 let this = self;
2435 unsafe {
2436 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2437 (::windows::core::Interface::vtable(this).Details)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2438 }
2439 }
2440 #[doc = "*Required features: `\"Foundation\"`*"]
2441 #[cfg(feature = "Foundation")]
2442 pub fn Timestamp(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
2443 let this = self;
2444 unsafe {
2445 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
2446 (::windows::core::Interface::vtable(this).Timestamp)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2447 }
2448 }
2449 #[doc = "*Required features: `\"ApplicationModel_Appointments\"`*"]
2450 #[cfg(feature = "ApplicationModel_Appointments")]
2451 pub fn Appointment(&self) -> ::windows::core::Result<super::super::super::ApplicationModel::Appointments::Appointment> {
2452 let this = self;
2453 unsafe {
2454 let mut result__ = ::windows::core::zeroed::<super::super::super::ApplicationModel::Appointments::Appointment>();
2455 (::windows::core::Interface::vtable(this).Appointment)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2456 }
2457 }
2458 pub fn ReminderState(&self) -> ::windows::core::Result<ReminderState> {
2459 let this = self;
2460 unsafe {
2461 let mut result__ = ::windows::core::zeroed::<ReminderState>();
2462 (::windows::core::Interface::vtable(this).ReminderState)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2463 }
2464 }
2465 pub fn InstanceId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2466 let this = &::windows::core::ComInterface::cast::<IReminderNotificationTriggerDetails2>(self)?;
2467 unsafe {
2468 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2469 (::windows::core::Interface::vtable(this).InstanceId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2470 }
2471 }
2472}
2473impl ::core::cmp::PartialEq for ReminderNotificationTriggerDetails {
2474 fn eq(&self, other: &Self) -> bool {
2475 self.0 == other.0
2476 }
2477}
2478impl ::core::cmp::Eq for ReminderNotificationTriggerDetails {}
2479impl ::core::fmt::Debug for ReminderNotificationTriggerDetails {
2480 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2481 f.debug_tuple("ReminderNotificationTriggerDetails").field(&self.0).finish()
2482 }
2483}
2484impl ::windows::core::RuntimeType for ReminderNotificationTriggerDetails {
2485 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.ReminderNotificationTriggerDetails;{5bddaa5d-9f61-4bf0-9feb-10502bc0b0c2})");
2486}
2487impl ::core::clone::Clone for ReminderNotificationTriggerDetails {
2488 fn clone(&self) -> Self {
2489 Self(self.0.clone())
2490 }
2491}
2492unsafe impl ::windows::core::Interface for ReminderNotificationTriggerDetails {
2493 type Vtable = IReminderNotificationTriggerDetails_Vtbl;
2494}
2495unsafe impl ::windows::core::ComInterface for ReminderNotificationTriggerDetails {
2496 const IID: ::windows::core::GUID = <IReminderNotificationTriggerDetails as ::windows::core::ComInterface>::IID;
2497}
2498impl ::windows::core::RuntimeName for ReminderNotificationTriggerDetails {
2499 const NAME: &'static str = "Windows.Phone.Notification.Management.ReminderNotificationTriggerDetails";
2500}
2501::windows::imp::interface_hierarchy!(ReminderNotificationTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
2502impl ::windows::core::CanTryInto<IAccessoryNotificationTriggerDetails> for ReminderNotificationTriggerDetails {}
2503#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2504#[repr(transparent)]
2505pub struct SpeedDialEntry(::windows::core::IUnknown);
2506impl SpeedDialEntry {
2507 pub fn PhoneNumber(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2508 let this = self;
2509 unsafe {
2510 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2511 (::windows::core::Interface::vtable(this).PhoneNumber)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2512 }
2513 }
2514 pub fn NumberType(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2515 let this = self;
2516 unsafe {
2517 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2518 (::windows::core::Interface::vtable(this).NumberType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2519 }
2520 }
2521 pub fn ContactName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2522 let this = self;
2523 unsafe {
2524 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2525 (::windows::core::Interface::vtable(this).ContactName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2526 }
2527 }
2528}
2529impl ::core::cmp::PartialEq for SpeedDialEntry {
2530 fn eq(&self, other: &Self) -> bool {
2531 self.0 == other.0
2532 }
2533}
2534impl ::core::cmp::Eq for SpeedDialEntry {}
2535impl ::core::fmt::Debug for SpeedDialEntry {
2536 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2537 f.debug_tuple("SpeedDialEntry").field(&self.0).finish()
2538 }
2539}
2540impl ::windows::core::RuntimeType for SpeedDialEntry {
2541 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.SpeedDialEntry;{9240b6db-872c-46dc-b62a-be4541b166f8})");
2542}
2543impl ::core::clone::Clone for SpeedDialEntry {
2544 fn clone(&self) -> Self {
2545 Self(self.0.clone())
2546 }
2547}
2548unsafe impl ::windows::core::Interface for SpeedDialEntry {
2549 type Vtable = ISpeedDialEntry_Vtbl;
2550}
2551unsafe impl ::windows::core::ComInterface for SpeedDialEntry {
2552 const IID: ::windows::core::GUID = <ISpeedDialEntry as ::windows::core::ComInterface>::IID;
2553}
2554impl ::windows::core::RuntimeName for SpeedDialEntry {
2555 const NAME: &'static str = "Windows.Phone.Notification.Management.SpeedDialEntry";
2556}
2557::windows::imp::interface_hierarchy!(SpeedDialEntry, ::windows::core::IUnknown, ::windows::core::IInspectable);
2558#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2559#[repr(transparent)]
2560pub struct TextResponse(::windows::core::IUnknown);
2561impl TextResponse {
2562 pub fn Id(&self) -> ::windows::core::Result<u32> {
2563 let this = self;
2564 unsafe {
2565 let mut result__ = ::windows::core::zeroed::<u32>();
2566 (::windows::core::Interface::vtable(this).Id)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2567 }
2568 }
2569 pub fn Content(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2570 let this = self;
2571 unsafe {
2572 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2573 (::windows::core::Interface::vtable(this).Content)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2574 }
2575 }
2576}
2577impl ::core::cmp::PartialEq for TextResponse {
2578 fn eq(&self, other: &Self) -> bool {
2579 self.0 == other.0
2580 }
2581}
2582impl ::core::cmp::Eq for TextResponse {}
2583impl ::core::fmt::Debug for TextResponse {
2584 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2585 f.debug_tuple("TextResponse").field(&self.0).finish()
2586 }
2587}
2588impl ::windows::core::RuntimeType for TextResponse {
2589 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.TextResponse;{e9cb74c3-2457-4cdb-8110-72f5e8e883e8})");
2590}
2591impl ::core::clone::Clone for TextResponse {
2592 fn clone(&self) -> Self {
2593 Self(self.0.clone())
2594 }
2595}
2596unsafe impl ::windows::core::Interface for TextResponse {
2597 type Vtable = ITextResponse_Vtbl;
2598}
2599unsafe impl ::windows::core::ComInterface for TextResponse {
2600 const IID: ::windows::core::GUID = <ITextResponse as ::windows::core::ComInterface>::IID;
2601}
2602impl ::windows::core::RuntimeName for TextResponse {
2603 const NAME: &'static str = "Windows.Phone.Notification.Management.TextResponse";
2604}
2605::windows::imp::interface_hierarchy!(TextResponse, ::windows::core::IUnknown, ::windows::core::IInspectable);
2606#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2607#[repr(transparent)]
2608pub struct ToastNotificationTriggerDetails(::windows::core::IUnknown);
2609impl ToastNotificationTriggerDetails {
2610 #[doc = "*Required features: `\"Foundation\"`*"]
2611 #[cfg(feature = "Foundation")]
2612 pub fn TimeCreated(&self) -> ::windows::core::Result<super::super::super::Foundation::DateTime> {
2613 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2614 unsafe {
2615 let mut result__ = ::windows::core::zeroed::<super::super::super::Foundation::DateTime>();
2616 (::windows::core::Interface::vtable(this).TimeCreated)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2617 }
2618 }
2619 pub fn AppDisplayName(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2620 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2621 unsafe {
2622 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2623 (::windows::core::Interface::vtable(this).AppDisplayName)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2624 }
2625 }
2626 pub fn AppId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2627 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2628 unsafe {
2629 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2630 (::windows::core::Interface::vtable(this).AppId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2631 }
2632 }
2633 pub fn AccessoryNotificationType(&self) -> ::windows::core::Result<AccessoryNotificationType> {
2634 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2635 unsafe {
2636 let mut result__ = ::windows::core::zeroed::<AccessoryNotificationType>();
2637 (::windows::core::Interface::vtable(this).AccessoryNotificationType)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2638 }
2639 }
2640 pub fn StartedProcessing(&self) -> ::windows::core::Result<bool> {
2641 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2642 unsafe {
2643 let mut result__ = ::windows::core::zeroed::<bool>();
2644 (::windows::core::Interface::vtable(this).StartedProcessing)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2645 }
2646 }
2647 pub fn SetStartedProcessing(&self, value: bool) -> ::windows::core::Result<()> {
2648 let this = &::windows::core::ComInterface::cast::<IAccessoryNotificationTriggerDetails>(self)?;
2649 unsafe { (::windows::core::Interface::vtable(this).SetStartedProcessing)(::windows::core::Interface::as_raw(this), value).ok() }
2650 }
2651 pub fn Text1(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2652 let this = self;
2653 unsafe {
2654 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2655 (::windows::core::Interface::vtable(this).Text1)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2656 }
2657 }
2658 pub fn Text2(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2659 let this = self;
2660 unsafe {
2661 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2662 (::windows::core::Interface::vtable(this).Text2)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2663 }
2664 }
2665 pub fn Text3(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2666 let this = self;
2667 unsafe {
2668 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2669 (::windows::core::Interface::vtable(this).Text3)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2670 }
2671 }
2672 pub fn Text4(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2673 let this = self;
2674 unsafe {
2675 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2676 (::windows::core::Interface::vtable(this).Text4)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2677 }
2678 }
2679 pub fn SuppressPopup(&self) -> ::windows::core::Result<bool> {
2680 let this = self;
2681 unsafe {
2682 let mut result__ = ::windows::core::zeroed::<bool>();
2683 (::windows::core::Interface::vtable(this).SuppressPopup)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2684 }
2685 }
2686 pub fn InstanceId(&self) -> ::windows::core::Result<::windows::core::HSTRING> {
2687 let this = &::windows::core::ComInterface::cast::<IToastNotificationTriggerDetails2>(self)?;
2688 unsafe {
2689 let mut result__ = ::windows::core::zeroed::<::windows::core::HSTRING>();
2690 (::windows::core::Interface::vtable(this).InstanceId)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2691 }
2692 }
2693}
2694impl ::core::cmp::PartialEq for ToastNotificationTriggerDetails {
2695 fn eq(&self, other: &Self) -> bool {
2696 self.0 == other.0
2697 }
2698}
2699impl ::core::cmp::Eq for ToastNotificationTriggerDetails {}
2700impl ::core::fmt::Debug for ToastNotificationTriggerDetails {
2701 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2702 f.debug_tuple("ToastNotificationTriggerDetails").field(&self.0).finish()
2703 }
2704}
2705impl ::windows::core::RuntimeType for ToastNotificationTriggerDetails {
2706 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.ToastNotificationTriggerDetails;{c9314895-4e6d-4e9d-afec-9e921b875ae8})");
2707}
2708impl ::core::clone::Clone for ToastNotificationTriggerDetails {
2709 fn clone(&self) -> Self {
2710 Self(self.0.clone())
2711 }
2712}
2713unsafe impl ::windows::core::Interface for ToastNotificationTriggerDetails {
2714 type Vtable = IToastNotificationTriggerDetails_Vtbl;
2715}
2716unsafe impl ::windows::core::ComInterface for ToastNotificationTriggerDetails {
2717 const IID: ::windows::core::GUID = <IToastNotificationTriggerDetails as ::windows::core::ComInterface>::IID;
2718}
2719impl ::windows::core::RuntimeName for ToastNotificationTriggerDetails {
2720 const NAME: &'static str = "Windows.Phone.Notification.Management.ToastNotificationTriggerDetails";
2721}
2722::windows::imp::interface_hierarchy!(ToastNotificationTriggerDetails, ::windows::core::IUnknown, ::windows::core::IInspectable);
2723impl ::windows::core::CanTryInto<IAccessoryNotificationTriggerDetails> for ToastNotificationTriggerDetails {}
2724#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2725#[repr(transparent)]
2726pub struct VolumeInfo(::windows::core::IUnknown);
2727impl VolumeInfo {
2728 pub fn SystemVolume(&self) -> ::windows::core::Result<u32> {
2729 let this = self;
2730 unsafe {
2731 let mut result__ = ::windows::core::zeroed::<u32>();
2732 (::windows::core::Interface::vtable(this).SystemVolume)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2733 }
2734 }
2735 pub fn CallVolume(&self) -> ::windows::core::Result<u32> {
2736 let this = self;
2737 unsafe {
2738 let mut result__ = ::windows::core::zeroed::<u32>();
2739 (::windows::core::Interface::vtable(this).CallVolume)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2740 }
2741 }
2742 pub fn MediaVolume(&self) -> ::windows::core::Result<u32> {
2743 let this = self;
2744 unsafe {
2745 let mut result__ = ::windows::core::zeroed::<u32>();
2746 (::windows::core::Interface::vtable(this).MediaVolume)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2747 }
2748 }
2749 pub fn IsMuted(&self) -> ::windows::core::Result<bool> {
2750 let this = self;
2751 unsafe {
2752 let mut result__ = ::windows::core::zeroed::<bool>();
2753 (::windows::core::Interface::vtable(this).IsMuted)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2754 }
2755 }
2756 pub fn IsVibrateEnabled(&self) -> ::windows::core::Result<VibrateState> {
2757 let this = self;
2758 unsafe {
2759 let mut result__ = ::windows::core::zeroed::<VibrateState>();
2760 (::windows::core::Interface::vtable(this).IsVibrateEnabled)(::windows::core::Interface::as_raw(this), &mut result__).from_abi(result__)
2761 }
2762 }
2763}
2764impl ::core::cmp::PartialEq for VolumeInfo {
2765 fn eq(&self, other: &Self) -> bool {
2766 self.0 == other.0
2767 }
2768}
2769impl ::core::cmp::Eq for VolumeInfo {}
2770impl ::core::fmt::Debug for VolumeInfo {
2771 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2772 f.debug_tuple("VolumeInfo").field(&self.0).finish()
2773 }
2774}
2775impl ::windows::core::RuntimeType for VolumeInfo {
2776 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"rc(Windows.Phone.Notification.Management.VolumeInfo;{944dd118-7704-4481-b92e-d3ed3ece6322})");
2777}
2778impl ::core::clone::Clone for VolumeInfo {
2779 fn clone(&self) -> Self {
2780 Self(self.0.clone())
2781 }
2782}
2783unsafe impl ::windows::core::Interface for VolumeInfo {
2784 type Vtable = IVolumeInfo_Vtbl;
2785}
2786unsafe impl ::windows::core::ComInterface for VolumeInfo {
2787 const IID: ::windows::core::GUID = <IVolumeInfo as ::windows::core::ComInterface>::IID;
2788}
2789impl ::windows::core::RuntimeName for VolumeInfo {
2790 const NAME: &'static str = "Windows.Phone.Notification.Management.VolumeInfo";
2791}
2792::windows::imp::interface_hierarchy!(VolumeInfo, ::windows::core::IUnknown, ::windows::core::IInspectable);
2793#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2794#[repr(transparent)]
2795#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
2796pub struct AccessoryNotificationType(pub u32);
2797impl AccessoryNotificationType {
2798 pub const None: Self = Self(0u32);
2799 pub const Phone: Self = Self(1u32);
2800 pub const Email: Self = Self(2u32);
2801 pub const Reminder: Self = Self(4u32);
2802 pub const Alarm: Self = Self(8u32);
2803 pub const Toast: Self = Self(16u32);
2804 pub const AppUninstalled: Self = Self(32u32);
2805 pub const Dnd: Self = Self(64u32);
2806 pub const DrivingMode: Self = Self(128u32);
2807 pub const BatterySaver: Self = Self(256u32);
2808 pub const Media: Self = Self(512u32);
2809 pub const CortanaTile: Self = Self(1024u32);
2810 pub const ToastCleared: Self = Self(2048u32);
2811 pub const CalendarChanged: Self = Self(4096u32);
2812 pub const VolumeChanged: Self = Self(8192u32);
2813 pub const EmailReadStatusChanged: Self = Self(16384u32);
2814}
2815impl ::core::marker::Copy for AccessoryNotificationType {}
2816impl ::core::clone::Clone for AccessoryNotificationType {
2817 fn clone(&self) -> Self {
2818 *self
2819 }
2820}
2821impl ::core::default::Default for AccessoryNotificationType {
2822 fn default() -> Self {
2823 Self(0)
2824 }
2825}
2826impl ::windows::core::TypeKind for AccessoryNotificationType {
2827 type TypeKind = ::windows::core::CopyType;
2828}
2829impl ::core::fmt::Debug for AccessoryNotificationType {
2830 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2831 f.debug_tuple("AccessoryNotificationType").field(&self.0).finish()
2832 }
2833}
2834impl AccessoryNotificationType {
2835 pub const fn contains(&self, other: Self) -> bool {
2836 self.0 & other.0 == other.0
2837 }
2838}
2839impl ::core::ops::BitOr for AccessoryNotificationType {
2840 type Output = Self;
2841 fn bitor(self, other: Self) -> Self {
2842 Self(self.0 | other.0)
2843 }
2844}
2845impl ::core::ops::BitAnd for AccessoryNotificationType {
2846 type Output = Self;
2847 fn bitand(self, other: Self) -> Self {
2848 Self(self.0 & other.0)
2849 }
2850}
2851impl ::core::ops::BitOrAssign for AccessoryNotificationType {
2852 fn bitor_assign(&mut self, other: Self) {
2853 self.0.bitor_assign(other.0)
2854 }
2855}
2856impl ::core::ops::BitAndAssign for AccessoryNotificationType {
2857 fn bitand_assign(&mut self, other: Self) {
2858 self.0.bitand_assign(other.0)
2859 }
2860}
2861impl ::core::ops::Not for AccessoryNotificationType {
2862 type Output = Self;
2863 fn not(self) -> Self {
2864 Self(self.0.not())
2865 }
2866}
2867impl ::windows::core::RuntimeType for AccessoryNotificationType {
2868 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.AccessoryNotificationType;u4)");
2869}
2870#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2871#[repr(transparent)]
2872#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
2873pub struct CalendarChangedEvent(pub i32);
2874impl CalendarChangedEvent {
2875 pub const LostEvents: Self = Self(0i32);
2876 pub const AppointmentAdded: Self = Self(1i32);
2877 pub const AppointmentChanged: Self = Self(2i32);
2878 pub const AppointmentDeleted: Self = Self(3i32);
2879 pub const CalendarAdded: Self = Self(4i32);
2880 pub const CalendarChanged: Self = Self(5i32);
2881 pub const CalendarDeleted: Self = Self(6i32);
2882}
2883impl ::core::marker::Copy for CalendarChangedEvent {}
2884impl ::core::clone::Clone for CalendarChangedEvent {
2885 fn clone(&self) -> Self {
2886 *self
2887 }
2888}
2889impl ::core::default::Default for CalendarChangedEvent {
2890 fn default() -> Self {
2891 Self(0)
2892 }
2893}
2894impl ::windows::core::TypeKind for CalendarChangedEvent {
2895 type TypeKind = ::windows::core::CopyType;
2896}
2897impl ::core::fmt::Debug for CalendarChangedEvent {
2898 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2899 f.debug_tuple("CalendarChangedEvent").field(&self.0).finish()
2900 }
2901}
2902impl ::windows::core::RuntimeType for CalendarChangedEvent {
2903 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.CalendarChangedEvent;i4)");
2904}
2905#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2906#[repr(transparent)]
2907#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
2908pub struct PhoneCallAudioEndpoint(pub i32);
2909impl PhoneCallAudioEndpoint {
2910 pub const Default: Self = Self(0i32);
2911 pub const Speaker: Self = Self(1i32);
2912 pub const Handsfree: Self = Self(2i32);
2913}
2914impl ::core::marker::Copy for PhoneCallAudioEndpoint {}
2915impl ::core::clone::Clone for PhoneCallAudioEndpoint {
2916 fn clone(&self) -> Self {
2917 *self
2918 }
2919}
2920impl ::core::default::Default for PhoneCallAudioEndpoint {
2921 fn default() -> Self {
2922 Self(0)
2923 }
2924}
2925impl ::windows::core::TypeKind for PhoneCallAudioEndpoint {
2926 type TypeKind = ::windows::core::CopyType;
2927}
2928impl ::core::fmt::Debug for PhoneCallAudioEndpoint {
2929 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2930 f.debug_tuple("PhoneCallAudioEndpoint").field(&self.0).finish()
2931 }
2932}
2933impl ::windows::core::RuntimeType for PhoneCallAudioEndpoint {
2934 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneCallAudioEndpoint;i4)");
2935}
2936#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2937#[repr(transparent)]
2938#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
2939pub struct PhoneCallDirection(pub i32);
2940impl PhoneCallDirection {
2941 pub const Incoming: Self = Self(0i32);
2942 pub const Outgoing: Self = Self(1i32);
2943}
2944impl ::core::marker::Copy for PhoneCallDirection {}
2945impl ::core::clone::Clone for PhoneCallDirection {
2946 fn clone(&self) -> Self {
2947 *self
2948 }
2949}
2950impl ::core::default::Default for PhoneCallDirection {
2951 fn default() -> Self {
2952 Self(0)
2953 }
2954}
2955impl ::windows::core::TypeKind for PhoneCallDirection {
2956 type TypeKind = ::windows::core::CopyType;
2957}
2958impl ::core::fmt::Debug for PhoneCallDirection {
2959 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2960 f.debug_tuple("PhoneCallDirection").field(&self.0).finish()
2961 }
2962}
2963impl ::windows::core::RuntimeType for PhoneCallDirection {
2964 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneCallDirection;i4)");
2965}
2966#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
2967#[repr(transparent)]
2968#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
2969pub struct PhoneCallState(pub i32);
2970impl PhoneCallState {
2971 pub const Unknown: Self = Self(0i32);
2972 pub const Ringing: Self = Self(1i32);
2973 pub const Talking: Self = Self(2i32);
2974 pub const Held: Self = Self(3i32);
2975 pub const Ended: Self = Self(4i32);
2976}
2977impl ::core::marker::Copy for PhoneCallState {}
2978impl ::core::clone::Clone for PhoneCallState {
2979 fn clone(&self) -> Self {
2980 *self
2981 }
2982}
2983impl ::core::default::Default for PhoneCallState {
2984 fn default() -> Self {
2985 Self(0)
2986 }
2987}
2988impl ::windows::core::TypeKind for PhoneCallState {
2989 type TypeKind = ::windows::core::CopyType;
2990}
2991impl ::core::fmt::Debug for PhoneCallState {
2992 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
2993 f.debug_tuple("PhoneCallState").field(&self.0).finish()
2994 }
2995}
2996impl ::windows::core::RuntimeType for PhoneCallState {
2997 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneCallState;i4)");
2998}
2999#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
3000#[repr(transparent)]
3001#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
3002pub struct PhoneCallTransport(pub i32);
3003impl PhoneCallTransport {
3004 pub const Cellular: Self = Self(0i32);
3005 pub const Voip: Self = Self(1i32);
3006}
3007impl ::core::marker::Copy for PhoneCallTransport {}
3008impl ::core::clone::Clone for PhoneCallTransport {
3009 fn clone(&self) -> Self {
3010 *self
3011 }
3012}
3013impl ::core::default::Default for PhoneCallTransport {
3014 fn default() -> Self {
3015 Self(0)
3016 }
3017}
3018impl ::windows::core::TypeKind for PhoneCallTransport {
3019 type TypeKind = ::windows::core::CopyType;
3020}
3021impl ::core::fmt::Debug for PhoneCallTransport {
3022 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3023 f.debug_tuple("PhoneCallTransport").field(&self.0).finish()
3024 }
3025}
3026impl ::windows::core::RuntimeType for PhoneCallTransport {
3027 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneCallTransport;i4)");
3028}
3029#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
3030#[repr(transparent)]
3031#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
3032pub struct PhoneLineRegistrationState(pub i32);
3033impl PhoneLineRegistrationState {
3034 pub const Disconnected: Self = Self(0i32);
3035 pub const Home: Self = Self(1i32);
3036 pub const Roaming: Self = Self(2i32);
3037}
3038impl ::core::marker::Copy for PhoneLineRegistrationState {}
3039impl ::core::clone::Clone for PhoneLineRegistrationState {
3040 fn clone(&self) -> Self {
3041 *self
3042 }
3043}
3044impl ::core::default::Default for PhoneLineRegistrationState {
3045 fn default() -> Self {
3046 Self(0)
3047 }
3048}
3049impl ::windows::core::TypeKind for PhoneLineRegistrationState {
3050 type TypeKind = ::windows::core::CopyType;
3051}
3052impl ::core::fmt::Debug for PhoneLineRegistrationState {
3053 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3054 f.debug_tuple("PhoneLineRegistrationState").field(&self.0).finish()
3055 }
3056}
3057impl ::windows::core::RuntimeType for PhoneLineRegistrationState {
3058 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneLineRegistrationState;i4)");
3059}
3060#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
3061#[repr(transparent)]
3062#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
3063pub struct PhoneMediaType(pub i32);
3064impl PhoneMediaType {
3065 pub const AudioOnly: Self = Self(0i32);
3066 pub const AudioVideo: Self = Self(1i32);
3067}
3068impl ::core::marker::Copy for PhoneMediaType {}
3069impl ::core::clone::Clone for PhoneMediaType {
3070 fn clone(&self) -> Self {
3071 *self
3072 }
3073}
3074impl ::core::default::Default for PhoneMediaType {
3075 fn default() -> Self {
3076 Self(0)
3077 }
3078}
3079impl ::windows::core::TypeKind for PhoneMediaType {
3080 type TypeKind = ::windows::core::CopyType;
3081}
3082impl ::core::fmt::Debug for PhoneMediaType {
3083 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3084 f.debug_tuple("PhoneMediaType").field(&self.0).finish()
3085 }
3086}
3087impl ::windows::core::RuntimeType for PhoneMediaType {
3088 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneMediaType;i4)");
3089}
3090#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
3091#[repr(transparent)]
3092#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
3093pub struct PhoneNotificationType(pub i32);
3094impl PhoneNotificationType {
3095 pub const NewCall: Self = Self(0i32);
3096 pub const CallChanged: Self = Self(1i32);
3097 pub const LineChanged: Self = Self(2i32);
3098 pub const PhoneCallAudioEndpointChanged: Self = Self(3i32);
3099 pub const PhoneMuteChanged: Self = Self(4i32);
3100}
3101impl ::core::marker::Copy for PhoneNotificationType {}
3102impl ::core::clone::Clone for PhoneNotificationType {
3103 fn clone(&self) -> Self {
3104 *self
3105 }
3106}
3107impl ::core::default::Default for PhoneNotificationType {
3108 fn default() -> Self {
3109 Self(0)
3110 }
3111}
3112impl ::windows::core::TypeKind for PhoneNotificationType {
3113 type TypeKind = ::windows::core::CopyType;
3114}
3115impl ::core::fmt::Debug for PhoneNotificationType {
3116 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3117 f.debug_tuple("PhoneNotificationType").field(&self.0).finish()
3118 }
3119}
3120impl ::windows::core::RuntimeType for PhoneNotificationType {
3121 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PhoneNotificationType;i4)");
3122}
3123#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
3124#[repr(transparent)]
3125#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
3126pub struct PlaybackCapability(pub u32);
3127impl PlaybackCapability {
3128 pub const None: Self = Self(0u32);
3129 pub const Play: Self = Self(1u32);
3130 pub const Pause: Self = Self(2u32);
3131 pub const Stop: Self = Self(4u32);
3132 pub const Record: Self = Self(8u32);
3133 pub const FastForward: Self = Self(16u32);
3134 pub const Rewind: Self = Self(32u32);
3135 pub const Next: Self = Self(64u32);
3136 pub const Previous: Self = Self(128u32);
3137 pub const ChannelUp: Self = Self(256u32);
3138 pub const ChannelDown: Self = Self(512u32);
3139}
3140impl ::core::marker::Copy for PlaybackCapability {}
3141impl ::core::clone::Clone for PlaybackCapability {
3142 fn clone(&self) -> Self {
3143 *self
3144 }
3145}
3146impl ::core::default::Default for PlaybackCapability {
3147 fn default() -> Self {
3148 Self(0)
3149 }
3150}
3151impl ::windows::core::TypeKind for PlaybackCapability {
3152 type TypeKind = ::windows::core::CopyType;
3153}
3154impl ::core::fmt::Debug for PlaybackCapability {
3155 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3156 f.debug_tuple("PlaybackCapability").field(&self.0).finish()
3157 }
3158}
3159impl PlaybackCapability {
3160 pub const fn contains(&self, other: Self) -> bool {
3161 self.0 & other.0 == other.0
3162 }
3163}
3164impl ::core::ops::BitOr for PlaybackCapability {
3165 type Output = Self;
3166 fn bitor(self, other: Self) -> Self {
3167 Self(self.0 | other.0)
3168 }
3169}
3170impl ::core::ops::BitAnd for PlaybackCapability {
3171 type Output = Self;
3172 fn bitand(self, other: Self) -> Self {
3173 Self(self.0 & other.0)
3174 }
3175}
3176impl ::core::ops::BitOrAssign for PlaybackCapability {
3177 fn bitor_assign(&mut self, other: Self) {
3178 self.0.bitor_assign(other.0)
3179 }
3180}
3181impl ::core::ops::BitAndAssign for PlaybackCapability {
3182 fn bitand_assign(&mut self, other: Self) {
3183 self.0.bitand_assign(other.0)
3184 }
3185}
3186impl ::core::ops::Not for PlaybackCapability {
3187 type Output = Self;
3188 fn not(self) -> Self {
3189 Self(self.0.not())
3190 }
3191}
3192impl ::windows::core::RuntimeType for PlaybackCapability {
3193 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PlaybackCapability;u4)");
3194}
3195#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
3196#[repr(transparent)]
3197#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
3198pub struct PlaybackCommand(pub i32);
3199impl PlaybackCommand {
3200 pub const Play: Self = Self(0i32);
3201 pub const Pause: Self = Self(1i32);
3202 pub const Stop: Self = Self(2i32);
3203 pub const Record: Self = Self(3i32);
3204 pub const FastForward: Self = Self(4i32);
3205 pub const Rewind: Self = Self(5i32);
3206 pub const Next: Self = Self(6i32);
3207 pub const Previous: Self = Self(7i32);
3208 pub const ChannelUp: Self = Self(8i32);
3209 pub const ChannelDown: Self = Self(9i32);
3210}
3211impl ::core::marker::Copy for PlaybackCommand {}
3212impl ::core::clone::Clone for PlaybackCommand {
3213 fn clone(&self) -> Self {
3214 *self
3215 }
3216}
3217impl ::core::default::Default for PlaybackCommand {
3218 fn default() -> Self {
3219 Self(0)
3220 }
3221}
3222impl ::windows::core::TypeKind for PlaybackCommand {
3223 type TypeKind = ::windows::core::CopyType;
3224}
3225impl ::core::fmt::Debug for PlaybackCommand {
3226 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3227 f.debug_tuple("PlaybackCommand").field(&self.0).finish()
3228 }
3229}
3230impl ::windows::core::RuntimeType for PlaybackCommand {
3231 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PlaybackCommand;i4)");
3232}
3233#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
3234#[repr(transparent)]
3235#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
3236pub struct PlaybackStatus(pub i32);
3237impl PlaybackStatus {
3238 pub const None: Self = Self(0i32);
3239 pub const TrackChanged: Self = Self(1i32);
3240 pub const Stopped: Self = Self(2i32);
3241 pub const Playing: Self = Self(3i32);
3242 pub const Paused: Self = Self(4i32);
3243}
3244impl ::core::marker::Copy for PlaybackStatus {}
3245impl ::core::clone::Clone for PlaybackStatus {
3246 fn clone(&self) -> Self {
3247 *self
3248 }
3249}
3250impl ::core::default::Default for PlaybackStatus {
3251 fn default() -> Self {
3252 Self(0)
3253 }
3254}
3255impl ::windows::core::TypeKind for PlaybackStatus {
3256 type TypeKind = ::windows::core::CopyType;
3257}
3258impl ::core::fmt::Debug for PlaybackStatus {
3259 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3260 f.debug_tuple("PlaybackStatus").field(&self.0).finish()
3261 }
3262}
3263impl ::windows::core::RuntimeType for PlaybackStatus {
3264 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.PlaybackStatus;i4)");
3265}
3266#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
3267#[repr(transparent)]
3268#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
3269pub struct ReminderState(pub i32);
3270impl ReminderState {
3271 pub const Active: Self = Self(0i32);
3272 pub const Snoozed: Self = Self(1i32);
3273 pub const Dismissed: Self = Self(2i32);
3274}
3275impl ::core::marker::Copy for ReminderState {}
3276impl ::core::clone::Clone for ReminderState {
3277 fn clone(&self) -> Self {
3278 *self
3279 }
3280}
3281impl ::core::default::Default for ReminderState {
3282 fn default() -> Self {
3283 Self(0)
3284 }
3285}
3286impl ::windows::core::TypeKind for ReminderState {
3287 type TypeKind = ::windows::core::CopyType;
3288}
3289impl ::core::fmt::Debug for ReminderState {
3290 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3291 f.debug_tuple("ReminderState").field(&self.0).finish()
3292 }
3293}
3294impl ::windows::core::RuntimeType for ReminderState {
3295 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.ReminderState;i4)");
3296}
3297#[doc = "*Required features: `\"Phone_Notification_Management\"`*"]
3298#[repr(transparent)]
3299#[derive(::core::cmp::PartialEq, ::core::cmp::Eq)]
3300pub struct VibrateState(pub i32);
3301impl VibrateState {
3302 pub const RingerOffVibrateOff: Self = Self(0i32);
3303 pub const RingerOffVibrateOn: Self = Self(1i32);
3304 pub const RingerOnVibrateOff: Self = Self(2i32);
3305 pub const RingerOnVibrateOn: Self = Self(3i32);
3306}
3307impl ::core::marker::Copy for VibrateState {}
3308impl ::core::clone::Clone for VibrateState {
3309 fn clone(&self) -> Self {
3310 *self
3311 }
3312}
3313impl ::core::default::Default for VibrateState {
3314 fn default() -> Self {
3315 Self(0)
3316 }
3317}
3318impl ::windows::core::TypeKind for VibrateState {
3319 type TypeKind = ::windows::core::CopyType;
3320}
3321impl ::core::fmt::Debug for VibrateState {
3322 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
3323 f.debug_tuple("VibrateState").field(&self.0).finish()
3324 }
3325}
3326impl ::windows::core::RuntimeType for VibrateState {
3327 const SIGNATURE: ::windows::imp::ConstBuffer = ::windows::imp::ConstBuffer::from_slice(b"enum(Windows.Phone.Notification.Management.VibrateState;i4)");
3328}
3329#[cfg(feature = "implement")]
3330::core::include!("impl.rs");