objc2_intents/generated/
INGetCarLockStatusIntentResponse.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[repr(transparent)]
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
14pub struct INGetCarLockStatusIntentResponseCode(pub NSInteger);
15impl INGetCarLockStatusIntentResponseCode {
16 #[doc(alias = "INGetCarLockStatusIntentResponseCodeUnspecified")]
17 pub const Unspecified: Self = Self(0);
18 #[doc(alias = "INGetCarLockStatusIntentResponseCodeReady")]
19 pub const Ready: Self = Self(1);
20 #[doc(alias = "INGetCarLockStatusIntentResponseCodeInProgress")]
21 pub const InProgress: Self = Self(2);
22 #[doc(alias = "INGetCarLockStatusIntentResponseCodeSuccess")]
23 pub const Success: Self = Self(3);
24 #[doc(alias = "INGetCarLockStatusIntentResponseCodeFailure")]
25 pub const Failure: Self = Self(4);
26 #[doc(alias = "INGetCarLockStatusIntentResponseCodeFailureRequiringAppLaunch")]
27 pub const FailureRequiringAppLaunch: Self = Self(5);
28}
29
30unsafe impl Encode for INGetCarLockStatusIntentResponseCode {
31 const ENCODING: Encoding = NSInteger::ENCODING;
32}
33
34unsafe impl RefEncode for INGetCarLockStatusIntentResponseCode {
35 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
36}
37
38extern_class!(
39 #[unsafe(super(INIntentResponse, NSObject))]
41 #[derive(Debug, PartialEq, Eq, Hash)]
42 #[cfg(feature = "INIntentResponse")]
43 pub struct INGetCarLockStatusIntentResponse;
44);
45
46#[cfg(feature = "INIntentResponse")]
47extern_conformance!(
48 unsafe impl NSCoding for INGetCarLockStatusIntentResponse {}
49);
50
51#[cfg(feature = "INIntentResponse")]
52extern_conformance!(
53 unsafe impl NSCopying for INGetCarLockStatusIntentResponse {}
54);
55
56#[cfg(feature = "INIntentResponse")]
57unsafe impl CopyingHelper for INGetCarLockStatusIntentResponse {
58 type Result = Self;
59}
60
61#[cfg(feature = "INIntentResponse")]
62extern_conformance!(
63 unsafe impl NSObjectProtocol for INGetCarLockStatusIntentResponse {}
64);
65
66#[cfg(feature = "INIntentResponse")]
67extern_conformance!(
68 unsafe impl NSSecureCoding for INGetCarLockStatusIntentResponse {}
69);
70
71#[cfg(feature = "INIntentResponse")]
72impl INGetCarLockStatusIntentResponse {
73 extern_methods!(
74 #[unsafe(method(init))]
75 #[unsafe(method_family = init)]
76 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
77
78 #[unsafe(method(initWithCode:userActivity:))]
79 #[unsafe(method_family = init)]
80 pub unsafe fn initWithCode_userActivity(
81 this: Allocated<Self>,
82 code: INGetCarLockStatusIntentResponseCode,
83 user_activity: Option<&NSUserActivity>,
84 ) -> Retained<Self>;
85
86 #[unsafe(method(code))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn code(&self) -> INGetCarLockStatusIntentResponseCode;
89
90 #[unsafe(method(locked))]
91 #[unsafe(method_family = none)]
92 pub unsafe fn locked(&self) -> Option<Retained<NSNumber>>;
93
94 #[unsafe(method(setLocked:))]
98 #[unsafe(method_family = none)]
99 pub unsafe fn setLocked(&self, locked: Option<&NSNumber>);
100 );
101}
102
103#[cfg(feature = "INIntentResponse")]
105impl INGetCarLockStatusIntentResponse {
106 extern_methods!(
107 #[unsafe(method(new))]
108 #[unsafe(method_family = new)]
109 pub unsafe fn new() -> Retained<Self>;
110 );
111}