objc2_intents/generated/
INSearchForNotebookItemsIntentResponse.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[repr(transparent)]
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
14pub struct INSearchForNotebookItemsIntentResponseCode(pub NSInteger);
15impl INSearchForNotebookItemsIntentResponseCode {
16 #[doc(alias = "INSearchForNotebookItemsIntentResponseCodeUnspecified")]
17 pub const Unspecified: Self = Self(0);
18 #[doc(alias = "INSearchForNotebookItemsIntentResponseCodeReady")]
19 pub const Ready: Self = Self(1);
20 #[doc(alias = "INSearchForNotebookItemsIntentResponseCodeInProgress")]
21 pub const InProgress: Self = Self(2);
22 #[doc(alias = "INSearchForNotebookItemsIntentResponseCodeSuccess")]
23 pub const Success: Self = Self(3);
24 #[doc(alias = "INSearchForNotebookItemsIntentResponseCodeFailure")]
25 pub const Failure: Self = Self(4);
26 #[doc(alias = "INSearchForNotebookItemsIntentResponseCodeFailureRequiringAppLaunch")]
27 pub const FailureRequiringAppLaunch: Self = Self(5);
28}
29
30unsafe impl Encode for INSearchForNotebookItemsIntentResponseCode {
31 const ENCODING: Encoding = NSInteger::ENCODING;
32}
33
34unsafe impl RefEncode for INSearchForNotebookItemsIntentResponseCode {
35 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
36}
37
38extern_class!(
39 #[unsafe(super(INIntentResponse, NSObject))]
41 #[derive(Debug, PartialEq, Eq, Hash)]
42 #[cfg(feature = "INIntentResponse")]
43 pub struct INSearchForNotebookItemsIntentResponse;
44);
45
46#[cfg(feature = "INIntentResponse")]
47extern_conformance!(
48 unsafe impl NSCoding for INSearchForNotebookItemsIntentResponse {}
49);
50
51#[cfg(feature = "INIntentResponse")]
52extern_conformance!(
53 unsafe impl NSCopying for INSearchForNotebookItemsIntentResponse {}
54);
55
56#[cfg(feature = "INIntentResponse")]
57unsafe impl CopyingHelper for INSearchForNotebookItemsIntentResponse {
58 type Result = Self;
59}
60
61#[cfg(feature = "INIntentResponse")]
62extern_conformance!(
63 unsafe impl NSObjectProtocol for INSearchForNotebookItemsIntentResponse {}
64);
65
66#[cfg(feature = "INIntentResponse")]
67extern_conformance!(
68 unsafe impl NSSecureCoding for INSearchForNotebookItemsIntentResponse {}
69);
70
71#[cfg(feature = "INIntentResponse")]
72impl INSearchForNotebookItemsIntentResponse {
73 extern_methods!(
74 #[unsafe(method(init))]
75 #[unsafe(method_family = init)]
76 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
77
78 #[unsafe(method(initWithCode:userActivity:))]
79 #[unsafe(method_family = init)]
80 pub unsafe fn initWithCode_userActivity(
81 this: Allocated<Self>,
82 code: INSearchForNotebookItemsIntentResponseCode,
83 user_activity: Option<&NSUserActivity>,
84 ) -> Retained<Self>;
85
86 #[unsafe(method(code))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn code(&self) -> INSearchForNotebookItemsIntentResponseCode;
89
90 #[cfg(feature = "INNote")]
91 #[unsafe(method(notes))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn notes(&self) -> Option<Retained<NSArray<INNote>>>;
94
95 #[cfg(feature = "INNote")]
96 #[unsafe(method(setNotes:))]
100 #[unsafe(method_family = none)]
101 pub unsafe fn setNotes(&self, notes: Option<&NSArray<INNote>>);
102
103 #[cfg(feature = "INTaskList")]
104 #[unsafe(method(taskLists))]
105 #[unsafe(method_family = none)]
106 pub unsafe fn taskLists(&self) -> Option<Retained<NSArray<INTaskList>>>;
107
108 #[cfg(feature = "INTaskList")]
109 #[unsafe(method(setTaskLists:))]
113 #[unsafe(method_family = none)]
114 pub unsafe fn setTaskLists(&self, task_lists: Option<&NSArray<INTaskList>>);
115
116 #[cfg(feature = "INTask")]
117 #[unsafe(method(tasks))]
118 #[unsafe(method_family = none)]
119 pub unsafe fn tasks(&self) -> Option<Retained<NSArray<INTask>>>;
120
121 #[cfg(feature = "INTask")]
122 #[unsafe(method(setTasks:))]
126 #[unsafe(method_family = none)]
127 pub unsafe fn setTasks(&self, tasks: Option<&NSArray<INTask>>);
128
129 #[cfg(feature = "INSortType")]
130 #[unsafe(method(sortType))]
131 #[unsafe(method_family = none)]
132 pub unsafe fn sortType(&self) -> INSortType;
133
134 #[cfg(feature = "INSortType")]
135 #[unsafe(method(setSortType:))]
137 #[unsafe(method_family = none)]
138 pub unsafe fn setSortType(&self, sort_type: INSortType);
139 );
140}
141
142#[cfg(feature = "INIntentResponse")]
144impl INSearchForNotebookItemsIntentResponse {
145 extern_methods!(
146 #[unsafe(method(new))]
147 #[unsafe(method_family = new)]
148 pub unsafe fn new() -> Retained<Self>;
149 );
150}