icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::CoreLocation::*;
use crate::EventKit::*;
use crate::Foundation::*;
use crate::MapKit::*;

ns_enum!(
    #[underlying(NSInteger)]
    pub enum EKAuthorizationStatus {
        EKAuthorizationStatusNotDetermined = 0,
        EKAuthorizationStatusRestricted = 1,
        EKAuthorizationStatusDenied = 2,
        EKAuthorizationStatusFullAccess = 3,
        EKAuthorizationStatusWriteOnly = 4,
        #[deprecated = "Check for full access or write only access"]
        EKAuthorizationStatusAuthorized = EKAuthorizationStatusFullAccess,
    }
);

ns_enum!(
    #[underlying(NSInteger)]
    pub enum EKWeekday {
        EKWeekdaySunday = 1,
        EKWeekdayMonday = 2,
        EKWeekdayTuesday = 3,
        EKWeekdayWednesday = 4,
        EKWeekdayThursday = 5,
        EKWeekdayFriday = 6,
        EKWeekdaySaturday = 7,
        #[deprecated = "Use EKWeekdaySunday instead"]
        EKSunday = EKWeekdaySunday,
        #[deprecated = "Use EKWeekdayMonday instead"]
        EKMonday = EKWeekdayMonday,
        #[deprecated = "Use EKWeekdayTuesday instead"]
        EKTuesday = EKWeekdayTuesday,
        #[deprecated = "Use EKWeekdayWednesday instead"]
        EKWednesday = EKWeekdayWednesday,
        #[deprecated = "Use EKWeekdayThursday instead"]
        EKThursday = EKWeekdayThursday,
        #[deprecated = "Use EKWeekdayFriday instead"]
        EKFriday = EKWeekdayFriday,
        #[deprecated = "Use EKWeekdaySaturday instead"]
        EKSaturday = EKWeekdaySaturday,
    }
);

ns_enum!(
    #[underlying(NSInteger)]
    pub enum EKRecurrenceFrequency {
        EKRecurrenceFrequencyDaily = 0,
        EKRecurrenceFrequencyWeekly = 1,
        EKRecurrenceFrequencyMonthly = 2,
        EKRecurrenceFrequencyYearly = 3,
    }
);

ns_enum!(
    #[underlying(NSInteger)]
    pub enum EKParticipantType {
        EKParticipantTypeUnknown = 0,
        EKParticipantTypePerson = 1,
        EKParticipantTypeRoom = 2,
        EKParticipantTypeResource = 3,
        EKParticipantTypeGroup = 4,
    }
);

ns_enum!(
    #[underlying(NSInteger)]
    pub enum EKParticipantRole {
        EKParticipantRoleUnknown = 0,
        EKParticipantRoleRequired = 1,
        EKParticipantRoleOptional = 2,
        EKParticipantRoleChair = 3,
        EKParticipantRoleNonParticipant = 4,
    }
);

ns_enum!(
    #[underlying(NSInteger)]
    pub enum EKParticipantScheduleStatus {
        EKParticipantScheduleStatusNone = 0,
        EKParticipantScheduleStatusPending = 1,
        EKParticipantScheduleStatusSent = 2,
        EKParticipantScheduleStatusDelivered = 3,
        EKParticipantScheduleStatusRecipientNotRecognized = 4,
        EKParticipantScheduleStatusNoPrivileges = 5,
        EKParticipantScheduleStatusDeliveryFailed = 6,
        EKParticipantScheduleStatusCannotDeliver = 7,
        EKParticipantScheduleStatusRecipientNotAllowed = 8,
    }
);

ns_enum!(
    #[underlying(NSInteger)]
    pub enum EKParticipantStatus {
        EKParticipantStatusUnknown = 0,
        EKParticipantStatusPending = 1,
        EKParticipantStatusAccepted = 2,
        EKParticipantStatusDeclined = 3,
        EKParticipantStatusTentative = 4,
        EKParticipantStatusDelegated = 5,
        EKParticipantStatusCompleted = 6,
        EKParticipantStatusInProcess = 7,
    }
);

ns_enum!(
    #[underlying(NSInteger)]
    pub enum EKCalendarType {
        EKCalendarTypeLocal = 0,
        EKCalendarTypeCalDAV = 1,
        EKCalendarTypeExchange = 2,
        EKCalendarTypeSubscription = 3,
        EKCalendarTypeBirthday = 4,
    }
);

ns_options!(
    #[underlying(NSUInteger)]
    pub enum EKCalendarEventAvailabilityMask {
        EKCalendarEventAvailabilityNone = 0,
        EKCalendarEventAvailabilityBusy = 1 << 0,
        EKCalendarEventAvailabilityFree = 1 << 1,
        EKCalendarEventAvailabilityTentative = 1 << 2,
        EKCalendarEventAvailabilityUnavailable = 1 << 3,
    }
);

ns_enum!(
    #[underlying(NSInteger)]
    pub enum EKSourceType {
        EKSourceTypeLocal = 0,
        EKSourceTypeExchange = 1,
        EKSourceTypeCalDAV = 2,
        EKSourceTypeMobileMe = 3,
        EKSourceTypeSubscribed = 4,
        EKSourceTypeBirthdays = 5,
    }
);

ns_enum!(
    #[underlying(NSUInteger)]
    pub enum EKEntityType {
        EKEntityTypeEvent = 0,
        EKEntityTypeReminder = 1,
    }
);

ns_options!(
    #[underlying(NSUInteger)]
    pub enum EKEntityMask {
        EKEntityMaskEvent = 1 << EKEntityTypeEvent,
        EKEntityMaskReminder = 1 << EKEntityTypeReminder,
    }
);

ns_enum!(
    #[underlying(NSInteger)]
    pub enum EKAlarmProximity {
        EKAlarmProximityNone = 0,
        EKAlarmProximityEnter = 1,
        EKAlarmProximityLeave = 2,
    }
);

ns_enum!(
    #[underlying(NSInteger)]
    pub enum EKAlarmType {
        EKAlarmTypeDisplay = 0,
        EKAlarmTypeAudio = 1,
        EKAlarmTypeProcedure = 2,
        EKAlarmTypeEmail = 3,
    }
);

ns_enum!(
    #[underlying(NSUInteger)]
    pub enum EKReminderPriority {
        EKReminderPriorityNone = 0,
        EKReminderPriorityHigh = 1,
        EKReminderPriorityMedium = 5,
        EKReminderPriorityLow = 9,
    }
);