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::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "EventKit_EKParticipant")]
    pub struct EKParticipant;

    #[cfg(feature = "EventKit_EKParticipant")]
    unsafe impl ClassType for EKParticipant {
        #[inherits(NSObject)]
        type Super = EKObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "EventKit_EKParticipant")]
unsafe impl NSCopying for EKParticipant {}

#[cfg(feature = "EventKit_EKParticipant")]
unsafe impl NSObjectProtocol for EKParticipant {}

extern_methods!(
    #[cfg(feature = "EventKit_EKParticipant")]
    unsafe impl EKParticipant {
        #[cfg(feature = "Foundation_NSURL")]
        #[method_id(@__retain_semantics Other URL)]
        pub unsafe fn URL(&self) -> Id<NSURL>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other name)]
        pub unsafe fn name(&self) -> Option<Id<NSString>>;

        #[method(participantStatus)]
        pub unsafe fn participantStatus(&self) -> EKParticipantStatus;

        #[method(participantRole)]
        pub unsafe fn participantRole(&self) -> EKParticipantRole;

        #[method(participantType)]
        pub unsafe fn participantType(&self) -> EKParticipantType;

        #[method(isCurrentUser)]
        pub unsafe fn isCurrentUser(&self) -> bool;

        #[cfg(feature = "Foundation_NSPredicate")]
        #[method_id(@__retain_semantics Other contactPredicate)]
        pub unsafe fn contactPredicate(&self) -> Id<NSPredicate>;

        #[cfg(all(feature = "EventKit_ABAddressBook", feature = "EventKit_ABPerson"))]
        #[deprecated = "Use contactPredicate instead"]
        #[method_id(@__retain_semantics Other ABPersonInAddressBook:)]
        pub unsafe fn ABPersonInAddressBook(
            &self,
            address_book: &ABAddressBook,
        ) -> Option<Id<ABPerson>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "EventKit_EKParticipant")]
    unsafe impl EKParticipant {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);