use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(CNPostalAddress, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CNPostalAddress")]
pub struct CNMutablePostalAddress;
);
#[cfg(feature = "CNPostalAddress")]
extern_conformance!(
unsafe impl NSCoding for CNMutablePostalAddress {}
);
#[cfg(feature = "CNPostalAddress")]
extern_conformance!(
unsafe impl NSCopying for CNMutablePostalAddress {}
);
#[cfg(feature = "CNPostalAddress")]
unsafe impl CopyingHelper for CNMutablePostalAddress {
type Result = CNPostalAddress;
}
#[cfg(feature = "CNPostalAddress")]
extern_conformance!(
unsafe impl NSMutableCopying for CNMutablePostalAddress {}
);
#[cfg(feature = "CNPostalAddress")]
unsafe impl MutableCopyingHelper for CNMutablePostalAddress {
type Result = Self;
}
#[cfg(feature = "CNPostalAddress")]
extern_conformance!(
unsafe impl NSObjectProtocol for CNMutablePostalAddress {}
);
#[cfg(feature = "CNPostalAddress")]
extern_conformance!(
unsafe impl NSSecureCoding for CNMutablePostalAddress {}
);
#[cfg(feature = "CNPostalAddress")]
impl CNMutablePostalAddress {
extern_methods!(
#[unsafe(method(street))]
#[unsafe(method_family = none)]
pub unsafe fn street(&self) -> Retained<NSString>;
#[unsafe(method(setStreet:))]
#[unsafe(method_family = none)]
pub unsafe fn setStreet(&self, street: &NSString);
#[unsafe(method(subLocality))]
#[unsafe(method_family = none)]
pub unsafe fn subLocality(&self) -> Retained<NSString>;
#[unsafe(method(setSubLocality:))]
#[unsafe(method_family = none)]
pub unsafe fn setSubLocality(&self, sub_locality: &NSString);
#[unsafe(method(city))]
#[unsafe(method_family = none)]
pub unsafe fn city(&self) -> Retained<NSString>;
#[unsafe(method(setCity:))]
#[unsafe(method_family = none)]
pub unsafe fn setCity(&self, city: &NSString);
#[unsafe(method(subAdministrativeArea))]
#[unsafe(method_family = none)]
pub unsafe fn subAdministrativeArea(&self) -> Retained<NSString>;
#[unsafe(method(setSubAdministrativeArea:))]
#[unsafe(method_family = none)]
pub unsafe fn setSubAdministrativeArea(&self, sub_administrative_area: &NSString);
#[unsafe(method(state))]
#[unsafe(method_family = none)]
pub unsafe fn state(&self) -> Retained<NSString>;
#[unsafe(method(setState:))]
#[unsafe(method_family = none)]
pub unsafe fn setState(&self, state: &NSString);
#[unsafe(method(postalCode))]
#[unsafe(method_family = none)]
pub unsafe fn postalCode(&self) -> Retained<NSString>;
#[unsafe(method(setPostalCode:))]
#[unsafe(method_family = none)]
pub unsafe fn setPostalCode(&self, postal_code: &NSString);
#[unsafe(method(country))]
#[unsafe(method_family = none)]
pub unsafe fn country(&self) -> Retained<NSString>;
#[unsafe(method(setCountry:))]
#[unsafe(method_family = none)]
pub unsafe fn setCountry(&self, country: &NSString);
#[unsafe(method(ISOCountryCode))]
#[unsafe(method_family = none)]
pub unsafe fn ISOCountryCode(&self) -> Retained<NSString>;
#[unsafe(method(setISOCountryCode:))]
#[unsafe(method_family = none)]
pub unsafe fn setISOCountryCode(&self, iso_country_code: &NSString);
);
}
#[cfg(feature = "CNPostalAddress")]
impl CNMutablePostalAddress {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}