icrate/generated/EventKit/
EKReminder.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::AppKit::*;
5use crate::CoreLocation::*;
6use crate::EventKit::*;
7use crate::Foundation::*;
8use crate::MapKit::*;
9
10extern_class!(
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    #[cfg(feature = "EventKit_EKReminder")]
13    pub struct EKReminder;
14
15    #[cfg(feature = "EventKit_EKReminder")]
16    unsafe impl ClassType for EKReminder {
17        #[inherits(EKObject, NSObject)]
18        type Super = EKCalendarItem;
19        type Mutability = InteriorMutable;
20    }
21);
22
23#[cfg(feature = "EventKit_EKReminder")]
24unsafe impl NSObjectProtocol for EKReminder {}
25
26extern_methods!(
27    #[cfg(feature = "EventKit_EKReminder")]
28    unsafe impl EKReminder {
29        #[cfg(feature = "EventKit_EKEventStore")]
30        #[method_id(@__retain_semantics Other reminderWithEventStore:)]
31        pub unsafe fn reminderWithEventStore(event_store: &EKEventStore) -> Id<EKReminder>;
32
33        #[cfg(feature = "Foundation_NSDateComponents")]
34        #[method_id(@__retain_semantics Other startDateComponents)]
35        pub unsafe fn startDateComponents(&self) -> Option<Id<NSDateComponents>>;
36
37        #[cfg(feature = "Foundation_NSDateComponents")]
38        #[method(setStartDateComponents:)]
39        pub unsafe fn setStartDateComponents(
40            &self,
41            start_date_components: Option<&NSDateComponents>,
42        );
43
44        #[cfg(feature = "Foundation_NSDateComponents")]
45        #[method_id(@__retain_semantics Other dueDateComponents)]
46        pub unsafe fn dueDateComponents(&self) -> Option<Id<NSDateComponents>>;
47
48        #[cfg(feature = "Foundation_NSDateComponents")]
49        #[method(setDueDateComponents:)]
50        pub unsafe fn setDueDateComponents(&self, due_date_components: Option<&NSDateComponents>);
51
52        #[method(isCompleted)]
53        pub unsafe fn isCompleted(&self) -> bool;
54
55        #[method(setCompleted:)]
56        pub unsafe fn setCompleted(&self, completed: bool);
57
58        #[cfg(feature = "Foundation_NSDate")]
59        #[method_id(@__retain_semantics Other completionDate)]
60        pub unsafe fn completionDate(&self) -> Option<Id<NSDate>>;
61
62        #[cfg(feature = "Foundation_NSDate")]
63        #[method(setCompletionDate:)]
64        pub unsafe fn setCompletionDate(&self, completion_date: Option<&NSDate>);
65
66        #[method(priority)]
67        pub unsafe fn priority(&self) -> NSUInteger;
68
69        #[method(setPriority:)]
70        pub unsafe fn setPriority(&self, priority: NSUInteger);
71    }
72);
73
74extern_methods!(
75    /// Methods declared on superclass `NSObject`
76    #[cfg(feature = "EventKit_EKReminder")]
77    unsafe impl EKReminder {
78        #[method_id(@__retain_semantics Init init)]
79        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
80
81        #[method_id(@__retain_semantics New new)]
82        pub unsafe fn new() -> Id<Self>;
83    }
84);