icrate/generated/EventKit/
EKCalendarItem.rs1use 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_EKCalendarItem")]
13 pub struct EKCalendarItem;
14
15 #[cfg(feature = "EventKit_EKCalendarItem")]
16 unsafe impl ClassType for EKCalendarItem {
17 #[inherits(NSObject)]
18 type Super = EKObject;
19 type Mutability = InteriorMutable;
20 }
21);
22
23#[cfg(feature = "EventKit_EKCalendarItem")]
24unsafe impl NSObjectProtocol for EKCalendarItem {}
25
26extern_methods!(
27 #[cfg(feature = "EventKit_EKCalendarItem")]
28 unsafe impl EKCalendarItem {
29 #[cfg(feature = "Foundation_NSString")]
30 #[method_id(@__retain_semantics Other UUID)]
31 pub unsafe fn UUID(&self) -> Id<NSString>;
32
33 #[cfg(feature = "EventKit_EKCalendar")]
34 #[method_id(@__retain_semantics Other calendar)]
35 pub unsafe fn calendar(&self) -> Option<Id<EKCalendar>>;
36
37 #[cfg(feature = "EventKit_EKCalendar")]
38 #[method(setCalendar:)]
39 pub unsafe fn setCalendar(&self, calendar: Option<&EKCalendar>);
40
41 #[cfg(feature = "Foundation_NSString")]
42 #[method_id(@__retain_semantics Other calendarItemIdentifier)]
43 pub unsafe fn calendarItemIdentifier(&self) -> Id<NSString>;
44
45 #[cfg(feature = "Foundation_NSString")]
46 #[method_id(@__retain_semantics Other calendarItemExternalIdentifier)]
47 pub unsafe fn calendarItemExternalIdentifier(&self) -> Option<Id<NSString>>;
48
49 #[cfg(feature = "Foundation_NSString")]
50 #[method_id(@__retain_semantics Other title)]
51 pub unsafe fn title(&self) -> Id<NSString>;
52
53 #[cfg(feature = "Foundation_NSString")]
54 #[method(setTitle:)]
55 pub unsafe fn setTitle(&self, title: Option<&NSString>);
56
57 #[cfg(feature = "Foundation_NSString")]
58 #[method_id(@__retain_semantics Other location)]
59 pub unsafe fn location(&self) -> Option<Id<NSString>>;
60
61 #[cfg(feature = "Foundation_NSString")]
62 #[method(setLocation:)]
63 pub unsafe fn setLocation(&self, location: Option<&NSString>);
64
65 #[cfg(feature = "Foundation_NSString")]
66 #[method_id(@__retain_semantics Other notes)]
67 pub unsafe fn notes(&self) -> Option<Id<NSString>>;
68
69 #[cfg(feature = "Foundation_NSString")]
70 #[method(setNotes:)]
71 pub unsafe fn setNotes(&self, notes: Option<&NSString>);
72
73 #[cfg(feature = "Foundation_NSURL")]
74 #[method_id(@__retain_semantics Other URL)]
75 pub unsafe fn URL(&self) -> Option<Id<NSURL>>;
76
77 #[cfg(feature = "Foundation_NSURL")]
78 #[method(setURL:)]
79 pub unsafe fn setURL(&self, url: Option<&NSURL>);
80
81 #[cfg(feature = "Foundation_NSDate")]
82 #[method_id(@__retain_semantics Other lastModifiedDate)]
83 pub unsafe fn lastModifiedDate(&self) -> Option<Id<NSDate>>;
84
85 #[cfg(feature = "Foundation_NSDate")]
86 #[method_id(@__retain_semantics Other creationDate)]
87 pub unsafe fn creationDate(&self) -> Option<Id<NSDate>>;
88
89 #[cfg(feature = "Foundation_NSTimeZone")]
90 #[method_id(@__retain_semantics Other timeZone)]
91 pub unsafe fn timeZone(&self) -> Option<Id<NSTimeZone>>;
92
93 #[cfg(feature = "Foundation_NSTimeZone")]
94 #[method(setTimeZone:)]
95 pub unsafe fn setTimeZone(&self, time_zone: Option<&NSTimeZone>);
96
97 #[method(hasAlarms)]
98 pub unsafe fn hasAlarms(&self) -> bool;
99
100 #[method(hasRecurrenceRules)]
101 pub unsafe fn hasRecurrenceRules(&self) -> bool;
102
103 #[method(hasAttendees)]
104 pub unsafe fn hasAttendees(&self) -> bool;
105
106 #[method(hasNotes)]
107 pub unsafe fn hasNotes(&self) -> bool;
108
109 #[cfg(all(feature = "EventKit_EKParticipant", feature = "Foundation_NSArray"))]
110 #[method_id(@__retain_semantics Other attendees)]
111 pub unsafe fn attendees(&self) -> Option<Id<NSArray<EKParticipant>>>;
112
113 #[cfg(all(feature = "EventKit_EKAlarm", feature = "Foundation_NSArray"))]
114 #[method_id(@__retain_semantics Other alarms)]
115 pub unsafe fn alarms(&self) -> Option<Id<NSArray<EKAlarm>>>;
116
117 #[cfg(all(feature = "EventKit_EKAlarm", feature = "Foundation_NSArray"))]
118 #[method(setAlarms:)]
119 pub unsafe fn setAlarms(&self, alarms: Option<&NSArray<EKAlarm>>);
120
121 #[cfg(feature = "EventKit_EKAlarm")]
122 #[method(addAlarm:)]
123 pub unsafe fn addAlarm(&self, alarm: &EKAlarm);
124
125 #[cfg(feature = "EventKit_EKAlarm")]
126 #[method(removeAlarm:)]
127 pub unsafe fn removeAlarm(&self, alarm: &EKAlarm);
128
129 #[cfg(all(feature = "EventKit_EKRecurrenceRule", feature = "Foundation_NSArray"))]
130 #[method_id(@__retain_semantics Other recurrenceRules)]
131 pub unsafe fn recurrenceRules(&self) -> Option<Id<NSArray<EKRecurrenceRule>>>;
132
133 #[cfg(all(feature = "EventKit_EKRecurrenceRule", feature = "Foundation_NSArray"))]
134 #[method(setRecurrenceRules:)]
135 pub unsafe fn setRecurrenceRules(
136 &self,
137 recurrence_rules: Option<&NSArray<EKRecurrenceRule>>,
138 );
139
140 #[cfg(feature = "EventKit_EKRecurrenceRule")]
141 #[method(addRecurrenceRule:)]
142 pub unsafe fn addRecurrenceRule(&self, rule: &EKRecurrenceRule);
143
144 #[cfg(feature = "EventKit_EKRecurrenceRule")]
145 #[method(removeRecurrenceRule:)]
146 pub unsafe fn removeRecurrenceRule(&self, rule: &EKRecurrenceRule);
147 }
148);
149
150extern_methods!(
151 #[cfg(feature = "EventKit_EKCalendarItem")]
153 unsafe impl EKCalendarItem {
154 #[method_id(@__retain_semantics Init init)]
155 pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
156
157 #[method_id(@__retain_semantics New new)]
158 pub unsafe fn new() -> Id<Self>;
159 }
160);