objc2_core_spotlight/generated/
CSSearchableItemAttributeSet_Events.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9/// CSEvents.
10#[cfg(feature = "CSSearchableItemAttributeSet")]
11impl CSSearchableItemAttributeSet {
12    extern_methods!(
13        #[unsafe(method(dueDate))]
14        #[unsafe(method_family = none)]
15        pub unsafe fn dueDate(&self) -> Option<Retained<NSDate>>;
16
17        /// Setter for [`dueDate`][Self::dueDate].
18        #[unsafe(method(setDueDate:))]
19        #[unsafe(method_family = none)]
20        pub unsafe fn setDueDate(&self, due_date: Option<&NSDate>);
21
22        #[unsafe(method(completionDate))]
23        #[unsafe(method_family = none)]
24        pub unsafe fn completionDate(&self) -> Option<Retained<NSDate>>;
25
26        /// Setter for [`completionDate`][Self::completionDate].
27        #[unsafe(method(setCompletionDate:))]
28        #[unsafe(method_family = none)]
29        pub unsafe fn setCompletionDate(&self, completion_date: Option<&NSDate>);
30
31        #[unsafe(method(startDate))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn startDate(&self) -> Option<Retained<NSDate>>;
34
35        /// Setter for [`startDate`][Self::startDate].
36        #[unsafe(method(setStartDate:))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn setStartDate(&self, start_date: Option<&NSDate>);
39
40        #[unsafe(method(endDate))]
41        #[unsafe(method_family = none)]
42        pub unsafe fn endDate(&self) -> Option<Retained<NSDate>>;
43
44        /// Setter for [`endDate`][Self::endDate].
45        #[unsafe(method(setEndDate:))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn setEndDate(&self, end_date: Option<&NSDate>);
48
49        #[unsafe(method(importantDates))]
50        #[unsafe(method_family = none)]
51        pub unsafe fn importantDates(&self) -> Option<Retained<NSArray<NSDate>>>;
52
53        /// Setter for [`importantDates`][Self::importantDates].
54        ///
55        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
56        #[unsafe(method(setImportantDates:))]
57        #[unsafe(method_family = none)]
58        pub unsafe fn setImportantDates(&self, important_dates: Option<&NSArray<NSDate>>);
59
60        #[unsafe(method(allDay))]
61        #[unsafe(method_family = none)]
62        pub unsafe fn allDay(&self) -> Option<Retained<NSNumber>>;
63
64        /// Setter for [`allDay`][Self::allDay].
65        #[unsafe(method(setAllDay:))]
66        #[unsafe(method_family = none)]
67        pub unsafe fn setAllDay(&self, all_day: Option<&NSNumber>);
68    );
69}