1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;

use crate::*;

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKAuthorizationStatus(pub NSInteger);
impl EKAuthorizationStatus {
    #[doc(alias = "EKAuthorizationStatusNotDetermined")]
    pub const NotDetermined: Self = Self(0);
    #[doc(alias = "EKAuthorizationStatusRestricted")]
    pub const Restricted: Self = Self(1);
    #[doc(alias = "EKAuthorizationStatusDenied")]
    pub const Denied: Self = Self(2);
    #[doc(alias = "EKAuthorizationStatusFullAccess")]
    pub const FullAccess: Self = Self(3);
    #[doc(alias = "EKAuthorizationStatusWriteOnly")]
    pub const WriteOnly: Self = Self(4);
    #[deprecated = "Check for full access or write only access"]
    #[doc(alias = "EKAuthorizationStatusAuthorized")]
    pub const Authorized: Self = Self(EKAuthorizationStatus::FullAccess.0);
}

unsafe impl Encode for EKAuthorizationStatus {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for EKAuthorizationStatus {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKWeekday(pub NSInteger);
impl EKWeekday {
    #[doc(alias = "EKWeekdaySunday")]
    pub const Sunday: Self = Self(1);
    #[doc(alias = "EKWeekdayMonday")]
    pub const Monday: Self = Self(2);
    #[doc(alias = "EKWeekdayTuesday")]
    pub const Tuesday: Self = Self(3);
    #[doc(alias = "EKWeekdayWednesday")]
    pub const Wednesday: Self = Self(4);
    #[doc(alias = "EKWeekdayThursday")]
    pub const Thursday: Self = Self(5);
    #[doc(alias = "EKWeekdayFriday")]
    pub const Friday: Self = Self(6);
    #[doc(alias = "EKWeekdaySaturday")]
    pub const Saturday: Self = Self(7);
    #[deprecated = "Use EKWeekdaySunday instead"]
    pub const EKSunday: Self = Self(EKWeekday::Sunday.0);
    #[deprecated = "Use EKWeekdayMonday instead"]
    pub const EKMonday: Self = Self(EKWeekday::Monday.0);
    #[deprecated = "Use EKWeekdayTuesday instead"]
    pub const EKTuesday: Self = Self(EKWeekday::Tuesday.0);
    #[deprecated = "Use EKWeekdayWednesday instead"]
    pub const EKWednesday: Self = Self(EKWeekday::Wednesday.0);
    #[deprecated = "Use EKWeekdayThursday instead"]
    pub const EKThursday: Self = Self(EKWeekday::Thursday.0);
    #[deprecated = "Use EKWeekdayFriday instead"]
    pub const EKFriday: Self = Self(EKWeekday::Friday.0);
    #[deprecated = "Use EKWeekdaySaturday instead"]
    pub const EKSaturday: Self = Self(EKWeekday::Saturday.0);
}

unsafe impl Encode for EKWeekday {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for EKWeekday {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKRecurrenceFrequency(pub NSInteger);
impl EKRecurrenceFrequency {
    #[doc(alias = "EKRecurrenceFrequencyDaily")]
    pub const Daily: Self = Self(0);
    #[doc(alias = "EKRecurrenceFrequencyWeekly")]
    pub const Weekly: Self = Self(1);
    #[doc(alias = "EKRecurrenceFrequencyMonthly")]
    pub const Monthly: Self = Self(2);
    #[doc(alias = "EKRecurrenceFrequencyYearly")]
    pub const Yearly: Self = Self(3);
}

unsafe impl Encode for EKRecurrenceFrequency {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for EKRecurrenceFrequency {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKParticipantType(pub NSInteger);
impl EKParticipantType {
    #[doc(alias = "EKParticipantTypeUnknown")]
    pub const Unknown: Self = Self(0);
    #[doc(alias = "EKParticipantTypePerson")]
    pub const Person: Self = Self(1);
    #[doc(alias = "EKParticipantTypeRoom")]
    pub const Room: Self = Self(2);
    #[doc(alias = "EKParticipantTypeResource")]
    pub const Resource: Self = Self(3);
    #[doc(alias = "EKParticipantTypeGroup")]
    pub const Group: Self = Self(4);
}

unsafe impl Encode for EKParticipantType {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for EKParticipantType {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKParticipantRole(pub NSInteger);
impl EKParticipantRole {
    #[doc(alias = "EKParticipantRoleUnknown")]
    pub const Unknown: Self = Self(0);
    #[doc(alias = "EKParticipantRoleRequired")]
    pub const Required: Self = Self(1);
    #[doc(alias = "EKParticipantRoleOptional")]
    pub const Optional: Self = Self(2);
    #[doc(alias = "EKParticipantRoleChair")]
    pub const Chair: Self = Self(3);
    #[doc(alias = "EKParticipantRoleNonParticipant")]
    pub const NonParticipant: Self = Self(4);
}

unsafe impl Encode for EKParticipantRole {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for EKParticipantRole {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKParticipantScheduleStatus(pub NSInteger);
impl EKParticipantScheduleStatus {
    #[doc(alias = "EKParticipantScheduleStatusNone")]
    pub const None: Self = Self(0);
    #[doc(alias = "EKParticipantScheduleStatusPending")]
    pub const Pending: Self = Self(1);
    #[doc(alias = "EKParticipantScheduleStatusSent")]
    pub const Sent: Self = Self(2);
    #[doc(alias = "EKParticipantScheduleStatusDelivered")]
    pub const Delivered: Self = Self(3);
    #[doc(alias = "EKParticipantScheduleStatusRecipientNotRecognized")]
    pub const RecipientNotRecognized: Self = Self(4);
    #[doc(alias = "EKParticipantScheduleStatusNoPrivileges")]
    pub const NoPrivileges: Self = Self(5);
    #[doc(alias = "EKParticipantScheduleStatusDeliveryFailed")]
    pub const DeliveryFailed: Self = Self(6);
    #[doc(alias = "EKParticipantScheduleStatusCannotDeliver")]
    pub const CannotDeliver: Self = Self(7);
    #[doc(alias = "EKParticipantScheduleStatusRecipientNotAllowed")]
    pub const RecipientNotAllowed: Self = Self(8);
}

unsafe impl Encode for EKParticipantScheduleStatus {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for EKParticipantScheduleStatus {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKParticipantStatus(pub NSInteger);
impl EKParticipantStatus {
    #[doc(alias = "EKParticipantStatusUnknown")]
    pub const Unknown: Self = Self(0);
    #[doc(alias = "EKParticipantStatusPending")]
    pub const Pending: Self = Self(1);
    #[doc(alias = "EKParticipantStatusAccepted")]
    pub const Accepted: Self = Self(2);
    #[doc(alias = "EKParticipantStatusDeclined")]
    pub const Declined: Self = Self(3);
    #[doc(alias = "EKParticipantStatusTentative")]
    pub const Tentative: Self = Self(4);
    #[doc(alias = "EKParticipantStatusDelegated")]
    pub const Delegated: Self = Self(5);
    #[doc(alias = "EKParticipantStatusCompleted")]
    pub const Completed: Self = Self(6);
    #[doc(alias = "EKParticipantStatusInProcess")]
    pub const InProcess: Self = Self(7);
}

unsafe impl Encode for EKParticipantStatus {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for EKParticipantStatus {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKCalendarType(pub NSInteger);
impl EKCalendarType {
    #[doc(alias = "EKCalendarTypeLocal")]
    pub const Local: Self = Self(0);
    #[doc(alias = "EKCalendarTypeCalDAV")]
    pub const CalDAV: Self = Self(1);
    #[doc(alias = "EKCalendarTypeExchange")]
    pub const Exchange: Self = Self(2);
    #[doc(alias = "EKCalendarTypeSubscription")]
    pub const Subscription: Self = Self(3);
    #[doc(alias = "EKCalendarTypeBirthday")]
    pub const Birthday: Self = Self(4);
}

unsafe impl Encode for EKCalendarType {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for EKCalendarType {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_OPTIONS
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKCalendarEventAvailabilityMask(pub NSUInteger);
bitflags::bitflags! {
    impl EKCalendarEventAvailabilityMask: NSUInteger {
        const EKCalendarEventAvailabilityNone = 0;
        const EKCalendarEventAvailabilityBusy = 1<<0;
        const EKCalendarEventAvailabilityFree = 1<<1;
        const EKCalendarEventAvailabilityTentative = 1<<2;
        const EKCalendarEventAvailabilityUnavailable = 1<<3;
    }
}

unsafe impl Encode for EKCalendarEventAvailabilityMask {
    const ENCODING: Encoding = NSUInteger::ENCODING;
}

unsafe impl RefEncode for EKCalendarEventAvailabilityMask {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKSourceType(pub NSInteger);
impl EKSourceType {
    #[doc(alias = "EKSourceTypeLocal")]
    pub const Local: Self = Self(0);
    #[doc(alias = "EKSourceTypeExchange")]
    pub const Exchange: Self = Self(1);
    #[doc(alias = "EKSourceTypeCalDAV")]
    pub const CalDAV: Self = Self(2);
    #[doc(alias = "EKSourceTypeMobileMe")]
    pub const MobileMe: Self = Self(3);
    #[doc(alias = "EKSourceTypeSubscribed")]
    pub const Subscribed: Self = Self(4);
    #[doc(alias = "EKSourceTypeBirthdays")]
    pub const Birthdays: Self = Self(5);
}

unsafe impl Encode for EKSourceType {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for EKSourceType {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKEntityType(pub NSUInteger);
impl EKEntityType {
    #[doc(alias = "EKEntityTypeEvent")]
    pub const Event: Self = Self(0);
    #[doc(alias = "EKEntityTypeReminder")]
    pub const Reminder: Self = Self(1);
}

unsafe impl Encode for EKEntityType {
    const ENCODING: Encoding = NSUInteger::ENCODING;
}

unsafe impl RefEncode for EKEntityType {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_OPTIONS
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKEntityMask(pub NSUInteger);
bitflags::bitflags! {
    impl EKEntityMask: NSUInteger {
        #[doc(alias = "EKEntityMaskEvent")]
        const Event = 1<<EKEntityType::Event.0;
        #[doc(alias = "EKEntityMaskReminder")]
        const Reminder = 1<<EKEntityType::Reminder.0;
    }
}

unsafe impl Encode for EKEntityMask {
    const ENCODING: Encoding = NSUInteger::ENCODING;
}

unsafe impl RefEncode for EKEntityMask {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKAlarmProximity(pub NSInteger);
impl EKAlarmProximity {
    #[doc(alias = "EKAlarmProximityNone")]
    pub const None: Self = Self(0);
    #[doc(alias = "EKAlarmProximityEnter")]
    pub const Enter: Self = Self(1);
    #[doc(alias = "EKAlarmProximityLeave")]
    pub const Leave: Self = Self(2);
}

unsafe impl Encode for EKAlarmProximity {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for EKAlarmProximity {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKAlarmType(pub NSInteger);
impl EKAlarmType {
    #[doc(alias = "EKAlarmTypeDisplay")]
    pub const Display: Self = Self(0);
    #[doc(alias = "EKAlarmTypeAudio")]
    pub const Audio: Self = Self(1);
    #[doc(alias = "EKAlarmTypeProcedure")]
    pub const Procedure: Self = Self(2);
    #[doc(alias = "EKAlarmTypeEmail")]
    pub const Email: Self = Self(3);
}

unsafe impl Encode for EKAlarmType {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for EKAlarmType {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct EKReminderPriority(pub NSUInteger);
impl EKReminderPriority {
    #[doc(alias = "EKReminderPriorityNone")]
    pub const None: Self = Self(0);
    #[doc(alias = "EKReminderPriorityHigh")]
    pub const High: Self = Self(1);
    #[doc(alias = "EKReminderPriorityMedium")]
    pub const Medium: Self = Self(5);
    #[doc(alias = "EKReminderPriorityLow")]
    pub const Low: Self = Self(9);
}

unsafe impl Encode for EKReminderPriority {
    const ENCODING: Encoding = NSUInteger::ENCODING;
}

unsafe impl RefEncode for EKReminderPriority {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}