objc2_intents/generated/
INSetProfileInCarIntentResponse.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9/// [Apple's documentation](https://developer.apple.com/documentation/intents/insetprofileincarintentresponsecode?language=objc)
10// NS_ENUM
11#[deprecated = "INSetProfileInCarIntentResponseCode is deprecated. There is no replacement."]
12#[repr(transparent)]
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
14pub struct INSetProfileInCarIntentResponseCode(pub NSInteger);
15impl INSetProfileInCarIntentResponseCode {
16    #[doc(alias = "INSetProfileInCarIntentResponseCodeUnspecified")]
17    #[deprecated = "INSetProfileInCarIntentResponseCode is deprecated. There is no replacement."]
18    pub const Unspecified: Self = Self(0);
19    #[doc(alias = "INSetProfileInCarIntentResponseCodeReady")]
20    #[deprecated = "INSetProfileInCarIntentResponseCode is deprecated. There is no replacement."]
21    pub const Ready: Self = Self(1);
22    #[doc(alias = "INSetProfileInCarIntentResponseCodeInProgress")]
23    #[deprecated = "INSetProfileInCarIntentResponseCode is deprecated. There is no replacement."]
24    pub const InProgress: Self = Self(2);
25    #[doc(alias = "INSetProfileInCarIntentResponseCodeSuccess")]
26    #[deprecated = "INSetProfileInCarIntentResponseCode is deprecated. There is no replacement."]
27    pub const Success: Self = Self(3);
28    #[doc(alias = "INSetProfileInCarIntentResponseCodeFailure")]
29    #[deprecated = "INSetProfileInCarIntentResponseCode is deprecated. There is no replacement."]
30    pub const Failure: Self = Self(4);
31    #[doc(alias = "INSetProfileInCarIntentResponseCodeFailureRequiringAppLaunch")]
32    #[deprecated = "INSetProfileInCarIntentResponseCode is deprecated. There is no replacement."]
33    pub const FailureRequiringAppLaunch: Self = Self(5);
34}
35
36unsafe impl Encode for INSetProfileInCarIntentResponseCode {
37    const ENCODING: Encoding = NSInteger::ENCODING;
38}
39
40unsafe impl RefEncode for INSetProfileInCarIntentResponseCode {
41    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
42}
43
44extern_class!(
45    /// [Apple's documentation](https://developer.apple.com/documentation/intents/insetprofileincarintentresponse?language=objc)
46    #[unsafe(super(INIntentResponse, NSObject))]
47    #[derive(Debug, PartialEq, Eq, Hash)]
48    #[cfg(feature = "INIntentResponse")]
49    #[deprecated = "INSetProfileInCarIntentResponse is deprecated. There is no replacement."]
50    pub struct INSetProfileInCarIntentResponse;
51);
52
53#[cfg(feature = "INIntentResponse")]
54extern_conformance!(
55    unsafe impl NSCoding for INSetProfileInCarIntentResponse {}
56);
57
58#[cfg(feature = "INIntentResponse")]
59extern_conformance!(
60    unsafe impl NSCopying for INSetProfileInCarIntentResponse {}
61);
62
63#[cfg(feature = "INIntentResponse")]
64unsafe impl CopyingHelper for INSetProfileInCarIntentResponse {
65    type Result = Self;
66}
67
68#[cfg(feature = "INIntentResponse")]
69extern_conformance!(
70    unsafe impl NSObjectProtocol for INSetProfileInCarIntentResponse {}
71);
72
73#[cfg(feature = "INIntentResponse")]
74extern_conformance!(
75    unsafe impl NSSecureCoding for INSetProfileInCarIntentResponse {}
76);
77
78#[cfg(feature = "INIntentResponse")]
79impl INSetProfileInCarIntentResponse {
80    extern_methods!(
81        #[deprecated = "INSetProfileInCarIntentResponse 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 = "INSetProfileInCarIntentResponse 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: INSetProfileInCarIntentResponseCode,
92            user_activity: Option<&NSUserActivity>,
93        ) -> Retained<Self>;
94
95        #[deprecated = "INSetProfileInCarIntentResponse is deprecated. There is no replacement."]
96        #[unsafe(method(code))]
97        #[unsafe(method_family = none)]
98        pub unsafe fn code(&self) -> INSetProfileInCarIntentResponseCode;
99    );
100}
101
102/// Methods declared on superclass `NSObject`.
103#[cfg(feature = "INIntentResponse")]
104impl INSetProfileInCarIntentResponse {
105    extern_methods!(
106        #[unsafe(method(new))]
107        #[unsafe(method_family = new)]
108        pub unsafe fn new() -> Retained<Self>;
109    );
110}