icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::Contacts::*;
use crate::Foundation::*;

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

    #[cfg(feature = "Contacts_CNInstantMessageAddress")]
    unsafe impl ClassType for CNInstantMessageAddress {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "Contacts_CNInstantMessageAddress")]
unsafe impl NSCoding for CNInstantMessageAddress {}

#[cfg(feature = "Contacts_CNInstantMessageAddress")]
unsafe impl NSCopying for CNInstantMessageAddress {}

#[cfg(feature = "Contacts_CNInstantMessageAddress")]
unsafe impl NSObjectProtocol for CNInstantMessageAddress {}

#[cfg(feature = "Contacts_CNInstantMessageAddress")]
unsafe impl NSSecureCoding for CNInstantMessageAddress {}

extern_methods!(
    #[cfg(feature = "Contacts_CNInstantMessageAddress")]
    unsafe impl CNInstantMessageAddress {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other username)]
        pub unsafe fn username(&self) -> Id<NSString>;

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

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Init initWithUsername:service:)]
        pub unsafe fn initWithUsername_service(
            this: Allocated<Self>,
            username: &NSString,
            service: &NSString,
        ) -> Id<Self>;

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

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other localizedStringForService:)]
        pub unsafe fn localizedStringForService(service: &NSString) -> Id<NSString>;
    }
);

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

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

extern_static!(CNInstantMessageAddressUsernameKey: &'static NSString);

extern_static!(CNInstantMessageAddressServiceKey: &'static NSString);

extern_static!(CNInstantMessageServiceAIM: &'static NSString);

extern_static!(CNInstantMessageServiceFacebook: &'static NSString);

extern_static!(CNInstantMessageServiceGaduGadu: &'static NSString);

extern_static!(CNInstantMessageServiceGoogleTalk: &'static NSString);

extern_static!(CNInstantMessageServiceICQ: &'static NSString);

extern_static!(CNInstantMessageServiceJabber: &'static NSString);

extern_static!(CNInstantMessageServiceMSN: &'static NSString);

extern_static!(CNInstantMessageServiceQQ: &'static NSString);

extern_static!(CNInstantMessageServiceSkype: &'static NSString);

extern_static!(CNInstantMessageServiceYahoo: &'static NSString);