Vendor dependencies for 0.3.0 release

This commit is contained in:
2025-09-27 10:29:08 -05:00
parent 0c8d39d483
commit 82ab7f317b
26803 changed files with 16134934 additions and 0 deletions

View File

@@ -0,0 +1,534 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryEvent;
unsafe impl ClassType for CNChangeHistoryEvent {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryEvent {}
unsafe impl NSCopying for CNChangeHistoryEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryEvent {}
extern_methods!(
unsafe impl CNChangeHistoryEvent {
#[method(acceptEventVisitor:)]
pub unsafe fn acceptEventVisitor(
&self,
visitor: &ProtocolObject<dyn CNChangeHistoryEventVisitor>,
);
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryDropEverythingEvent;
unsafe impl ClassType for CNChangeHistoryDropEverythingEvent {
#[inherits(NSObject)]
type Super = CNChangeHistoryEvent;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryDropEverythingEvent {}
unsafe impl NSCopying for CNChangeHistoryDropEverythingEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryDropEverythingEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryDropEverythingEvent {}
extern_methods!(
unsafe impl CNChangeHistoryDropEverythingEvent {}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryDropEverythingEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryAddContactEvent;
unsafe impl ClassType for CNChangeHistoryAddContactEvent {
#[inherits(NSObject)]
type Super = CNChangeHistoryEvent;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryAddContactEvent {}
unsafe impl NSCopying for CNChangeHistoryAddContactEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryAddContactEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryAddContactEvent {}
extern_methods!(
unsafe impl CNChangeHistoryAddContactEvent {
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other contact)]
pub unsafe fn contact(&self) -> Retained<CNContact>;
#[method_id(@__retain_semantics Other containerIdentifier)]
pub unsafe fn containerIdentifier(&self) -> Option<Retained<NSString>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryAddContactEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryUpdateContactEvent;
unsafe impl ClassType for CNChangeHistoryUpdateContactEvent {
#[inherits(NSObject)]
type Super = CNChangeHistoryEvent;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryUpdateContactEvent {}
unsafe impl NSCopying for CNChangeHistoryUpdateContactEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryUpdateContactEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryUpdateContactEvent {}
extern_methods!(
unsafe impl CNChangeHistoryUpdateContactEvent {
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other contact)]
pub unsafe fn contact(&self) -> Retained<CNContact>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryUpdateContactEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryDeleteContactEvent;
unsafe impl ClassType for CNChangeHistoryDeleteContactEvent {
#[inherits(NSObject)]
type Super = CNChangeHistoryEvent;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryDeleteContactEvent {}
unsafe impl NSCopying for CNChangeHistoryDeleteContactEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryDeleteContactEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryDeleteContactEvent {}
extern_methods!(
unsafe impl CNChangeHistoryDeleteContactEvent {
#[method_id(@__retain_semantics Other contactIdentifier)]
pub unsafe fn contactIdentifier(&self) -> Retained<NSString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryDeleteContactEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryAddGroupEvent;
unsafe impl ClassType for CNChangeHistoryAddGroupEvent {
#[inherits(NSObject)]
type Super = CNChangeHistoryEvent;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryAddGroupEvent {}
unsafe impl NSCopying for CNChangeHistoryAddGroupEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryAddGroupEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryAddGroupEvent {}
extern_methods!(
unsafe impl CNChangeHistoryAddGroupEvent {
#[cfg(feature = "CNGroup")]
#[method_id(@__retain_semantics Other group)]
pub unsafe fn group(&self) -> Retained<CNGroup>;
#[method_id(@__retain_semantics Other containerIdentifier)]
pub unsafe fn containerIdentifier(&self) -> Retained<NSString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryAddGroupEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryUpdateGroupEvent;
unsafe impl ClassType for CNChangeHistoryUpdateGroupEvent {
#[inherits(NSObject)]
type Super = CNChangeHistoryEvent;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryUpdateGroupEvent {}
unsafe impl NSCopying for CNChangeHistoryUpdateGroupEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryUpdateGroupEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryUpdateGroupEvent {}
extern_methods!(
unsafe impl CNChangeHistoryUpdateGroupEvent {
#[cfg(feature = "CNGroup")]
#[method_id(@__retain_semantics Other group)]
pub unsafe fn group(&self) -> Retained<CNGroup>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryUpdateGroupEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryDeleteGroupEvent;
unsafe impl ClassType for CNChangeHistoryDeleteGroupEvent {
#[inherits(NSObject)]
type Super = CNChangeHistoryEvent;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryDeleteGroupEvent {}
unsafe impl NSCopying for CNChangeHistoryDeleteGroupEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryDeleteGroupEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryDeleteGroupEvent {}
extern_methods!(
unsafe impl CNChangeHistoryDeleteGroupEvent {
#[method_id(@__retain_semantics Other groupIdentifier)]
pub unsafe fn groupIdentifier(&self) -> Retained<NSString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryDeleteGroupEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryAddMemberToGroupEvent;
unsafe impl ClassType for CNChangeHistoryAddMemberToGroupEvent {
#[inherits(NSObject)]
type Super = CNChangeHistoryEvent;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryAddMemberToGroupEvent {}
unsafe impl NSCopying for CNChangeHistoryAddMemberToGroupEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryAddMemberToGroupEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryAddMemberToGroupEvent {}
extern_methods!(
unsafe impl CNChangeHistoryAddMemberToGroupEvent {
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other member)]
pub unsafe fn member(&self) -> Retained<CNContact>;
#[cfg(feature = "CNGroup")]
#[method_id(@__retain_semantics Other group)]
pub unsafe fn group(&self) -> Retained<CNGroup>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryAddMemberToGroupEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryRemoveMemberFromGroupEvent;
unsafe impl ClassType for CNChangeHistoryRemoveMemberFromGroupEvent {
#[inherits(NSObject)]
type Super = CNChangeHistoryEvent;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryRemoveMemberFromGroupEvent {}
unsafe impl NSCopying for CNChangeHistoryRemoveMemberFromGroupEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryRemoveMemberFromGroupEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryRemoveMemberFromGroupEvent {}
extern_methods!(
unsafe impl CNChangeHistoryRemoveMemberFromGroupEvent {
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other member)]
pub unsafe fn member(&self) -> Retained<CNContact>;
#[cfg(feature = "CNGroup")]
#[method_id(@__retain_semantics Other group)]
pub unsafe fn group(&self) -> Retained<CNGroup>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryRemoveMemberFromGroupEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryAddSubgroupToGroupEvent;
unsafe impl ClassType for CNChangeHistoryAddSubgroupToGroupEvent {
#[inherits(NSObject)]
type Super = CNChangeHistoryEvent;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryAddSubgroupToGroupEvent {}
unsafe impl NSCopying for CNChangeHistoryAddSubgroupToGroupEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryAddSubgroupToGroupEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryAddSubgroupToGroupEvent {}
extern_methods!(
unsafe impl CNChangeHistoryAddSubgroupToGroupEvent {
#[cfg(feature = "CNGroup")]
#[method_id(@__retain_semantics Other subgroup)]
pub unsafe fn subgroup(&self) -> Retained<CNGroup>;
#[cfg(feature = "CNGroup")]
#[method_id(@__retain_semantics Other group)]
pub unsafe fn group(&self) -> Retained<CNGroup>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryAddSubgroupToGroupEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNChangeHistoryRemoveSubgroupFromGroupEvent;
unsafe impl ClassType for CNChangeHistoryRemoveSubgroupFromGroupEvent {
#[inherits(NSObject)]
type Super = CNChangeHistoryEvent;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNChangeHistoryRemoveSubgroupFromGroupEvent {}
unsafe impl NSCopying for CNChangeHistoryRemoveSubgroupFromGroupEvent {}
unsafe impl NSObjectProtocol for CNChangeHistoryRemoveSubgroupFromGroupEvent {}
unsafe impl NSSecureCoding for CNChangeHistoryRemoveSubgroupFromGroupEvent {}
extern_methods!(
unsafe impl CNChangeHistoryRemoveSubgroupFromGroupEvent {
#[cfg(feature = "CNGroup")]
#[method_id(@__retain_semantics Other subgroup)]
pub unsafe fn subgroup(&self) -> Retained<CNGroup>;
#[cfg(feature = "CNGroup")]
#[method_id(@__retain_semantics Other group)]
pub unsafe fn group(&self) -> Retained<CNGroup>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNChangeHistoryRemoveSubgroupFromGroupEvent {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern_protocol!(
pub unsafe trait CNChangeHistoryEventVisitor: NSObjectProtocol {
#[method(visitDropEverythingEvent:)]
unsafe fn visitDropEverythingEvent(&self, event: &CNChangeHistoryDropEverythingEvent);
#[method(visitAddContactEvent:)]
unsafe fn visitAddContactEvent(&self, event: &CNChangeHistoryAddContactEvent);
#[method(visitUpdateContactEvent:)]
unsafe fn visitUpdateContactEvent(&self, event: &CNChangeHistoryUpdateContactEvent);
#[method(visitDeleteContactEvent:)]
unsafe fn visitDeleteContactEvent(&self, event: &CNChangeHistoryDeleteContactEvent);
#[optional]
#[method(visitAddGroupEvent:)]
unsafe fn visitAddGroupEvent(&self, event: &CNChangeHistoryAddGroupEvent);
#[optional]
#[method(visitUpdateGroupEvent:)]
unsafe fn visitUpdateGroupEvent(&self, event: &CNChangeHistoryUpdateGroupEvent);
#[optional]
#[method(visitDeleteGroupEvent:)]
unsafe fn visitDeleteGroupEvent(&self, event: &CNChangeHistoryDeleteGroupEvent);
#[optional]
#[method(visitAddMemberToGroupEvent:)]
unsafe fn visitAddMemberToGroupEvent(&self, event: &CNChangeHistoryAddMemberToGroupEvent);
#[optional]
#[method(visitRemoveMemberFromGroupEvent:)]
unsafe fn visitRemoveMemberFromGroupEvent(
&self,
event: &CNChangeHistoryRemoveMemberFromGroupEvent,
);
#[optional]
#[method(visitAddSubgroupToGroupEvent:)]
unsafe fn visitAddSubgroupToGroupEvent(
&self,
event: &CNChangeHistoryAddSubgroupToGroupEvent,
);
#[optional]
#[method(visitRemoveSubgroupFromGroupEvent:)]
unsafe fn visitRemoveSubgroupFromGroupEvent(
&self,
event: &CNChangeHistoryRemoveSubgroupFromGroupEvent,
);
}
unsafe impl ProtocolType for dyn CNChangeHistoryEventVisitor {}
);

View File

@@ -0,0 +1,93 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CNFetchRequest")]
pub struct CNChangeHistoryFetchRequest;
#[cfg(feature = "CNFetchRequest")]
unsafe impl ClassType for CNChangeHistoryFetchRequest {
#[inherits(NSObject)]
type Super = CNFetchRequest;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CNFetchRequest")]
unsafe impl NSCoding for CNChangeHistoryFetchRequest {}
#[cfg(feature = "CNFetchRequest")]
unsafe impl NSObjectProtocol for CNChangeHistoryFetchRequest {}
#[cfg(feature = "CNFetchRequest")]
unsafe impl NSSecureCoding for CNChangeHistoryFetchRequest {}
extern_methods!(
#[cfg(feature = "CNFetchRequest")]
unsafe impl CNChangeHistoryFetchRequest {
#[method_id(@__retain_semantics Other startingToken)]
pub unsafe fn startingToken(&self) -> Option<Retained<NSData>>;
#[method(setStartingToken:)]
pub unsafe fn setStartingToken(&self, starting_token: Option<&NSData>);
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other additionalContactKeyDescriptors)]
pub unsafe fn additionalContactKeyDescriptors(
&self,
) -> Option<Retained<NSArray<ProtocolObject<dyn CNKeyDescriptor>>>>;
#[cfg(feature = "CNContact")]
#[method(setAdditionalContactKeyDescriptors:)]
pub unsafe fn setAdditionalContactKeyDescriptors(
&self,
additional_contact_key_descriptors: Option<
&NSArray<ProtocolObject<dyn CNKeyDescriptor>>,
>,
);
#[method(shouldUnifyResults)]
pub unsafe fn shouldUnifyResults(&self) -> bool;
#[method(setShouldUnifyResults:)]
pub unsafe fn setShouldUnifyResults(&self, should_unify_results: bool);
#[method(mutableObjects)]
pub unsafe fn mutableObjects(&self) -> bool;
#[method(setMutableObjects:)]
pub unsafe fn setMutableObjects(&self, mutable_objects: bool);
#[method(includeGroupChanges)]
pub unsafe fn includeGroupChanges(&self) -> bool;
#[method(setIncludeGroupChanges:)]
pub unsafe fn setIncludeGroupChanges(&self, include_group_changes: bool);
#[method_id(@__retain_semantics Other excludedTransactionAuthors)]
pub unsafe fn excludedTransactionAuthors(&self) -> Option<Retained<NSArray<NSString>>>;
#[method(setExcludedTransactionAuthors:)]
pub unsafe fn setExcludedTransactionAuthors(
&self,
excluded_transaction_authors: Option<&NSArray<NSString>>,
);
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
#[cfg(feature = "CNFetchRequest")]
unsafe impl CNChangeHistoryFetchRequest {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,343 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CNContactType(pub NSInteger);
impl CNContactType {
#[doc(alias = "CNContactTypePerson")]
pub const Person: Self = Self(0);
#[doc(alias = "CNContactTypeOrganization")]
pub const Organization: Self = Self(1);
}
unsafe impl Encode for CNContactType {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for CNContactType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CNContactSortOrder(pub NSInteger);
impl CNContactSortOrder {
#[doc(alias = "CNContactSortOrderNone")]
pub const None: Self = Self(0);
#[doc(alias = "CNContactSortOrderUserDefault")]
pub const UserDefault: Self = Self(1);
#[doc(alias = "CNContactSortOrderGivenName")]
pub const GivenName: Self = Self(2);
#[doc(alias = "CNContactSortOrderFamilyName")]
pub const FamilyName: Self = Self(3);
}
unsafe impl Encode for CNContactSortOrder {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for CNContactSortOrder {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_protocol!(
pub unsafe trait CNKeyDescriptor: NSCopying + NSObjectProtocol + NSSecureCoding {}
unsafe impl ProtocolType for dyn CNKeyDescriptor {}
);
unsafe impl CNKeyDescriptor for NSString {}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNContact;
unsafe impl ClassType for CNContact {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNContact {}
unsafe impl NSCopying for CNContact {}
unsafe impl NSMutableCopying for CNContact {}
unsafe impl NSObjectProtocol for CNContact {}
unsafe impl NSSecureCoding for CNContact {}
extern_methods!(
unsafe impl CNContact {
#[method_id(@__retain_semantics Other identifier)]
pub unsafe fn identifier(&self) -> Retained<NSString>;
#[method(contactType)]
pub unsafe fn contactType(&self) -> CNContactType;
#[method_id(@__retain_semantics Other namePrefix)]
pub unsafe fn namePrefix(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other givenName)]
pub unsafe fn givenName(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other middleName)]
pub unsafe fn middleName(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other familyName)]
pub unsafe fn familyName(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other previousFamilyName)]
pub unsafe fn previousFamilyName(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other nameSuffix)]
pub unsafe fn nameSuffix(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other nickname)]
pub unsafe fn nickname(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other organizationName)]
pub unsafe fn organizationName(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other departmentName)]
pub unsafe fn departmentName(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other jobTitle)]
pub unsafe fn jobTitle(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other phoneticGivenName)]
pub unsafe fn phoneticGivenName(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other phoneticMiddleName)]
pub unsafe fn phoneticMiddleName(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other phoneticFamilyName)]
pub unsafe fn phoneticFamilyName(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other phoneticOrganizationName)]
pub unsafe fn phoneticOrganizationName(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other note)]
pub unsafe fn note(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other imageData)]
pub unsafe fn imageData(&self) -> Option<Retained<NSData>>;
#[method_id(@__retain_semantics Other thumbnailImageData)]
pub unsafe fn thumbnailImageData(&self) -> Option<Retained<NSData>>;
#[method(imageDataAvailable)]
pub unsafe fn imageDataAvailable(&self) -> bool;
#[cfg(all(feature = "CNLabeledValue", feature = "CNPhoneNumber"))]
#[method_id(@__retain_semantics Other phoneNumbers)]
pub unsafe fn phoneNumbers(&self) -> Retained<NSArray<CNLabeledValue<CNPhoneNumber>>>;
#[cfg(feature = "CNLabeledValue")]
#[method_id(@__retain_semantics Other emailAddresses)]
pub unsafe fn emailAddresses(&self) -> Retained<NSArray<CNLabeledValue<NSString>>>;
#[cfg(all(feature = "CNLabeledValue", feature = "CNPostalAddress"))]
#[method_id(@__retain_semantics Other postalAddresses)]
pub unsafe fn postalAddresses(&self) -> Retained<NSArray<CNLabeledValue<CNPostalAddress>>>;
#[cfg(feature = "CNLabeledValue")]
#[method_id(@__retain_semantics Other urlAddresses)]
pub unsafe fn urlAddresses(&self) -> Retained<NSArray<CNLabeledValue<NSString>>>;
#[cfg(all(feature = "CNContactRelation", feature = "CNLabeledValue"))]
#[method_id(@__retain_semantics Other contactRelations)]
pub unsafe fn contactRelations(
&self,
) -> Retained<NSArray<CNLabeledValue<CNContactRelation>>>;
#[cfg(all(feature = "CNLabeledValue", feature = "CNSocialProfile"))]
#[method_id(@__retain_semantics Other socialProfiles)]
pub unsafe fn socialProfiles(&self) -> Retained<NSArray<CNLabeledValue<CNSocialProfile>>>;
#[cfg(all(feature = "CNInstantMessageAddress", feature = "CNLabeledValue"))]
#[method_id(@__retain_semantics Other instantMessageAddresses)]
pub unsafe fn instantMessageAddresses(
&self,
) -> Retained<NSArray<CNLabeledValue<CNInstantMessageAddress>>>;
#[method_id(@__retain_semantics Other birthday)]
pub unsafe fn birthday(&self) -> Option<Retained<NSDateComponents>>;
#[method_id(@__retain_semantics Other nonGregorianBirthday)]
pub unsafe fn nonGregorianBirthday(&self) -> Option<Retained<NSDateComponents>>;
#[cfg(feature = "CNLabeledValue")]
#[method_id(@__retain_semantics Other dates)]
pub unsafe fn dates(&self) -> Retained<NSArray<CNLabeledValue<NSDateComponents>>>;
#[method(isKeyAvailable:)]
pub unsafe fn isKeyAvailable(&self, key: &NSString) -> bool;
#[method(areKeysAvailable:)]
pub unsafe fn areKeysAvailable(
&self,
key_descriptors: &NSArray<ProtocolObject<dyn CNKeyDescriptor>>,
) -> bool;
#[method_id(@__retain_semantics Other localizedStringForKey:)]
pub unsafe fn localizedStringForKey(key: &NSString) -> Retained<NSString>;
#[cfg(feature = "block2")]
#[method(comparatorForNameSortOrder:)]
pub unsafe fn comparatorForNameSortOrder(sort_order: CNContactSortOrder) -> NSComparator;
#[method_id(@__retain_semantics Other descriptorForAllComparatorKeys)]
pub unsafe fn descriptorForAllComparatorKeys(
) -> Retained<ProtocolObject<dyn CNKeyDescriptor>>;
#[method(isUnifiedWithContactWithIdentifier:)]
pub unsafe fn isUnifiedWithContactWithIdentifier(
&self,
contact_identifier: &NSString,
) -> bool;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNContact {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CNContactPropertyNotFetchedExceptionName: &'static NSString;
}
extern "C" {
pub static CNContactIdentifierKey: &'static NSString;
}
extern "C" {
pub static CNContactNamePrefixKey: &'static NSString;
}
extern "C" {
pub static CNContactGivenNameKey: &'static NSString;
}
extern "C" {
pub static CNContactMiddleNameKey: &'static NSString;
}
extern "C" {
pub static CNContactFamilyNameKey: &'static NSString;
}
extern "C" {
pub static CNContactPreviousFamilyNameKey: &'static NSString;
}
extern "C" {
pub static CNContactNameSuffixKey: &'static NSString;
}
extern "C" {
pub static CNContactNicknameKey: &'static NSString;
}
extern "C" {
pub static CNContactOrganizationNameKey: &'static NSString;
}
extern "C" {
pub static CNContactDepartmentNameKey: &'static NSString;
}
extern "C" {
pub static CNContactJobTitleKey: &'static NSString;
}
extern "C" {
pub static CNContactPhoneticGivenNameKey: &'static NSString;
}
extern "C" {
pub static CNContactPhoneticMiddleNameKey: &'static NSString;
}
extern "C" {
pub static CNContactPhoneticFamilyNameKey: &'static NSString;
}
extern "C" {
pub static CNContactPhoneticOrganizationNameKey: &'static NSString;
}
extern "C" {
pub static CNContactBirthdayKey: &'static NSString;
}
extern "C" {
pub static CNContactNonGregorianBirthdayKey: &'static NSString;
}
extern "C" {
pub static CNContactNoteKey: &'static NSString;
}
extern "C" {
pub static CNContactImageDataKey: &'static NSString;
}
extern "C" {
pub static CNContactThumbnailImageDataKey: &'static NSString;
}
extern "C" {
pub static CNContactImageDataAvailableKey: &'static NSString;
}
extern "C" {
pub static CNContactTypeKey: &'static NSString;
}
extern "C" {
pub static CNContactPhoneNumbersKey: &'static NSString;
}
extern "C" {
pub static CNContactEmailAddressesKey: &'static NSString;
}
extern "C" {
pub static CNContactPostalAddressesKey: &'static NSString;
}
extern "C" {
pub static CNContactDatesKey: &'static NSString;
}
extern "C" {
pub static CNContactUrlAddressesKey: &'static NSString;
}
extern "C" {
pub static CNContactRelationsKey: &'static NSString;
}
extern "C" {
pub static CNContactSocialProfilesKey: &'static NSString;
}
extern "C" {
pub static CNContactInstantMessageAddressesKey: &'static NSString;
}

View File

@@ -0,0 +1,83 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CNFetchRequest")]
pub struct CNContactFetchRequest;
#[cfg(feature = "CNFetchRequest")]
unsafe impl ClassType for CNContactFetchRequest {
#[inherits(NSObject)]
type Super = CNFetchRequest;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CNFetchRequest")]
unsafe impl NSCoding for CNContactFetchRequest {}
#[cfg(feature = "CNFetchRequest")]
unsafe impl NSObjectProtocol for CNContactFetchRequest {}
#[cfg(feature = "CNFetchRequest")]
unsafe impl NSSecureCoding for CNContactFetchRequest {}
extern_methods!(
#[cfg(feature = "CNFetchRequest")]
unsafe impl CNContactFetchRequest {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Init initWithKeysToFetch:)]
pub unsafe fn initWithKeysToFetch(
this: Allocated<Self>,
keys_to_fetch: &NSArray<ProtocolObject<dyn CNKeyDescriptor>>,
) -> Retained<Self>;
#[method_id(@__retain_semantics Other predicate)]
pub unsafe fn predicate(&self) -> Option<Retained<NSPredicate>>;
#[method(setPredicate:)]
pub unsafe fn setPredicate(&self, predicate: Option<&NSPredicate>);
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other keysToFetch)]
pub unsafe fn keysToFetch(&self) -> Retained<NSArray<ProtocolObject<dyn CNKeyDescriptor>>>;
#[cfg(feature = "CNContact")]
#[method(setKeysToFetch:)]
pub unsafe fn setKeysToFetch(
&self,
keys_to_fetch: &NSArray<ProtocolObject<dyn CNKeyDescriptor>>,
);
#[method(mutableObjects)]
pub unsafe fn mutableObjects(&self) -> bool;
#[method(setMutableObjects:)]
pub unsafe fn setMutableObjects(&self, mutable_objects: bool);
#[method(unifyResults)]
pub unsafe fn unifyResults(&self) -> bool;
#[method(setUnifyResults:)]
pub unsafe fn setUnifyResults(&self, unify_results: bool);
#[cfg(feature = "CNContact")]
#[method(sortOrder)]
pub unsafe fn sortOrder(&self) -> CNContactSortOrder;
#[cfg(feature = "CNContact")]
#[method(setSortOrder:)]
pub unsafe fn setSortOrder(&self, sort_order: CNContactSortOrder);
}
);

View File

@@ -0,0 +1,141 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CNContactFormatterStyle(pub NSInteger);
impl CNContactFormatterStyle {
#[doc(alias = "CNContactFormatterStyleFullName")]
pub const FullName: Self = Self(0);
#[doc(alias = "CNContactFormatterStylePhoneticFullName")]
pub const PhoneticFullName: Self = Self(1);
}
unsafe impl Encode for CNContactFormatterStyle {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for CNContactFormatterStyle {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CNContactDisplayNameOrder(pub NSInteger);
impl CNContactDisplayNameOrder {
#[doc(alias = "CNContactDisplayNameOrderUserDefault")]
pub const UserDefault: Self = Self(0);
#[doc(alias = "CNContactDisplayNameOrderGivenNameFirst")]
pub const GivenNameFirst: Self = Self(1);
#[doc(alias = "CNContactDisplayNameOrderFamilyNameFirst")]
pub const FamilyNameFirst: Self = Self(2);
}
unsafe impl Encode for CNContactDisplayNameOrder {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for CNContactDisplayNameOrder {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNContactFormatter;
unsafe impl ClassType for CNContactFormatter {
#[inherits(NSObject)]
type Super = NSFormatter;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNContactFormatter {}
unsafe impl NSCopying for CNContactFormatter {}
unsafe impl NSObjectProtocol for CNContactFormatter {}
unsafe impl NSSecureCoding for CNContactFormatter {}
extern_methods!(
unsafe impl CNContactFormatter {
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other descriptorForRequiredKeysForStyle:)]
pub unsafe fn descriptorForRequiredKeysForStyle(
style: CNContactFormatterStyle,
) -> Retained<ProtocolObject<dyn CNKeyDescriptor>>;
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other descriptorForRequiredKeysForNameOrder)]
pub unsafe fn descriptorForRequiredKeysForNameOrder(
) -> Retained<ProtocolObject<dyn CNKeyDescriptor>>;
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other descriptorForRequiredKeysForDelimiter)]
pub unsafe fn descriptorForRequiredKeysForDelimiter(
) -> Retained<ProtocolObject<dyn CNKeyDescriptor>>;
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other stringFromContact:style:)]
pub unsafe fn stringFromContact_style(
contact: &CNContact,
style: CNContactFormatterStyle,
) -> Option<Retained<NSString>>;
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other attributedStringFromContact:style:defaultAttributes:)]
pub unsafe fn attributedStringFromContact_style_defaultAttributes(
contact: &CNContact,
style: CNContactFormatterStyle,
attributes: Option<&NSDictionary>,
) -> Option<Retained<NSAttributedString>>;
#[cfg(feature = "CNContact")]
#[method(nameOrderForContact:)]
pub unsafe fn nameOrderForContact(contact: &CNContact) -> CNContactDisplayNameOrder;
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other delimiterForContact:)]
pub unsafe fn delimiterForContact(contact: &CNContact) -> Retained<NSString>;
#[method(style)]
pub unsafe fn style(&self) -> CNContactFormatterStyle;
#[method(setStyle:)]
pub unsafe fn setStyle(&self, style: CNContactFormatterStyle);
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other stringFromContact:)]
pub unsafe fn stringFromContact(&self, contact: &CNContact) -> Option<Retained<NSString>>;
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other attributedStringFromContact:defaultAttributes:)]
pub unsafe fn attributedStringFromContact_defaultAttributes(
&self,
contact: &CNContact,
attributes: Option<&NSDictionary>,
) -> Option<Retained<NSAttributedString>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNContactFormatter {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CNContactPropertyAttribute: &'static NSString;
}

View File

@@ -0,0 +1,55 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNContactProperty;
unsafe impl ClassType for CNContactProperty {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNContactProperty {}
unsafe impl NSCopying for CNContactProperty {}
unsafe impl NSObjectProtocol for CNContactProperty {}
unsafe impl NSSecureCoding for CNContactProperty {}
extern_methods!(
unsafe impl CNContactProperty {
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other contact)]
pub unsafe fn contact(&self) -> Retained<CNContact>;
#[method_id(@__retain_semantics Other key)]
pub unsafe fn key(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other value)]
pub unsafe fn value(&self) -> Option<Retained<AnyObject>>;
#[method_id(@__retain_semantics Other identifier)]
pub unsafe fn identifier(&self) -> Option<Retained<NSString>>;
#[method_id(@__retain_semantics Other label)]
pub unsafe fn label(&self) -> Option<Retained<NSString>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNContactProperty {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,917 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNContactRelation;
unsafe impl ClassType for CNContactRelation {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNContactRelation {}
unsafe impl NSCopying for CNContactRelation {}
unsafe impl NSObjectProtocol for CNContactRelation {}
unsafe impl NSSecureCoding for CNContactRelation {}
extern_methods!(
unsafe impl CNContactRelation {
#[method_id(@__retain_semantics Other contactRelationWithName:)]
pub unsafe fn contactRelationWithName(name: &NSString) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithName:)]
pub unsafe fn initWithName(this: Allocated<Self>, name: &NSString) -> Retained<Self>;
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Retained<NSString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNContactRelation {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CNLabelContactRelationAssistant: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationManager: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationColleague: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationTeacher: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungestSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationEldestSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungestBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationEldestBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationFriend: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationMaleFriend: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationFemaleFriend: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSpouse: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationWife: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationHusband: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationPartner: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationMalePartner: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationFemalePartner: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGirlfriendOrBoyfriend: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGirlfriend: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationBoyfriend: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationParent: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationMother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationFather: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationChild: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandparent: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandmother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandmotherMothersMother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandmotherFathersMother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandfather: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandfatherMothersFather: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandfatherFathersFather: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGreatGrandparent: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGreatGrandmother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGreatGrandfather: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandchild: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGranddaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGranddaughterDaughtersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGranddaughterSonsDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandson: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandsonDaughtersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandsonSonsSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGreatGrandchild: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGreatGranddaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGreatGrandson: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationParentInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationMotherInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationMotherInLawWifesMother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationMotherInLawHusbandsMother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationFatherInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationFatherInLawWifesFather: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationFatherInLawHusbandsFather: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCoParentInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCoMotherInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCoFatherInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSiblingInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerSiblingInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderSiblingInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSisterInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerSisterInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderSisterInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSisterInLawSpousesSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSisterInLawWifesSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSisterInLawHusbandsSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSisterInLawBrothersWife: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSisterInLawYoungerBrothersWife: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSisterInLawElderBrothersWife: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationBrotherInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerBrotherInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderBrotherInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationBrotherInLawSpousesBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationBrotherInLawHusbandsBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationBrotherInLawWifesBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationBrotherInLawSistersHusband: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationBrotherInLawYoungerSistersHusband: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationBrotherInLawElderSistersHusband: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSisterInLawWifesBrothersWife: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSisterInLawHusbandsBrothersWife: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationBrotherInLawWifesSistersHusband: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationBrotherInLawHusbandsSistersHusband: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCoSiblingInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCoSisterInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCoBrotherInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationChildInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationDaughterInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSonInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousin: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousin: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousin: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationMaleCousin: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationFemaleCousin: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinParentsSiblingsChild: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinParentsSiblingsSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinParentsSiblingsSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinParentsSiblingsSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinParentsSiblingsDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinParentsSiblingsDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinParentsSiblingsDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinMothersSistersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinMothersSistersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinMothersSistersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinMothersSistersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinMothersSistersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinMothersSistersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinMothersBrothersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinMothersBrothersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinMothersBrothersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinMothersBrothersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinMothersBrothersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinMothersBrothersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinFathersSistersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinFathersSistersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinFathersSistersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinFathersSistersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinFathersSistersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinFathersSistersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinFathersBrothersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinFathersBrothersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinFathersBrothersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinFathersBrothersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinFathersBrothersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinFathersBrothersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinGrandparentsSiblingsChild: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinGrandparentsSiblingsDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinGrandparentsSiblingsSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinMothersSiblingsSonOrFathersSistersSon:
&'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinMothersSiblingsSonOrFathersSistersSon:
&'static NSString;
}
extern "C" {
pub static CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter:
&'static NSString;
}
extern "C" {
pub static CNLabelContactRelationElderCousinMothersSiblingsDaughterOrFathersSistersDaughter:
&'static NSString;
}
extern "C" {
pub static CNLabelContactRelationParentsSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationParentsYoungerSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationParentsElderSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationParentsSiblingMothersSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationParentsSiblingMothersYoungerSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationParentsSiblingMothersElderSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationParentsSiblingFathersSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationParentsSiblingFathersYoungerSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationParentsSiblingFathersElderSibling: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAunt: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntParentsSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntParentsYoungerSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntParentsElderSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntFathersSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntFathersYoungerSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntFathersElderSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntFathersBrothersWife: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntFathersYoungerBrothersWife: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntFathersElderBrothersWife: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntMothersSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntMothersYoungerSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntMothersElderSister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationAuntMothersBrothersWife: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandaunt: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncle: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleParentsBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleParentsYoungerBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleParentsElderBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleMothersBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleMothersYoungerBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleMothersElderBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleMothersSistersHusband: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleFathersBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleFathersYoungerBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleFathersElderBrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleFathersSistersHusband: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleFathersYoungerSistersHusband: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationUncleFathersElderSistersHusband: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGranduncle: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSiblingsChild: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNiece: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNieceSistersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNieceBrothersDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNieceSistersDaughterOrWifesSiblingsDaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNieceBrothersDaughterOrHusbandsSiblingsDaughter:
&'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNephew: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNephewSistersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNephewBrothersSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNephewBrothersSonOrHusbandsSiblingsSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNephewSistersSonOrWifesSiblingsSon: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandniece: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandnieceSistersGranddaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandnieceBrothersGranddaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandnephew: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandnephewSistersGrandson: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandnephewBrothersGrandson: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationStepparent: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationStepmother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationStepfather: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationStepchild: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationStepdaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationStepson: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationStepsister: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationStepbrother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationMotherInLawOrStepmother: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationFatherInLawOrStepfather: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationDaughterInLawOrStepdaughter: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSonInLawOrStepson: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationCousinOrSiblingsChild: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNieceOrCousin: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationNephewOrCousin: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandchildOrSiblingsChild: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGranddaughterOrNiece: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGrandsonOrNephew: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationGreatGrandchildOrSiblingsGrandchild: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationDaughterInLawOrSisterInLaw: &'static NSString;
}
extern "C" {
pub static CNLabelContactRelationSonInLawOrBrotherInLaw: &'static NSString;
}

View File

@@ -0,0 +1,178 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CNEntityType(pub NSInteger);
impl CNEntityType {
#[doc(alias = "CNEntityTypeContacts")]
pub const Contacts: Self = Self(0);
}
unsafe impl Encode for CNEntityType {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for CNEntityType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CNAuthorizationStatus(pub NSInteger);
impl CNAuthorizationStatus {
#[doc(alias = "CNAuthorizationStatusNotDetermined")]
pub const NotDetermined: Self = Self(0);
#[doc(alias = "CNAuthorizationStatusRestricted")]
pub const Restricted: Self = Self(1);
#[doc(alias = "CNAuthorizationStatusDenied")]
pub const Denied: Self = Self(2);
#[doc(alias = "CNAuthorizationStatusAuthorized")]
pub const Authorized: Self = Self(3);
}
unsafe impl Encode for CNAuthorizationStatus {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for CNAuthorizationStatus {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNContactStore;
unsafe impl ClassType for CNContactStore {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CNContactStore {}
extern_methods!(
unsafe impl CNContactStore {
#[method(authorizationStatusForEntityType:)]
pub unsafe fn authorizationStatusForEntityType(
entity_type: CNEntityType,
) -> CNAuthorizationStatus;
#[cfg(feature = "block2")]
#[method(requestAccessForEntityType:completionHandler:)]
pub unsafe fn requestAccessForEntityType_completionHandler(
&self,
entity_type: CNEntityType,
completion_handler: &block2::Block<dyn Fn(Bool, *mut NSError)>,
);
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other unifiedContactsMatchingPredicate:keysToFetch:error:_)]
pub unsafe fn unifiedContactsMatchingPredicate_keysToFetch_error(
&self,
predicate: &NSPredicate,
keys: &NSArray<ProtocolObject<dyn CNKeyDescriptor>>,
) -> Result<Retained<NSArray<CNContact>>, Retained<NSError>>;
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other unifiedContactWithIdentifier:keysToFetch:error:_)]
pub unsafe fn unifiedContactWithIdentifier_keysToFetch_error(
&self,
identifier: &NSString,
keys: &NSArray<ProtocolObject<dyn CNKeyDescriptor>>,
) -> Result<Retained<CNContact>, Retained<NSError>>;
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other unifiedMeContactWithKeysToFetch:error:_)]
pub unsafe fn unifiedMeContactWithKeysToFetch_error(
&self,
keys: &NSArray<ProtocolObject<dyn CNKeyDescriptor>>,
) -> Result<Retained<CNContact>, Retained<NSError>>;
#[cfg(all(
feature = "CNContact",
feature = "CNContactFetchRequest",
feature = "CNFetchRequest",
feature = "CNFetchResult"
))]
#[method_id(@__retain_semantics Other enumeratorForContactFetchRequest:error:_)]
pub unsafe fn enumeratorForContactFetchRequest_error(
&self,
request: &CNContactFetchRequest,
) -> Result<Retained<CNFetchResult<NSEnumerator<CNContact>>>, Retained<NSError>>;
#[cfg(all(
feature = "CNChangeHistoryEvent",
feature = "CNChangeHistoryFetchRequest",
feature = "CNFetchRequest",
feature = "CNFetchResult"
))]
#[method_id(@__retain_semantics Other enumeratorForChangeHistoryFetchRequest:error:_)]
pub unsafe fn enumeratorForChangeHistoryFetchRequest_error(
&self,
request: &CNChangeHistoryFetchRequest,
) -> Result<Retained<CNFetchResult<NSEnumerator<CNChangeHistoryEvent>>>, Retained<NSError>>;
#[cfg(all(
feature = "CNContact",
feature = "CNContactFetchRequest",
feature = "CNFetchRequest",
feature = "block2"
))]
#[method(enumerateContactsWithFetchRequest:error:usingBlock:)]
pub unsafe fn enumerateContactsWithFetchRequest_error_usingBlock(
&self,
fetch_request: &CNContactFetchRequest,
error: Option<&mut Option<Retained<NSError>>>,
block: &block2::Block<dyn Fn(NonNull<CNContact>, NonNull<Bool>) + '_>,
) -> bool;
#[cfg(feature = "CNGroup")]
#[method_id(@__retain_semantics Other groupsMatchingPredicate:error:_)]
pub unsafe fn groupsMatchingPredicate_error(
&self,
predicate: Option<&NSPredicate>,
) -> Result<Retained<NSArray<CNGroup>>, Retained<NSError>>;
#[cfg(feature = "CNContainer")]
#[method_id(@__retain_semantics Other containersMatchingPredicate:error:_)]
pub unsafe fn containersMatchingPredicate_error(
&self,
predicate: Option<&NSPredicate>,
) -> Result<Retained<NSArray<CNContainer>>, Retained<NSError>>;
#[cfg(feature = "CNSaveRequest")]
#[method(executeSaveRequest:error:_)]
pub unsafe fn executeSaveRequest_error(
&self,
save_request: &CNSaveRequest,
) -> Result<(), Retained<NSError>>;
#[method_id(@__retain_semantics Other currentHistoryToken)]
pub unsafe fn currentHistoryToken(&self) -> Option<Retained<NSData>>;
#[method_id(@__retain_semantics Other defaultContainerIdentifier)]
pub unsafe fn defaultContainerIdentifier(&self) -> Option<Retained<NSString>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNContactStore {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CNContactStoreDidChangeNotification: &'static NSString;
}

View File

@@ -0,0 +1,49 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNContactVCardSerialization;
unsafe impl ClassType for CNContactVCardSerialization {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CNContactVCardSerialization {}
extern_methods!(
unsafe impl CNContactVCardSerialization {
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other descriptorForRequiredKeys)]
pub unsafe fn descriptorForRequiredKeys() -> Retained<ProtocolObject<dyn CNKeyDescriptor>>;
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other dataWithContacts:error:_)]
pub unsafe fn dataWithContacts_error(
contacts: &NSArray<CNContact>,
) -> Result<Retained<NSData>, Retained<NSError>>;
#[cfg(feature = "CNContact")]
#[method_id(@__retain_semantics Other contactsWithData:error:_)]
pub unsafe fn contactsWithData_error(
data: &NSData,
) -> Result<Retained<NSArray<CNContact>>, Retained<NSError>>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNContactVCardSerialization {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,18 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_methods!(
/// NSItemProvider
#[cfg(feature = "CNContact")]
unsafe impl CNContact {}
);
#[cfg(feature = "CNContact")]
unsafe impl NSItemProviderReading for CNContact {}
#[cfg(feature = "CNContact")]
unsafe impl NSItemProviderWriting for CNContact {}

View File

@@ -0,0 +1,41 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_methods!(
/// Predicates
#[cfg(feature = "CNContact")]
unsafe impl CNContact {
#[method_id(@__retain_semantics Other predicateForContactsMatchingName:)]
pub unsafe fn predicateForContactsMatchingName(name: &NSString) -> Retained<NSPredicate>;
#[method_id(@__retain_semantics Other predicateForContactsMatchingEmailAddress:)]
pub unsafe fn predicateForContactsMatchingEmailAddress(
email_address: &NSString,
) -> Retained<NSPredicate>;
#[cfg(feature = "CNPhoneNumber")]
#[method_id(@__retain_semantics Other predicateForContactsMatchingPhoneNumber:)]
pub unsafe fn predicateForContactsMatchingPhoneNumber(
phone_number: &CNPhoneNumber,
) -> Retained<NSPredicate>;
#[method_id(@__retain_semantics Other predicateForContactsWithIdentifiers:)]
pub unsafe fn predicateForContactsWithIdentifiers(
identifiers: &NSArray<NSString>,
) -> Retained<NSPredicate>;
#[method_id(@__retain_semantics Other predicateForContactsInGroupWithIdentifier:)]
pub unsafe fn predicateForContactsInGroupWithIdentifier(
group_identifier: &NSString,
) -> Retained<NSPredicate>;
#[method_id(@__retain_semantics Other predicateForContactsInContainerWithIdentifier:)]
pub unsafe fn predicateForContactsInContainerWithIdentifier(
container_identifier: &NSString,
) -> Retained<NSPredicate>;
}
);

View File

@@ -0,0 +1,43 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNContactsUserDefaults;
unsafe impl ClassType for CNContactsUserDefaults {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CNContactsUserDefaults {}
extern_methods!(
unsafe impl CNContactsUserDefaults {
#[method_id(@__retain_semantics Other sharedDefaults)]
pub unsafe fn sharedDefaults() -> Retained<Self>;
#[cfg(feature = "CNContact")]
#[method(sortOrder)]
pub unsafe fn sortOrder(&self) -> CNContactSortOrder;
#[method_id(@__retain_semantics Other countryCode)]
pub unsafe fn countryCode(&self) -> Retained<NSString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNContactsUserDefaults {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,83 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CNContainerType(pub NSInteger);
impl CNContainerType {
#[doc(alias = "CNContainerTypeUnassigned")]
pub const Unassigned: Self = Self(0);
#[doc(alias = "CNContainerTypeLocal")]
pub const Local: Self = Self(1);
#[doc(alias = "CNContainerTypeExchange")]
pub const Exchange: Self = Self(2);
#[doc(alias = "CNContainerTypeCardDAV")]
pub const CardDAV: Self = Self(3);
}
unsafe impl Encode for CNContainerType {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for CNContainerType {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNContainer;
unsafe impl ClassType for CNContainer {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNContainer {}
unsafe impl NSCopying for CNContainer {}
unsafe impl NSObjectProtocol for CNContainer {}
unsafe impl NSSecureCoding for CNContainer {}
extern_methods!(
unsafe impl CNContainer {
#[method_id(@__retain_semantics Other identifier)]
pub unsafe fn identifier(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Retained<NSString>;
#[method(type)]
pub unsafe fn r#type(&self) -> CNContainerType;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNContainer {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CNContainerIdentifierKey: &'static NSString;
}
extern "C" {
pub static CNContainerNameKey: &'static NSString;
}
extern "C" {
pub static CNContainerTypeKey: &'static NSString;
}

View File

@@ -0,0 +1,27 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_methods!(
/// Predicates
#[cfg(feature = "CNContainer")]
unsafe impl CNContainer {
#[method_id(@__retain_semantics Other predicateForContainersWithIdentifiers:)]
pub unsafe fn predicateForContainersWithIdentifiers(
identifiers: &NSArray<NSString>,
) -> Retained<NSPredicate>;
#[method_id(@__retain_semantics Other predicateForContainerOfContactWithIdentifier:)]
pub unsafe fn predicateForContainerOfContactWithIdentifier(
contact_identifier: &NSString,
) -> Retained<NSPredicate>;
#[method_id(@__retain_semantics Other predicateForContainerOfGroupWithIdentifier:)]
pub unsafe fn predicateForContainerOfGroupWithIdentifier(
group_identifier: &NSString,
) -> Retained<NSPredicate>;
}
);

View File

@@ -0,0 +1,97 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static CNErrorDomain: Option<&'static NSString>;
}
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CNErrorCode(pub NSInteger);
impl CNErrorCode {
#[doc(alias = "CNErrorCodeCommunicationError")]
pub const CommunicationError: Self = Self(1);
#[doc(alias = "CNErrorCodeDataAccessError")]
pub const DataAccessError: Self = Self(2);
#[doc(alias = "CNErrorCodeAuthorizationDenied")]
pub const AuthorizationDenied: Self = Self(100);
#[doc(alias = "CNErrorCodeNoAccessableWritableContainers")]
pub const NoAccessableWritableContainers: Self = Self(101);
#[doc(alias = "CNErrorCodeUnauthorizedKeys")]
pub const UnauthorizedKeys: Self = Self(102);
#[doc(alias = "CNErrorCodeFeatureDisabledByUser")]
pub const FeatureDisabledByUser: Self = Self(103);
#[doc(alias = "CNErrorCodeFeatureNotAvailable")]
pub const FeatureNotAvailable: Self = Self(104);
#[doc(alias = "CNErrorCodeRecordDoesNotExist")]
pub const RecordDoesNotExist: Self = Self(200);
#[doc(alias = "CNErrorCodeInsertedRecordAlreadyExists")]
pub const InsertedRecordAlreadyExists: Self = Self(201);
#[doc(alias = "CNErrorCodeContainmentCycle")]
pub const ContainmentCycle: Self = Self(202);
#[doc(alias = "CNErrorCodeContainmentScope")]
pub const ContainmentScope: Self = Self(203);
#[doc(alias = "CNErrorCodeParentRecordDoesNotExist")]
pub const ParentRecordDoesNotExist: Self = Self(204);
#[doc(alias = "CNErrorCodeRecordIdentifierInvalid")]
pub const RecordIdentifierInvalid: Self = Self(205);
#[doc(alias = "CNErrorCodeRecordNotWritable")]
pub const RecordNotWritable: Self = Self(206);
#[doc(alias = "CNErrorCodeParentContainerNotWritable")]
pub const ParentContainerNotWritable: Self = Self(207);
#[doc(alias = "CNErrorCodeValidationMultipleErrors")]
pub const ValidationMultipleErrors: Self = Self(300);
#[doc(alias = "CNErrorCodeValidationTypeMismatch")]
pub const ValidationTypeMismatch: Self = Self(301);
#[doc(alias = "CNErrorCodeValidationConfigurationError")]
pub const ValidationConfigurationError: Self = Self(302);
#[doc(alias = "CNErrorCodePredicateInvalid")]
pub const PredicateInvalid: Self = Self(400);
#[doc(alias = "CNErrorCodePolicyViolation")]
pub const PolicyViolation: Self = Self(500);
#[doc(alias = "CNErrorCodeClientIdentifierInvalid")]
pub const ClientIdentifierInvalid: Self = Self(600);
#[doc(alias = "CNErrorCodeClientIdentifierDoesNotExist")]
pub const ClientIdentifierDoesNotExist: Self = Self(601);
#[doc(alias = "CNErrorCodeClientIdentifierCollision")]
pub const ClientIdentifierCollision: Self = Self(602);
#[doc(alias = "CNErrorCodeChangeHistoryExpired")]
pub const ChangeHistoryExpired: Self = Self(603);
#[doc(alias = "CNErrorCodeChangeHistoryInvalidAnchor")]
pub const ChangeHistoryInvalidAnchor: Self = Self(604);
#[doc(alias = "CNErrorCodeChangeHistoryInvalidFetchRequest")]
pub const ChangeHistoryInvalidFetchRequest: Self = Self(605);
#[doc(alias = "CNErrorCodeVCardMalformed")]
pub const VCardMalformed: Self = Self(700);
#[doc(alias = "CNErrorCodeVCardSummarizationError")]
pub const VCardSummarizationError: Self = Self(701);
}
unsafe impl Encode for CNErrorCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for CNErrorCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern "C" {
pub static CNErrorUserInfoAffectedRecordsKey: Option<&'static NSString>;
}
extern "C" {
pub static CNErrorUserInfoAffectedRecordIdentifiersKey: Option<&'static NSString>;
}
extern "C" {
pub static CNErrorUserInfoValidationErrorsKey: Option<&'static NSString>;
}
extern "C" {
pub static CNErrorUserInfoKeyPathsKey: Option<&'static NSString>;
}

View File

@@ -0,0 +1,32 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNFetchRequest;
unsafe impl ClassType for CNFetchRequest {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CNFetchRequest {}
extern_methods!(
unsafe impl CNFetchRequest {}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNFetchRequest {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,46 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
__inner_extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNFetchResult<ValueType: ?Sized = AnyObject> {
__superclass: NSObject,
_inner0: PhantomData<*mut ValueType>,
notunwindsafe: PhantomData<&'static mut ()>,
}
unsafe impl<ValueType: ?Sized + Message> ClassType for CNFetchResult<ValueType> {
type Super = NSObject;
type Mutability = InteriorMutable;
fn as_super(&self) -> &Self::Super {
&self.__superclass
}
fn as_super_mut(&mut self) -> &mut Self::Super {
&mut self.__superclass
}
}
);
unsafe impl<ValueType: ?Sized> NSObjectProtocol for CNFetchResult<ValueType> {}
extern_methods!(
unsafe impl<ValueType: Message> CNFetchResult<ValueType> {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
#[method_id(@__retain_semantics Other value)]
pub unsafe fn value(&self) -> Retained<ValueType>;
#[method_id(@__retain_semantics Other currentHistoryToken)]
pub unsafe fn currentHistoryToken(&self) -> Retained<NSData>;
}
);

View File

@@ -0,0 +1,55 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNGroup;
unsafe impl ClassType for CNGroup {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNGroup {}
unsafe impl NSCopying for CNGroup {}
unsafe impl NSMutableCopying for CNGroup {}
unsafe impl NSObjectProtocol for CNGroup {}
unsafe impl NSSecureCoding for CNGroup {}
extern_methods!(
unsafe impl CNGroup {
#[method_id(@__retain_semantics Other identifier)]
pub unsafe fn identifier(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Retained<NSString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNGroup {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CNGroupIdentifierKey: &'static NSString;
}
extern "C" {
pub static CNGroupNameKey: &'static NSString;
}

View File

@@ -0,0 +1,27 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_methods!(
/// Predicates
#[cfg(feature = "CNGroup")]
unsafe impl CNGroup {
#[method_id(@__retain_semantics Other predicateForGroupsWithIdentifiers:)]
pub unsafe fn predicateForGroupsWithIdentifiers(
identifiers: &NSArray<NSString>,
) -> Retained<NSPredicate>;
#[method_id(@__retain_semantics Other predicateForSubgroupsInGroupWithIdentifier:)]
pub unsafe fn predicateForSubgroupsInGroupWithIdentifier(
parent_group_identifier: &NSString,
) -> Retained<NSPredicate>;
#[method_id(@__retain_semantics Other predicateForGroupsInContainerWithIdentifier:)]
pub unsafe fn predicateForGroupsInContainerWithIdentifier(
container_identifier: &NSString,
) -> Retained<NSPredicate>;
}
);

View File

@@ -0,0 +1,106 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNInstantMessageAddress;
unsafe impl ClassType for CNInstantMessageAddress {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNInstantMessageAddress {}
unsafe impl NSCopying for CNInstantMessageAddress {}
unsafe impl NSObjectProtocol for CNInstantMessageAddress {}
unsafe impl NSSecureCoding for CNInstantMessageAddress {}
extern_methods!(
unsafe impl CNInstantMessageAddress {
#[method_id(@__retain_semantics Other username)]
pub unsafe fn username(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other service)]
pub unsafe fn service(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Init initWithUsername:service:)]
pub unsafe fn initWithUsername_service(
this: Allocated<Self>,
username: &NSString,
service: &NSString,
) -> Retained<Self>;
#[method_id(@__retain_semantics Other localizedStringForKey:)]
pub unsafe fn localizedStringForKey(key: &NSString) -> Retained<NSString>;
#[method_id(@__retain_semantics Other localizedStringForService:)]
pub unsafe fn localizedStringForService(service: &NSString) -> Retained<NSString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNInstantMessageAddress {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CNInstantMessageAddressUsernameKey: &'static NSString;
}
extern "C" {
pub static CNInstantMessageAddressServiceKey: &'static NSString;
}
extern "C" {
pub static CNInstantMessageServiceAIM: &'static NSString;
}
extern "C" {
pub static CNInstantMessageServiceFacebook: &'static NSString;
}
extern "C" {
pub static CNInstantMessageServiceGaduGadu: &'static NSString;
}
extern "C" {
pub static CNInstantMessageServiceGoogleTalk: &'static NSString;
}
extern "C" {
pub static CNInstantMessageServiceICQ: &'static NSString;
}
extern "C" {
pub static CNInstantMessageServiceJabber: &'static NSString;
}
extern "C" {
pub static CNInstantMessageServiceMSN: &'static NSString;
}
extern "C" {
pub static CNInstantMessageServiceQQ: &'static NSString;
}
extern "C" {
pub static CNInstantMessageServiceSkype: &'static NSString;
}
extern "C" {
pub static CNInstantMessageServiceYahoo: &'static NSString;
}

View File

@@ -0,0 +1,118 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
__inner_extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNLabeledValue<ValueType: ?Sized = AnyObject> {
__superclass: NSObject,
_inner0: PhantomData<*mut ValueType>,
notunwindsafe: PhantomData<&'static mut ()>,
}
unsafe impl<ValueType: ?Sized + Message> ClassType for CNLabeledValue<ValueType> {
type Super = NSObject;
type Mutability = InteriorMutable;
fn as_super(&self) -> &Self::Super {
&self.__superclass
}
fn as_super_mut(&mut self) -> &mut Self::Super {
&mut self.__superclass
}
}
);
unsafe impl<ValueType: ?Sized + NSCoding> NSCoding for CNLabeledValue<ValueType> {}
unsafe impl<ValueType: ?Sized + IsIdCloneable> NSCopying for CNLabeledValue<ValueType> {}
unsafe impl<ValueType: ?Sized> NSObjectProtocol for CNLabeledValue<ValueType> {}
unsafe impl<ValueType: ?Sized + NSSecureCoding> NSSecureCoding for CNLabeledValue<ValueType> {}
extern_methods!(
unsafe impl<ValueType: Message> CNLabeledValue<ValueType> {
#[method_id(@__retain_semantics Other identifier)]
pub unsafe fn identifier(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other label)]
pub unsafe fn label(&self) -> Option<Retained<NSString>>;
#[method_id(@__retain_semantics Other value)]
pub unsafe fn value(&self) -> Retained<ValueType>;
#[method_id(@__retain_semantics Other labeledValueWithLabel:value:)]
pub unsafe fn labeledValueWithLabel_value(
label: Option<&NSString>,
value: &ValueType,
) -> Retained<Self>;
#[method_id(@__retain_semantics Init initWithLabel:value:)]
pub unsafe fn initWithLabel_value(
this: Allocated<Self>,
label: Option<&NSString>,
value: &ValueType,
) -> Retained<Self>;
#[method_id(@__retain_semantics Other labeledValueBySettingLabel:)]
pub unsafe fn labeledValueBySettingLabel(&self, label: Option<&NSString>)
-> Retained<Self>;
#[method_id(@__retain_semantics Other labeledValueBySettingValue:)]
pub unsafe fn labeledValueBySettingValue(&self, value: &ValueType) -> Retained<Self>;
#[method_id(@__retain_semantics Other labeledValueBySettingLabel:value:)]
pub unsafe fn labeledValueBySettingLabel_value(
&self,
label: Option<&NSString>,
value: &ValueType,
) -> Retained<Self>;
#[method_id(@__retain_semantics Other localizedStringForLabel:)]
pub unsafe fn localizedStringForLabel(label: &NSString) -> Retained<NSString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl<ValueType: Message> CNLabeledValue<ValueType> {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CNLabelHome: &'static NSString;
}
extern "C" {
pub static CNLabelWork: &'static NSString;
}
extern "C" {
pub static CNLabelSchool: &'static NSString;
}
extern "C" {
pub static CNLabelOther: &'static NSString;
}
extern "C" {
pub static CNLabelEmailiCloud: &'static NSString;
}
extern "C" {
pub static CNLabelURLAddressHomePage: &'static NSString;
}
extern "C" {
pub static CNLabelDateAnniversary: &'static NSString;
}

View File

@@ -0,0 +1,251 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CNContact")]
pub struct CNMutableContact;
#[cfg(feature = "CNContact")]
unsafe impl ClassType for CNMutableContact {
#[inherits(NSObject)]
type Super = CNContact;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CNContact")]
unsafe impl NSCoding for CNMutableContact {}
#[cfg(feature = "CNContact")]
unsafe impl NSCopying for CNMutableContact {}
#[cfg(feature = "CNContact")]
unsafe impl NSMutableCopying for CNMutableContact {}
#[cfg(feature = "CNContact")]
unsafe impl NSObjectProtocol for CNMutableContact {}
#[cfg(feature = "CNContact")]
unsafe impl NSSecureCoding for CNMutableContact {}
extern_methods!(
#[cfg(feature = "CNContact")]
unsafe impl CNMutableContact {
#[method(contactType)]
pub unsafe fn contactType(&self) -> CNContactType;
#[method(setContactType:)]
pub unsafe fn setContactType(&self, contact_type: CNContactType);
#[method_id(@__retain_semantics Other namePrefix)]
pub unsafe fn namePrefix(&self) -> Retained<NSString>;
#[method(setNamePrefix:)]
pub unsafe fn setNamePrefix(&self, name_prefix: &NSString);
#[method_id(@__retain_semantics Other givenName)]
pub unsafe fn givenName(&self) -> Retained<NSString>;
#[method(setGivenName:)]
pub unsafe fn setGivenName(&self, given_name: &NSString);
#[method_id(@__retain_semantics Other middleName)]
pub unsafe fn middleName(&self) -> Retained<NSString>;
#[method(setMiddleName:)]
pub unsafe fn setMiddleName(&self, middle_name: &NSString);
#[method_id(@__retain_semantics Other familyName)]
pub unsafe fn familyName(&self) -> Retained<NSString>;
#[method(setFamilyName:)]
pub unsafe fn setFamilyName(&self, family_name: &NSString);
#[method_id(@__retain_semantics Other previousFamilyName)]
pub unsafe fn previousFamilyName(&self) -> Retained<NSString>;
#[method(setPreviousFamilyName:)]
pub unsafe fn setPreviousFamilyName(&self, previous_family_name: &NSString);
#[method_id(@__retain_semantics Other nameSuffix)]
pub unsafe fn nameSuffix(&self) -> Retained<NSString>;
#[method(setNameSuffix:)]
pub unsafe fn setNameSuffix(&self, name_suffix: &NSString);
#[method_id(@__retain_semantics Other nickname)]
pub unsafe fn nickname(&self) -> Retained<NSString>;
#[method(setNickname:)]
pub unsafe fn setNickname(&self, nickname: &NSString);
#[method_id(@__retain_semantics Other organizationName)]
pub unsafe fn organizationName(&self) -> Retained<NSString>;
#[method(setOrganizationName:)]
pub unsafe fn setOrganizationName(&self, organization_name: &NSString);
#[method_id(@__retain_semantics Other departmentName)]
pub unsafe fn departmentName(&self) -> Retained<NSString>;
#[method(setDepartmentName:)]
pub unsafe fn setDepartmentName(&self, department_name: &NSString);
#[method_id(@__retain_semantics Other jobTitle)]
pub unsafe fn jobTitle(&self) -> Retained<NSString>;
#[method(setJobTitle:)]
pub unsafe fn setJobTitle(&self, job_title: &NSString);
#[method_id(@__retain_semantics Other phoneticGivenName)]
pub unsafe fn phoneticGivenName(&self) -> Retained<NSString>;
#[method(setPhoneticGivenName:)]
pub unsafe fn setPhoneticGivenName(&self, phonetic_given_name: &NSString);
#[method_id(@__retain_semantics Other phoneticMiddleName)]
pub unsafe fn phoneticMiddleName(&self) -> Retained<NSString>;
#[method(setPhoneticMiddleName:)]
pub unsafe fn setPhoneticMiddleName(&self, phonetic_middle_name: &NSString);
#[method_id(@__retain_semantics Other phoneticFamilyName)]
pub unsafe fn phoneticFamilyName(&self) -> Retained<NSString>;
#[method(setPhoneticFamilyName:)]
pub unsafe fn setPhoneticFamilyName(&self, phonetic_family_name: &NSString);
#[method_id(@__retain_semantics Other phoneticOrganizationName)]
pub unsafe fn phoneticOrganizationName(&self) -> Retained<NSString>;
#[method(setPhoneticOrganizationName:)]
pub unsafe fn setPhoneticOrganizationName(&self, phonetic_organization_name: &NSString);
#[method_id(@__retain_semantics Other note)]
pub unsafe fn note(&self) -> Retained<NSString>;
#[method(setNote:)]
pub unsafe fn setNote(&self, note: &NSString);
#[method_id(@__retain_semantics Other imageData)]
pub unsafe fn imageData(&self) -> Option<Retained<NSData>>;
#[method(setImageData:)]
pub unsafe fn setImageData(&self, image_data: Option<&NSData>);
#[cfg(all(feature = "CNLabeledValue", feature = "CNPhoneNumber"))]
#[method_id(@__retain_semantics Other phoneNumbers)]
pub unsafe fn phoneNumbers(&self) -> Retained<NSArray<CNLabeledValue<CNPhoneNumber>>>;
#[cfg(all(feature = "CNLabeledValue", feature = "CNPhoneNumber"))]
#[method(setPhoneNumbers:)]
pub unsafe fn setPhoneNumbers(
&self,
phone_numbers: &NSArray<CNLabeledValue<CNPhoneNumber>>,
);
#[cfg(feature = "CNLabeledValue")]
#[method_id(@__retain_semantics Other emailAddresses)]
pub unsafe fn emailAddresses(&self) -> Retained<NSArray<CNLabeledValue<NSString>>>;
#[cfg(feature = "CNLabeledValue")]
#[method(setEmailAddresses:)]
pub unsafe fn setEmailAddresses(&self, email_addresses: &NSArray<CNLabeledValue<NSString>>);
#[cfg(all(feature = "CNLabeledValue", feature = "CNPostalAddress"))]
#[method_id(@__retain_semantics Other postalAddresses)]
pub unsafe fn postalAddresses(&self) -> Retained<NSArray<CNLabeledValue<CNPostalAddress>>>;
#[cfg(all(feature = "CNLabeledValue", feature = "CNPostalAddress"))]
#[method(setPostalAddresses:)]
pub unsafe fn setPostalAddresses(
&self,
postal_addresses: &NSArray<CNLabeledValue<CNPostalAddress>>,
);
#[cfg(feature = "CNLabeledValue")]
#[method_id(@__retain_semantics Other urlAddresses)]
pub unsafe fn urlAddresses(&self) -> Retained<NSArray<CNLabeledValue<NSString>>>;
#[cfg(feature = "CNLabeledValue")]
#[method(setUrlAddresses:)]
pub unsafe fn setUrlAddresses(&self, url_addresses: &NSArray<CNLabeledValue<NSString>>);
#[cfg(all(feature = "CNContactRelation", feature = "CNLabeledValue"))]
#[method_id(@__retain_semantics Other contactRelations)]
pub unsafe fn contactRelations(
&self,
) -> Retained<NSArray<CNLabeledValue<CNContactRelation>>>;
#[cfg(all(feature = "CNContactRelation", feature = "CNLabeledValue"))]
#[method(setContactRelations:)]
pub unsafe fn setContactRelations(
&self,
contact_relations: &NSArray<CNLabeledValue<CNContactRelation>>,
);
#[cfg(all(feature = "CNLabeledValue", feature = "CNSocialProfile"))]
#[method_id(@__retain_semantics Other socialProfiles)]
pub unsafe fn socialProfiles(&self) -> Retained<NSArray<CNLabeledValue<CNSocialProfile>>>;
#[cfg(all(feature = "CNLabeledValue", feature = "CNSocialProfile"))]
#[method(setSocialProfiles:)]
pub unsafe fn setSocialProfiles(
&self,
social_profiles: &NSArray<CNLabeledValue<CNSocialProfile>>,
);
#[cfg(all(feature = "CNInstantMessageAddress", feature = "CNLabeledValue"))]
#[method_id(@__retain_semantics Other instantMessageAddresses)]
pub unsafe fn instantMessageAddresses(
&self,
) -> Retained<NSArray<CNLabeledValue<CNInstantMessageAddress>>>;
#[cfg(all(feature = "CNInstantMessageAddress", feature = "CNLabeledValue"))]
#[method(setInstantMessageAddresses:)]
pub unsafe fn setInstantMessageAddresses(
&self,
instant_message_addresses: &NSArray<CNLabeledValue<CNInstantMessageAddress>>,
);
#[method_id(@__retain_semantics Other birthday)]
pub unsafe fn birthday(&self) -> Option<Retained<NSDateComponents>>;
#[method(setBirthday:)]
pub unsafe fn setBirthday(&self, birthday: Option<&NSDateComponents>);
#[method_id(@__retain_semantics Other nonGregorianBirthday)]
pub unsafe fn nonGregorianBirthday(&self) -> Option<Retained<NSDateComponents>>;
#[method(setNonGregorianBirthday:)]
pub unsafe fn setNonGregorianBirthday(
&self,
non_gregorian_birthday: Option<&NSDateComponents>,
);
#[cfg(feature = "CNLabeledValue")]
#[method_id(@__retain_semantics Other dates)]
pub unsafe fn dates(&self) -> Retained<NSArray<CNLabeledValue<NSDateComponents>>>;
#[cfg(feature = "CNLabeledValue")]
#[method(setDates:)]
pub unsafe fn setDates(&self, dates: &NSArray<CNLabeledValue<NSDateComponents>>);
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
#[cfg(feature = "CNContact")]
unsafe impl CNMutableContact {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,57 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CNGroup")]
pub struct CNMutableGroup;
#[cfg(feature = "CNGroup")]
unsafe impl ClassType for CNMutableGroup {
#[inherits(NSObject)]
type Super = CNGroup;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CNGroup")]
unsafe impl NSCoding for CNMutableGroup {}
#[cfg(feature = "CNGroup")]
unsafe impl NSCopying for CNMutableGroup {}
#[cfg(feature = "CNGroup")]
unsafe impl NSMutableCopying for CNMutableGroup {}
#[cfg(feature = "CNGroup")]
unsafe impl NSObjectProtocol for CNMutableGroup {}
#[cfg(feature = "CNGroup")]
unsafe impl NSSecureCoding for CNMutableGroup {}
extern_methods!(
#[cfg(feature = "CNGroup")]
unsafe impl CNMutableGroup {
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Retained<NSString>;
#[method(setName:)]
pub unsafe fn setName(&self, name: &NSString);
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
#[cfg(feature = "CNGroup")]
unsafe impl CNMutableGroup {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,99 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CNPostalAddress")]
pub struct CNMutablePostalAddress;
#[cfg(feature = "CNPostalAddress")]
unsafe impl ClassType for CNMutablePostalAddress {
#[inherits(NSObject)]
type Super = CNPostalAddress;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CNPostalAddress")]
unsafe impl NSCoding for CNMutablePostalAddress {}
#[cfg(feature = "CNPostalAddress")]
unsafe impl NSCopying for CNMutablePostalAddress {}
#[cfg(feature = "CNPostalAddress")]
unsafe impl NSMutableCopying for CNMutablePostalAddress {}
#[cfg(feature = "CNPostalAddress")]
unsafe impl NSObjectProtocol for CNMutablePostalAddress {}
#[cfg(feature = "CNPostalAddress")]
unsafe impl NSSecureCoding for CNMutablePostalAddress {}
extern_methods!(
#[cfg(feature = "CNPostalAddress")]
unsafe impl CNMutablePostalAddress {
#[method_id(@__retain_semantics Other street)]
pub unsafe fn street(&self) -> Retained<NSString>;
#[method(setStreet:)]
pub unsafe fn setStreet(&self, street: &NSString);
#[method_id(@__retain_semantics Other subLocality)]
pub unsafe fn subLocality(&self) -> Retained<NSString>;
#[method(setSubLocality:)]
pub unsafe fn setSubLocality(&self, sub_locality: &NSString);
#[method_id(@__retain_semantics Other city)]
pub unsafe fn city(&self) -> Retained<NSString>;
#[method(setCity:)]
pub unsafe fn setCity(&self, city: &NSString);
#[method_id(@__retain_semantics Other subAdministrativeArea)]
pub unsafe fn subAdministrativeArea(&self) -> Retained<NSString>;
#[method(setSubAdministrativeArea:)]
pub unsafe fn setSubAdministrativeArea(&self, sub_administrative_area: &NSString);
#[method_id(@__retain_semantics Other state)]
pub unsafe fn state(&self) -> Retained<NSString>;
#[method(setState:)]
pub unsafe fn setState(&self, state: &NSString);
#[method_id(@__retain_semantics Other postalCode)]
pub unsafe fn postalCode(&self) -> Retained<NSString>;
#[method(setPostalCode:)]
pub unsafe fn setPostalCode(&self, postal_code: &NSString);
#[method_id(@__retain_semantics Other country)]
pub unsafe fn country(&self) -> Retained<NSString>;
#[method(setCountry:)]
pub unsafe fn setCountry(&self, country: &NSString);
#[method_id(@__retain_semantics Other ISOCountryCode)]
pub unsafe fn ISOCountryCode(&self) -> Retained<NSString>;
#[method(setISOCountryCode:)]
pub unsafe fn setISOCountryCode(&self, iso_country_code: &NSString);
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
#[cfg(feature = "CNPostalAddress")]
unsafe impl CNMutablePostalAddress {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,81 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNPhoneNumber;
unsafe impl ClassType for CNPhoneNumber {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNPhoneNumber {}
unsafe impl NSCopying for CNPhoneNumber {}
unsafe impl NSObjectProtocol for CNPhoneNumber {}
unsafe impl NSSecureCoding for CNPhoneNumber {}
extern_methods!(
unsafe impl CNPhoneNumber {
#[method_id(@__retain_semantics Other phoneNumberWithStringValue:)]
pub unsafe fn phoneNumberWithStringValue(string_value: &NSString)
-> Option<Retained<Self>>;
#[method_id(@__retain_semantics Init initWithStringValue:)]
pub unsafe fn initWithStringValue(
this: Allocated<Self>,
string: &NSString,
) -> Option<Retained<Self>>;
#[deprecated = "Use initWithStringValue:"]
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[deprecated = "Use phoneNumberWithStringValue:"]
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
#[method_id(@__retain_semantics Other stringValue)]
pub unsafe fn stringValue(&self) -> Retained<NSString>;
}
);
extern "C" {
pub static CNLabelPhoneNumberiPhone: &'static NSString;
}
extern "C" {
pub static CNLabelPhoneNumberAppleWatch: &'static NSString;
}
extern "C" {
pub static CNLabelPhoneNumberMobile: &'static NSString;
}
extern "C" {
pub static CNLabelPhoneNumberMain: &'static NSString;
}
extern "C" {
pub static CNLabelPhoneNumberHomeFax: &'static NSString;
}
extern "C" {
pub static CNLabelPhoneNumberWorkFax: &'static NSString;
}
extern "C" {
pub static CNLabelPhoneNumberOtherFax: &'static NSString;
}
extern "C" {
pub static CNLabelPhoneNumberPager: &'static NSString;
}

View File

@@ -0,0 +1,100 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNPostalAddress;
unsafe impl ClassType for CNPostalAddress {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNPostalAddress {}
unsafe impl NSCopying for CNPostalAddress {}
unsafe impl NSMutableCopying for CNPostalAddress {}
unsafe impl NSObjectProtocol for CNPostalAddress {}
unsafe impl NSSecureCoding for CNPostalAddress {}
extern_methods!(
unsafe impl CNPostalAddress {
#[method_id(@__retain_semantics Other street)]
pub unsafe fn street(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other subLocality)]
pub unsafe fn subLocality(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other city)]
pub unsafe fn city(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other subAdministrativeArea)]
pub unsafe fn subAdministrativeArea(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other state)]
pub unsafe fn state(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other postalCode)]
pub unsafe fn postalCode(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other country)]
pub unsafe fn country(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other ISOCountryCode)]
pub unsafe fn ISOCountryCode(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other localizedStringForKey:)]
pub unsafe fn localizedStringForKey(key: &NSString) -> Retained<NSString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNPostalAddress {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CNPostalAddressStreetKey: &'static NSString;
}
extern "C" {
pub static CNPostalAddressSubLocalityKey: &'static NSString;
}
extern "C" {
pub static CNPostalAddressCityKey: &'static NSString;
}
extern "C" {
pub static CNPostalAddressSubAdministrativeAreaKey: &'static NSString;
}
extern "C" {
pub static CNPostalAddressStateKey: &'static NSString;
}
extern "C" {
pub static CNPostalAddressPostalCodeKey: &'static NSString;
}
extern "C" {
pub static CNPostalAddressCountryKey: &'static NSString;
}
extern "C" {
pub static CNPostalAddressISOCountryCodeKey: &'static NSString;
}

View File

@@ -0,0 +1,99 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CNPostalAddressFormatterStyle(pub NSInteger);
impl CNPostalAddressFormatterStyle {
#[doc(alias = "CNPostalAddressFormatterStyleMailingAddress")]
pub const MailingAddress: Self = Self(0);
}
unsafe impl Encode for CNPostalAddressFormatterStyle {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for CNPostalAddressFormatterStyle {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNPostalAddressFormatter;
unsafe impl ClassType for CNPostalAddressFormatter {
#[inherits(NSObject)]
type Super = NSFormatter;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNPostalAddressFormatter {}
unsafe impl NSCopying for CNPostalAddressFormatter {}
unsafe impl NSObjectProtocol for CNPostalAddressFormatter {}
extern_methods!(
unsafe impl CNPostalAddressFormatter {
#[cfg(feature = "CNPostalAddress")]
#[method_id(@__retain_semantics Other stringFromPostalAddress:style:)]
pub unsafe fn stringFromPostalAddress_style(
postal_address: &CNPostalAddress,
style: CNPostalAddressFormatterStyle,
) -> Retained<NSString>;
#[cfg(feature = "CNPostalAddress")]
#[method_id(@__retain_semantics Other attributedStringFromPostalAddress:style:withDefaultAttributes:)]
pub unsafe fn attributedStringFromPostalAddress_style_withDefaultAttributes(
postal_address: &CNPostalAddress,
style: CNPostalAddressFormatterStyle,
attributes: &NSDictionary,
) -> Retained<NSAttributedString>;
#[method(style)]
pub unsafe fn style(&self) -> CNPostalAddressFormatterStyle;
#[method(setStyle:)]
pub unsafe fn setStyle(&self, style: CNPostalAddressFormatterStyle);
#[cfg(feature = "CNPostalAddress")]
#[method_id(@__retain_semantics Other stringFromPostalAddress:)]
pub unsafe fn stringFromPostalAddress(
&self,
postal_address: &CNPostalAddress,
) -> Retained<NSString>;
#[cfg(feature = "CNPostalAddress")]
#[method_id(@__retain_semantics Other attributedStringFromPostalAddress:withDefaultAttributes:)]
pub unsafe fn attributedStringFromPostalAddress_withDefaultAttributes(
&self,
postal_address: &CNPostalAddress,
attributes: &NSDictionary,
) -> Retained<NSAttributedString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNPostalAddressFormatter {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CNPostalAddressPropertyAttribute: &'static NSString;
}
extern "C" {
pub static CNPostalAddressLocalizedPropertyNameAttribute: &'static NSString;
}

View File

@@ -0,0 +1,93 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNSaveRequest;
unsafe impl ClassType for CNSaveRequest {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for CNSaveRequest {}
extern_methods!(
unsafe impl CNSaveRequest {
#[cfg(all(feature = "CNContact", feature = "CNMutableContact"))]
#[method(addContact:toContainerWithIdentifier:)]
pub unsafe fn addContact_toContainerWithIdentifier(
&self,
contact: &CNMutableContact,
identifier: Option<&NSString>,
);
#[cfg(all(feature = "CNContact", feature = "CNMutableContact"))]
#[method(updateContact:)]
pub unsafe fn updateContact(&self, contact: &CNMutableContact);
#[cfg(all(feature = "CNContact", feature = "CNMutableContact"))]
#[method(deleteContact:)]
pub unsafe fn deleteContact(&self, contact: &CNMutableContact);
#[cfg(all(feature = "CNGroup", feature = "CNMutableGroup"))]
#[method(addGroup:toContainerWithIdentifier:)]
pub unsafe fn addGroup_toContainerWithIdentifier(
&self,
group: &CNMutableGroup,
identifier: Option<&NSString>,
);
#[cfg(all(feature = "CNGroup", feature = "CNMutableGroup"))]
#[method(updateGroup:)]
pub unsafe fn updateGroup(&self, group: &CNMutableGroup);
#[cfg(all(feature = "CNGroup", feature = "CNMutableGroup"))]
#[method(deleteGroup:)]
pub unsafe fn deleteGroup(&self, group: &CNMutableGroup);
#[cfg(feature = "CNGroup")]
#[method(addSubgroup:toGroup:)]
pub unsafe fn addSubgroup_toGroup(&self, subgroup: &CNGroup, group: &CNGroup);
#[cfg(feature = "CNGroup")]
#[method(removeSubgroup:fromGroup:)]
pub unsafe fn removeSubgroup_fromGroup(&self, subgroup: &CNGroup, group: &CNGroup);
#[cfg(all(feature = "CNContact", feature = "CNGroup"))]
#[method(addMember:toGroup:)]
pub unsafe fn addMember_toGroup(&self, contact: &CNContact, group: &CNGroup);
#[cfg(all(feature = "CNContact", feature = "CNGroup"))]
#[method(removeMember:fromGroup:)]
pub unsafe fn removeMember_fromGroup(&self, contact: &CNContact, group: &CNGroup);
#[method_id(@__retain_semantics Other transactionAuthor)]
pub unsafe fn transactionAuthor(&self) -> Option<Retained<NSString>>;
#[method(setTransactionAuthor:)]
pub unsafe fn setTransactionAuthor(&self, transaction_author: Option<&NSString>);
#[method(shouldRefetchContacts)]
pub unsafe fn shouldRefetchContacts(&self) -> bool;
#[method(setShouldRefetchContacts:)]
pub unsafe fn setShouldRefetchContacts(&self, should_refetch_contacts: bool);
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNSaveRequest {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);

View File

@@ -0,0 +1,118 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CNSocialProfile;
unsafe impl ClassType for CNSocialProfile {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSCoding for CNSocialProfile {}
unsafe impl NSCopying for CNSocialProfile {}
unsafe impl NSObjectProtocol for CNSocialProfile {}
unsafe impl NSSecureCoding for CNSocialProfile {}
extern_methods!(
unsafe impl CNSocialProfile {
#[method_id(@__retain_semantics Other urlString)]
pub unsafe fn urlString(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other username)]
pub unsafe fn username(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other userIdentifier)]
pub unsafe fn userIdentifier(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Other service)]
pub unsafe fn service(&self) -> Retained<NSString>;
#[method_id(@__retain_semantics Init initWithUrlString:username:userIdentifier:service:)]
pub unsafe fn initWithUrlString_username_userIdentifier_service(
this: Allocated<Self>,
url_string: Option<&NSString>,
username: Option<&NSString>,
user_identifier: Option<&NSString>,
service: Option<&NSString>,
) -> Retained<Self>;
#[method_id(@__retain_semantics Other localizedStringForKey:)]
pub unsafe fn localizedStringForKey(key: &NSString) -> Retained<NSString>;
#[method_id(@__retain_semantics Other localizedStringForService:)]
pub unsafe fn localizedStringForService(service: &NSString) -> Retained<NSString>;
}
);
extern_methods!(
/// Methods declared on superclass `NSObject`
unsafe impl CNSocialProfile {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);
extern "C" {
pub static CNSocialProfileURLStringKey: &'static NSString;
}
extern "C" {
pub static CNSocialProfileUsernameKey: &'static NSString;
}
extern "C" {
pub static CNSocialProfileUserIdentifierKey: &'static NSString;
}
extern "C" {
pub static CNSocialProfileServiceKey: &'static NSString;
}
extern "C" {
pub static CNSocialProfileServiceFacebook: &'static NSString;
}
extern "C" {
pub static CNSocialProfileServiceFlickr: &'static NSString;
}
extern "C" {
pub static CNSocialProfileServiceLinkedIn: &'static NSString;
}
extern "C" {
pub static CNSocialProfileServiceMySpace: &'static NSString;
}
extern "C" {
pub static CNSocialProfileServiceSinaWeibo: &'static NSString;
}
extern "C" {
pub static CNSocialProfileServiceTencentWeibo: &'static NSString;
}
extern "C" {
pub static CNSocialProfileServiceTwitter: &'static NSString;
}
extern "C" {
pub static CNSocialProfileServiceYelp: &'static NSString;
}
extern "C" {
pub static CNSocialProfileServiceGameCenter: &'static NSString;
}

View File

@@ -0,0 +1,2 @@
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT

View File

@@ -0,0 +1,819 @@
// This file has been automatically generated by `objc2`'s `header-translator`.
// DO NOT EDIT
#![allow(unused_imports)]
#![allow(deprecated)]
#![allow(non_snake_case)]
#![allow(non_camel_case_types)]
#![allow(non_upper_case_globals)]
#![allow(missing_docs)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::type_complexity)]
#![allow(clippy::upper_case_acronyms)]
#![allow(clippy::identity_op)]
#![allow(clippy::missing_safety_doc)]
#[link(name = "Contacts", kind = "framework")]
extern "C" {}
#[cfg(feature = "CNChangeHistoryEvent")]
#[path = "CNChangeHistoryEvent.rs"]
mod __CNChangeHistoryEvent;
#[cfg(feature = "CNChangeHistoryFetchRequest")]
#[path = "CNChangeHistoryFetchRequest.rs"]
mod __CNChangeHistoryFetchRequest;
#[cfg(feature = "CNContact")]
#[path = "CNContact.rs"]
mod __CNContact;
#[cfg(feature = "CNContactFetchRequest")]
#[path = "CNContactFetchRequest.rs"]
mod __CNContactFetchRequest;
#[cfg(feature = "CNContactFormatter")]
#[path = "CNContactFormatter.rs"]
mod __CNContactFormatter;
#[cfg(feature = "CNContactProperty")]
#[path = "CNContactProperty.rs"]
mod __CNContactProperty;
#[cfg(feature = "CNContactRelation")]
#[path = "CNContactRelation.rs"]
mod __CNContactRelation;
#[cfg(feature = "CNContactStore")]
#[path = "CNContactStore.rs"]
mod __CNContactStore;
#[cfg(feature = "CNContactVCardSerialization")]
#[path = "CNContactVCardSerialization.rs"]
mod __CNContactVCardSerialization;
#[cfg(feature = "CNContact_NSItemProvider")]
#[path = "CNContact_NSItemProvider.rs"]
mod __CNContact_NSItemProvider;
#[cfg(feature = "CNContact_Predicates")]
#[path = "CNContact_Predicates.rs"]
mod __CNContact_Predicates;
#[cfg(feature = "CNContactsUserDefaults")]
#[path = "CNContactsUserDefaults.rs"]
mod __CNContactsUserDefaults;
#[cfg(feature = "CNContainer")]
#[path = "CNContainer.rs"]
mod __CNContainer;
#[cfg(feature = "CNContainer_Predicates")]
#[path = "CNContainer_Predicates.rs"]
mod __CNContainer_Predicates;
#[cfg(feature = "CNError")]
#[path = "CNError.rs"]
mod __CNError;
#[cfg(feature = "CNFetchRequest")]
#[path = "CNFetchRequest.rs"]
mod __CNFetchRequest;
#[cfg(feature = "CNFetchResult")]
#[path = "CNFetchResult.rs"]
mod __CNFetchResult;
#[cfg(feature = "CNGroup")]
#[path = "CNGroup.rs"]
mod __CNGroup;
#[cfg(feature = "CNGroup_Predicates")]
#[path = "CNGroup_Predicates.rs"]
mod __CNGroup_Predicates;
#[cfg(feature = "CNInstantMessageAddress")]
#[path = "CNInstantMessageAddress.rs"]
mod __CNInstantMessageAddress;
#[cfg(feature = "CNLabeledValue")]
#[path = "CNLabeledValue.rs"]
mod __CNLabeledValue;
#[cfg(feature = "CNMutableContact")]
#[path = "CNMutableContact.rs"]
mod __CNMutableContact;
#[cfg(feature = "CNMutableGroup")]
#[path = "CNMutableGroup.rs"]
mod __CNMutableGroup;
#[cfg(feature = "CNMutablePostalAddress")]
#[path = "CNMutablePostalAddress.rs"]
mod __CNMutablePostalAddress;
#[cfg(feature = "CNPhoneNumber")]
#[path = "CNPhoneNumber.rs"]
mod __CNPhoneNumber;
#[cfg(feature = "CNPostalAddress")]
#[path = "CNPostalAddress.rs"]
mod __CNPostalAddress;
#[cfg(feature = "CNPostalAddressFormatter")]
#[path = "CNPostalAddressFormatter.rs"]
mod __CNPostalAddressFormatter;
#[cfg(feature = "CNSaveRequest")]
#[path = "CNSaveRequest.rs"]
mod __CNSaveRequest;
#[cfg(feature = "CNSocialProfile")]
#[path = "CNSocialProfile.rs"]
mod __CNSocialProfile;
#[cfg(feature = "ContactsDefines")]
#[path = "ContactsDefines.rs"]
mod __ContactsDefines;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryAddContactEvent;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryAddGroupEvent;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryAddMemberToGroupEvent;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryAddSubgroupToGroupEvent;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryDeleteContactEvent;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryDeleteGroupEvent;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryDropEverythingEvent;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryEvent;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryEventVisitor;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryRemoveMemberFromGroupEvent;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryRemoveSubgroupFromGroupEvent;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryUpdateContactEvent;
#[cfg(feature = "CNChangeHistoryEvent")]
pub use self::__CNChangeHistoryEvent::CNChangeHistoryUpdateGroupEvent;
#[cfg(all(feature = "CNChangeHistoryFetchRequest", feature = "CNFetchRequest"))]
pub use self::__CNChangeHistoryFetchRequest::CNChangeHistoryFetchRequest;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContact;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactBirthdayKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactDatesKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactDepartmentNameKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactEmailAddressesKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactFamilyNameKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactGivenNameKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactIdentifierKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactImageDataAvailableKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactImageDataKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactInstantMessageAddressesKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactJobTitleKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactMiddleNameKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactNamePrefixKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactNameSuffixKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactNicknameKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactNonGregorianBirthdayKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactNoteKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactOrganizationNameKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactPhoneNumbersKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactPhoneticFamilyNameKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactPhoneticGivenNameKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactPhoneticMiddleNameKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactPhoneticOrganizationNameKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactPostalAddressesKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactPreviousFamilyNameKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactPropertyNotFetchedExceptionName;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactRelationsKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactSocialProfilesKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactSortOrder;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactThumbnailImageDataKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactType;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactTypeKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNContactUrlAddressesKey;
#[cfg(feature = "CNContact")]
pub use self::__CNContact::CNKeyDescriptor;
#[cfg(all(feature = "CNContactFetchRequest", feature = "CNFetchRequest"))]
pub use self::__CNContactFetchRequest::CNContactFetchRequest;
#[cfg(feature = "CNContactFormatter")]
pub use self::__CNContactFormatter::CNContactDisplayNameOrder;
#[cfg(feature = "CNContactFormatter")]
pub use self::__CNContactFormatter::CNContactFormatter;
#[cfg(feature = "CNContactFormatter")]
pub use self::__CNContactFormatter::CNContactFormatterStyle;
#[cfg(feature = "CNContactFormatter")]
pub use self::__CNContactFormatter::CNContactPropertyAttribute;
#[cfg(feature = "CNContactProperty")]
pub use self::__CNContactProperty::CNContactProperty;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNContactRelation;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAssistant;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAunt;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntFathersBrothersWife;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntFathersElderBrothersWife;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntFathersElderSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntFathersSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntFathersYoungerBrothersWife;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntFathersYoungerSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntMothersBrothersWife;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntMothersElderSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntMothersSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntMothersYoungerSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntParentsElderSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntParentsSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationAuntParentsYoungerSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationBoyfriend;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationBrotherInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationBrotherInLawElderSistersHusband;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationBrotherInLawHusbandsBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationBrotherInLawHusbandsSistersHusband;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationBrotherInLawSistersHusband;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationBrotherInLawSpousesBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationBrotherInLawWifesBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationBrotherInLawWifesSistersHusband;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationBrotherInLawYoungerSistersHusband;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationChild;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationChildInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCoBrotherInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCoFatherInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCoMotherInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCoParentInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCoSiblingInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCoSisterInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationColleague;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousin;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinFathersBrothersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinFathersBrothersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinFathersSistersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinFathersSistersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinGrandparentsSiblingsChild;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinGrandparentsSiblingsDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinGrandparentsSiblingsSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinMothersBrothersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinMothersBrothersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinMothersSistersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinMothersSistersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinOrSiblingsChild;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinParentsSiblingsChild;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinParentsSiblingsDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationCousinParentsSiblingsSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationDaughterInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationDaughterInLawOrSisterInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationDaughterInLawOrStepdaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderBrotherInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousin;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinFathersBrothersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinFathersBrothersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinFathersSistersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinFathersSistersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinMothersBrothersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinMothersBrothersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinMothersSiblingsDaughterOrFathersSistersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinMothersSiblingsSonOrFathersSistersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinMothersSistersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinMothersSistersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinParentsSiblingsDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderCousinParentsSiblingsSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderSiblingInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationElderSisterInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationEldestBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationEldestSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationFather;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationFatherInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationFatherInLawHusbandsFather;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationFatherInLawOrStepfather;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationFatherInLawWifesFather;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationFemaleCousin;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationFemaleFriend;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationFemalePartner;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationFriend;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGirlfriend;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGirlfriendOrBoyfriend;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandaunt;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandchild;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandchildOrSiblingsChild;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGranddaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGranddaughterDaughtersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGranddaughterOrNiece;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGranddaughterSonsDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandfather;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandfatherFathersFather;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandfatherMothersFather;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandmother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandmotherFathersMother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandmotherMothersMother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandnephew;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandnephewBrothersGrandson;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandnephewSistersGrandson;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandniece;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandnieceBrothersGranddaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandnieceSistersGranddaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandparent;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandson;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandsonDaughtersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandsonOrNephew;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGrandsonSonsSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGranduncle;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGreatGrandchild;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGreatGrandchildOrSiblingsGrandchild;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGreatGranddaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGreatGrandfather;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGreatGrandmother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGreatGrandparent;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationGreatGrandson;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationHusband;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationMaleCousin;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationMaleFriend;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationMalePartner;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationManager;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationMother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationMotherInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationMotherInLawHusbandsMother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationMotherInLawOrStepmother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationMotherInLawWifesMother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNephew;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNephewBrothersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNephewBrothersSonOrHusbandsSiblingsSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNephewOrCousin;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNephewSistersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNephewSistersSonOrWifesSiblingsSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNiece;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNieceBrothersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNieceBrothersDaughterOrHusbandsSiblingsDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNieceOrCousin;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNieceSistersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationNieceSistersDaughterOrWifesSiblingsDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationParent;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationParentInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationParentsElderSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationParentsSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationParentsSiblingFathersElderSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationParentsSiblingFathersSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationParentsSiblingFathersYoungerSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationParentsSiblingMothersElderSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationParentsSiblingMothersSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationParentsSiblingMothersYoungerSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationParentsYoungerSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationPartner;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSiblingInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSiblingsChild;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSisterInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSisterInLawBrothersWife;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSisterInLawElderBrothersWife;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSisterInLawHusbandsBrothersWife;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSisterInLawHusbandsSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSisterInLawSpousesSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSisterInLawWifesBrothersWife;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSisterInLawWifesSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSisterInLawYoungerBrothersWife;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSonInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSonInLawOrBrotherInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSonInLawOrStepson;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationSpouse;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationStepbrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationStepchild;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationStepdaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationStepfather;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationStepmother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationStepparent;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationStepsister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationStepson;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationTeacher;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncle;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleFathersBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleFathersElderBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleFathersElderSistersHusband;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleFathersSistersHusband;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleFathersYoungerBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleFathersYoungerSistersHusband;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleMothersBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleMothersElderBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleMothersSistersHusband;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleMothersYoungerBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleParentsBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleParentsElderBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationUncleParentsYoungerBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationWife;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerBrotherInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousin;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinFathersBrothersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinFathersBrothersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinFathersSistersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinFathersSistersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinMothersBrothersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinMothersBrothersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinMothersSiblingsDaughterOrFathersSistersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinMothersSiblingsSonOrFathersSistersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinMothersSistersDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinMothersSistersSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinParentsSiblingsDaughter;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerCousinParentsSiblingsSon;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerSibling;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerSiblingInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerSister;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungerSisterInLaw;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungestBrother;
#[cfg(feature = "CNContactRelation")]
pub use self::__CNContactRelation::CNLabelContactRelationYoungestSister;
#[cfg(feature = "CNContactStore")]
pub use self::__CNContactStore::CNAuthorizationStatus;
#[cfg(feature = "CNContactStore")]
pub use self::__CNContactStore::CNContactStore;
#[cfg(feature = "CNContactStore")]
pub use self::__CNContactStore::CNContactStoreDidChangeNotification;
#[cfg(feature = "CNContactStore")]
pub use self::__CNContactStore::CNEntityType;
#[cfg(feature = "CNContactVCardSerialization")]
pub use self::__CNContactVCardSerialization::CNContactVCardSerialization;
#[cfg(feature = "CNContactsUserDefaults")]
pub use self::__CNContactsUserDefaults::CNContactsUserDefaults;
#[cfg(feature = "CNContainer")]
pub use self::__CNContainer::CNContainer;
#[cfg(feature = "CNContainer")]
pub use self::__CNContainer::CNContainerIdentifierKey;
#[cfg(feature = "CNContainer")]
pub use self::__CNContainer::CNContainerNameKey;
#[cfg(feature = "CNContainer")]
pub use self::__CNContainer::CNContainerType;
#[cfg(feature = "CNContainer")]
pub use self::__CNContainer::CNContainerTypeKey;
#[cfg(feature = "CNError")]
pub use self::__CNError::CNErrorCode;
#[cfg(feature = "CNError")]
pub use self::__CNError::CNErrorDomain;
#[cfg(feature = "CNError")]
pub use self::__CNError::CNErrorUserInfoAffectedRecordIdentifiersKey;
#[cfg(feature = "CNError")]
pub use self::__CNError::CNErrorUserInfoAffectedRecordsKey;
#[cfg(feature = "CNError")]
pub use self::__CNError::CNErrorUserInfoKeyPathsKey;
#[cfg(feature = "CNError")]
pub use self::__CNError::CNErrorUserInfoValidationErrorsKey;
#[cfg(feature = "CNFetchRequest")]
pub use self::__CNFetchRequest::CNFetchRequest;
#[cfg(feature = "CNFetchResult")]
pub use self::__CNFetchResult::CNFetchResult;
#[cfg(feature = "CNGroup")]
pub use self::__CNGroup::CNGroup;
#[cfg(feature = "CNGroup")]
pub use self::__CNGroup::CNGroupIdentifierKey;
#[cfg(feature = "CNGroup")]
pub use self::__CNGroup::CNGroupNameKey;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageAddress;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageAddressServiceKey;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageAddressUsernameKey;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageServiceAIM;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageServiceFacebook;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageServiceGaduGadu;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageServiceGoogleTalk;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageServiceICQ;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageServiceJabber;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageServiceMSN;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageServiceQQ;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageServiceSkype;
#[cfg(feature = "CNInstantMessageAddress")]
pub use self::__CNInstantMessageAddress::CNInstantMessageServiceYahoo;
#[cfg(feature = "CNLabeledValue")]
pub use self::__CNLabeledValue::CNLabelDateAnniversary;
#[cfg(feature = "CNLabeledValue")]
pub use self::__CNLabeledValue::CNLabelEmailiCloud;
#[cfg(feature = "CNLabeledValue")]
pub use self::__CNLabeledValue::CNLabelHome;
#[cfg(feature = "CNLabeledValue")]
pub use self::__CNLabeledValue::CNLabelOther;
#[cfg(feature = "CNLabeledValue")]
pub use self::__CNLabeledValue::CNLabelSchool;
#[cfg(feature = "CNLabeledValue")]
pub use self::__CNLabeledValue::CNLabelURLAddressHomePage;
#[cfg(feature = "CNLabeledValue")]
pub use self::__CNLabeledValue::CNLabelWork;
#[cfg(feature = "CNLabeledValue")]
pub use self::__CNLabeledValue::CNLabeledValue;
#[cfg(all(feature = "CNContact", feature = "CNMutableContact"))]
pub use self::__CNMutableContact::CNMutableContact;
#[cfg(all(feature = "CNGroup", feature = "CNMutableGroup"))]
pub use self::__CNMutableGroup::CNMutableGroup;
#[cfg(all(feature = "CNMutablePostalAddress", feature = "CNPostalAddress"))]
pub use self::__CNMutablePostalAddress::CNMutablePostalAddress;
#[cfg(feature = "CNPhoneNumber")]
pub use self::__CNPhoneNumber::CNLabelPhoneNumberAppleWatch;
#[cfg(feature = "CNPhoneNumber")]
pub use self::__CNPhoneNumber::CNLabelPhoneNumberHomeFax;
#[cfg(feature = "CNPhoneNumber")]
pub use self::__CNPhoneNumber::CNLabelPhoneNumberMain;
#[cfg(feature = "CNPhoneNumber")]
pub use self::__CNPhoneNumber::CNLabelPhoneNumberMobile;
#[cfg(feature = "CNPhoneNumber")]
pub use self::__CNPhoneNumber::CNLabelPhoneNumberOtherFax;
#[cfg(feature = "CNPhoneNumber")]
pub use self::__CNPhoneNumber::CNLabelPhoneNumberPager;
#[cfg(feature = "CNPhoneNumber")]
pub use self::__CNPhoneNumber::CNLabelPhoneNumberWorkFax;
#[cfg(feature = "CNPhoneNumber")]
pub use self::__CNPhoneNumber::CNLabelPhoneNumberiPhone;
#[cfg(feature = "CNPhoneNumber")]
pub use self::__CNPhoneNumber::CNPhoneNumber;
#[cfg(feature = "CNPostalAddress")]
pub use self::__CNPostalAddress::CNPostalAddress;
#[cfg(feature = "CNPostalAddress")]
pub use self::__CNPostalAddress::CNPostalAddressCityKey;
#[cfg(feature = "CNPostalAddress")]
pub use self::__CNPostalAddress::CNPostalAddressCountryKey;
#[cfg(feature = "CNPostalAddress")]
pub use self::__CNPostalAddress::CNPostalAddressISOCountryCodeKey;
#[cfg(feature = "CNPostalAddress")]
pub use self::__CNPostalAddress::CNPostalAddressPostalCodeKey;
#[cfg(feature = "CNPostalAddress")]
pub use self::__CNPostalAddress::CNPostalAddressStateKey;
#[cfg(feature = "CNPostalAddress")]
pub use self::__CNPostalAddress::CNPostalAddressStreetKey;
#[cfg(feature = "CNPostalAddress")]
pub use self::__CNPostalAddress::CNPostalAddressSubAdministrativeAreaKey;
#[cfg(feature = "CNPostalAddress")]
pub use self::__CNPostalAddress::CNPostalAddressSubLocalityKey;
#[cfg(feature = "CNPostalAddressFormatter")]
pub use self::__CNPostalAddressFormatter::CNPostalAddressFormatter;
#[cfg(feature = "CNPostalAddressFormatter")]
pub use self::__CNPostalAddressFormatter::CNPostalAddressFormatterStyle;
#[cfg(feature = "CNPostalAddressFormatter")]
pub use self::__CNPostalAddressFormatter::CNPostalAddressLocalizedPropertyNameAttribute;
#[cfg(feature = "CNPostalAddressFormatter")]
pub use self::__CNPostalAddressFormatter::CNPostalAddressPropertyAttribute;
#[cfg(feature = "CNSaveRequest")]
pub use self::__CNSaveRequest::CNSaveRequest;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfile;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileServiceFacebook;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileServiceFlickr;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileServiceGameCenter;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileServiceKey;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileServiceLinkedIn;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileServiceMySpace;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileServiceSinaWeibo;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileServiceTencentWeibo;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileServiceTwitter;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileServiceYelp;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileURLStringKey;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileUserIdentifierKey;
#[cfg(feature = "CNSocialProfile")]
pub use self::__CNSocialProfile::CNSocialProfileUsernameKey;

20
vendor/objc2-contacts/src/lib.rs vendored Normal file
View File

@@ -0,0 +1,20 @@
//! # Bindings to the `Contacts` framework
//!
//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
//!
//! [apple-doc]: https://developer.apple.com/documentation/contacts/
//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
#![no_std]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
// Update in Cargo.toml as well.
#![doc(html_root_url = "https://docs.rs/objc2-contacts/0.2.2")]
#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(feature = "std")]
extern crate std;
mod generated;
#[allow(unused_imports, unreachable_pub)]
pub use self::generated::*;