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