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
use crate::common::*;
use crate::Contacts::*;
use crate::Foundation::*;
ns_enum!(
#[underlying(NSInteger)]
pub enum CNContainerType {
CNContainerTypeUnassigned = 0,
CNContainerTypeLocal = 1,
CNContainerTypeExchange = 2,
CNContainerTypeCardDAV = 3,
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Contacts_CNContainer")]
pub struct CNContainer;
#[cfg(feature = "Contacts_CNContainer")]
unsafe impl ClassType for CNContainer {
type Super = NSObject;
}
);
#[cfg(feature = "Contacts_CNContainer")]
unsafe impl NSCoding for CNContainer {}
#[cfg(feature = "Contacts_CNContainer")]
unsafe impl NSObjectProtocol for CNContainer {}
#[cfg(feature = "Contacts_CNContainer")]
unsafe impl NSSecureCoding for CNContainer {}
extern_methods!(
#[cfg(feature = "Contacts_CNContainer")]
unsafe impl CNContainer {
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other identifier)]
pub unsafe fn identifier(&self) -> Id<NSString, Shared>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Id<NSString, Shared>;
#[method(type)]
pub unsafe fn r#type(&self) -> CNContainerType;
}
);
extern_static!(CNContainerIdentifierKey: &'static NSString);
extern_static!(CNContainerNameKey: &'static NSString);
extern_static!(CNContainerTypeKey: &'static NSString);