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