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
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;
}
);
#[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, Shared>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Option<Id<NSString, Shared>>;
#[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, Shared>;
#[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, Shared>>;
}
);