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