use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct INSearchForNotebookItemsIntentResponseCode(pub NSInteger);
impl INSearchForNotebookItemsIntentResponseCode {
#[doc(alias = "INSearchForNotebookItemsIntentResponseCodeUnspecified")]
pub const Unspecified: Self = Self(0);
#[doc(alias = "INSearchForNotebookItemsIntentResponseCodeReady")]
pub const Ready: Self = Self(1);
#[doc(alias = "INSearchForNotebookItemsIntentResponseCodeInProgress")]
pub const InProgress: Self = Self(2);
#[doc(alias = "INSearchForNotebookItemsIntentResponseCodeSuccess")]
pub const Success: Self = Self(3);
#[doc(alias = "INSearchForNotebookItemsIntentResponseCodeFailure")]
pub const Failure: Self = Self(4);
#[doc(alias = "INSearchForNotebookItemsIntentResponseCodeFailureRequiringAppLaunch")]
pub const FailureRequiringAppLaunch: Self = Self(5);
}
unsafe impl Encode for INSearchForNotebookItemsIntentResponseCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for INSearchForNotebookItemsIntentResponseCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[unsafe(super(INIntentResponse, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntentResponse")]
pub struct INSearchForNotebookItemsIntentResponse;
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCoding for INSearchForNotebookItemsIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCopying for INSearchForNotebookItemsIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
unsafe impl CopyingHelper for INSearchForNotebookItemsIntentResponse {
type Result = Self;
}
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSObjectProtocol for INSearchForNotebookItemsIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSSecureCoding for INSearchForNotebookItemsIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
impl INSearchForNotebookItemsIntentResponse {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(initWithCode:userActivity:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCode_userActivity(
this: Allocated<Self>,
code: INSearchForNotebookItemsIntentResponseCode,
user_activity: Option<&NSUserActivity>,
) -> Retained<Self>;
#[unsafe(method(code))]
#[unsafe(method_family = none)]
pub unsafe fn code(&self) -> INSearchForNotebookItemsIntentResponseCode;
#[cfg(feature = "INNote")]
#[unsafe(method(notes))]
#[unsafe(method_family = none)]
pub unsafe fn notes(&self) -> Option<Retained<NSArray<INNote>>>;
#[cfg(feature = "INNote")]
#[unsafe(method(setNotes:))]
#[unsafe(method_family = none)]
pub unsafe fn setNotes(&self, notes: Option<&NSArray<INNote>>);
#[cfg(feature = "INTaskList")]
#[unsafe(method(taskLists))]
#[unsafe(method_family = none)]
pub unsafe fn taskLists(&self) -> Option<Retained<NSArray<INTaskList>>>;
#[cfg(feature = "INTaskList")]
#[unsafe(method(setTaskLists:))]
#[unsafe(method_family = none)]
pub unsafe fn setTaskLists(&self, task_lists: Option<&NSArray<INTaskList>>);
#[cfg(feature = "INTask")]
#[unsafe(method(tasks))]
#[unsafe(method_family = none)]
pub unsafe fn tasks(&self) -> Option<Retained<NSArray<INTask>>>;
#[cfg(feature = "INTask")]
#[unsafe(method(setTasks:))]
#[unsafe(method_family = none)]
pub unsafe fn setTasks(&self, tasks: Option<&NSArray<INTask>>);
#[cfg(feature = "INSortType")]
#[unsafe(method(sortType))]
#[unsafe(method_family = none)]
pub unsafe fn sortType(&self) -> INSortType;
#[cfg(feature = "INSortType")]
#[unsafe(method(setSortType:))]
#[unsafe(method_family = none)]
pub unsafe fn setSortType(&self, sort_type: INSortType);
);
}
#[cfg(feature = "INIntentResponse")]
impl INSearchForNotebookItemsIntentResponse {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}