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