objc2_intents/generated/
INDeleteTasksTaskResolutionResult.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9#[deprecated = "INDeleteTasksTaskUnsupportedReason is deprecated. There is no replacement."]
12#[repr(transparent)]
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
14pub struct INDeleteTasksTaskUnsupportedReason(pub NSInteger);
15impl INDeleteTasksTaskUnsupportedReason {
16 #[doc(alias = "INDeleteTasksTaskUnsupportedReasonNoTasksFound")]
17 #[deprecated = "INDeleteTasksTaskUnsupportedReason is deprecated. There is no replacement."]
18 pub const NoTasksFound: Self = Self(1);
19 #[doc(alias = "INDeleteTasksTaskUnsupportedReasonNoTasksInApp")]
20 #[deprecated = "INDeleteTasksTaskUnsupportedReason is deprecated. There is no replacement."]
21 pub const NoTasksInApp: Self = Self(2);
22}
23
24unsafe impl Encode for INDeleteTasksTaskUnsupportedReason {
25 const ENCODING: Encoding = NSInteger::ENCODING;
26}
27
28unsafe impl RefEncode for INDeleteTasksTaskUnsupportedReason {
29 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
30}
31
32extern_class!(
33 #[unsafe(super(INTaskResolutionResult, INIntentResolutionResult, NSObject))]
35 #[derive(Debug, PartialEq, Eq, Hash)]
36 #[cfg(all(
37 feature = "INIntentResolutionResult",
38 feature = "INTaskResolutionResult"
39 ))]
40 #[deprecated = "INDeleteTasksTaskResolutionResult is deprecated. There is no replacement."]
41 pub struct INDeleteTasksTaskResolutionResult;
42);
43
44#[cfg(all(
45 feature = "INIntentResolutionResult",
46 feature = "INTaskResolutionResult"
47))]
48extern_conformance!(
49 unsafe impl NSObjectProtocol for INDeleteTasksTaskResolutionResult {}
50);
51
52#[cfg(all(
53 feature = "INIntentResolutionResult",
54 feature = "INTaskResolutionResult"
55))]
56impl INDeleteTasksTaskResolutionResult {
57 extern_methods!(
58 #[deprecated = "INDeleteTasksTaskResolutionResult is deprecated. There is no replacement."]
59 #[unsafe(method(unsupportedForReason:))]
60 #[unsafe(method_family = none)]
61 pub unsafe fn unsupportedForReason(
62 reason: INDeleteTasksTaskUnsupportedReason,
63 ) -> Retained<Self>;
64
65 #[deprecated = "INDeleteTasksTaskResolutionResult is deprecated. There is no replacement."]
66 #[unsafe(method(initWithTaskResolutionResult:))]
67 #[unsafe(method_family = init)]
68 pub unsafe fn initWithTaskResolutionResult(
69 this: Allocated<Self>,
70 task_resolution_result: &INTaskResolutionResult,
71 ) -> Retained<Self>;
72 );
73}
74
75#[cfg(all(
77 feature = "INIntentResolutionResult",
78 feature = "INTaskResolutionResult"
79))]
80impl INDeleteTasksTaskResolutionResult {
81 extern_methods!(
82 #[cfg(feature = "INTask")]
83 #[unsafe(method(successWithResolvedTask:))]
84 #[unsafe(method_family = none)]
85 pub unsafe fn successWithResolvedTask(resolved_task: &INTask) -> Retained<Self>;
86
87 #[cfg(feature = "INTask")]
88 #[unsafe(method(disambiguationWithTasksToDisambiguate:))]
89 #[unsafe(method_family = none)]
90 pub unsafe fn disambiguationWithTasksToDisambiguate(
91 tasks_to_disambiguate: &NSArray<INTask>,
92 ) -> Retained<Self>;
93
94 #[cfg(feature = "INTask")]
95 #[unsafe(method(confirmationRequiredWithTaskToConfirm:))]
96 #[unsafe(method_family = none)]
97 pub unsafe fn confirmationRequiredWithTaskToConfirm(
98 task_to_confirm: Option<&INTask>,
99 ) -> Retained<Self>;
100 );
101}
102
103#[cfg(all(
105 feature = "INIntentResolutionResult",
106 feature = "INTaskResolutionResult"
107))]
108impl INDeleteTasksTaskResolutionResult {
109 extern_methods!(
110 #[unsafe(method(init))]
111 #[unsafe(method_family = init)]
112 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
113
114 #[unsafe(method(needsValue))]
115 #[unsafe(method_family = none)]
116 pub unsafe fn needsValue() -> Retained<Self>;
117
118 #[unsafe(method(notRequired))]
119 #[unsafe(method_family = none)]
120 pub unsafe fn notRequired() -> Retained<Self>;
121
122 #[unsafe(method(unsupported))]
123 #[unsafe(method_family = none)]
124 pub unsafe fn unsupported() -> Retained<Self>;
125 );
126}
127
128#[cfg(all(
130 feature = "INIntentResolutionResult",
131 feature = "INTaskResolutionResult"
132))]
133impl INDeleteTasksTaskResolutionResult {
134 extern_methods!(
135 #[unsafe(method(new))]
136 #[unsafe(method_family = new)]
137 pub unsafe fn new() -> Retained<Self>;
138 );
139}