use crate::common::*;
use crate::CoreWLAN::*;
use crate::Foundation::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CoreWLAN_CWNetworkProfile")]
pub struct CWNetworkProfile;
#[cfg(feature = "CoreWLAN_CWNetworkProfile")]
unsafe impl ClassType for CWNetworkProfile {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CoreWLAN_CWNetworkProfile")]
unsafe impl NSCoding for CWNetworkProfile {}
#[cfg(feature = "CoreWLAN_CWNetworkProfile")]
unsafe impl NSCopying for CWNetworkProfile {}
#[cfg(feature = "CoreWLAN_CWNetworkProfile")]
unsafe impl NSMutableCopying for CWNetworkProfile {}
#[cfg(feature = "CoreWLAN_CWNetworkProfile")]
unsafe impl NSObjectProtocol for CWNetworkProfile {}
#[cfg(feature = "CoreWLAN_CWNetworkProfile")]
unsafe impl NSSecureCoding for CWNetworkProfile {}
extern_methods!(
#[cfg(feature = "CoreWLAN_CWNetworkProfile")]
unsafe impl CWNetworkProfile {
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other ssid)]
pub unsafe fn ssid(&self) -> Option<Id<NSString>>;
#[cfg(feature = "Foundation_NSData")]
#[method_id(@__retain_semantics Other ssidData)]
pub unsafe fn ssidData(&self) -> Option<Id<NSData>>;
#[method(security)]
pub unsafe fn security(&self) -> CWSecurity;
#[method_id(@__retain_semantics Other networkProfile)]
pub unsafe fn networkProfile() -> Id<Self>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics Init initWithNetworkProfile:)]
pub unsafe fn initWithNetworkProfile(
this: Allocated<Self>,
network_profile: &CWNetworkProfile,
) -> Id<Self>;
#[method_id(@__retain_semantics Other networkProfileWithNetworkProfile:)]
pub unsafe fn networkProfileWithNetworkProfile(
network_profile: &CWNetworkProfile,
) -> Id<Self>;
#[method(isEqualToNetworkProfile:)]
pub unsafe fn isEqualToNetworkProfile(&self, network_profile: &CWNetworkProfile) -> bool;
}
);
extern_methods!(
#[cfg(feature = "CoreWLAN_CWNetworkProfile")]
unsafe impl CWNetworkProfile {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CoreWLAN_CWMutableNetworkProfile")]
pub struct CWMutableNetworkProfile;
#[cfg(feature = "CoreWLAN_CWMutableNetworkProfile")]
unsafe impl ClassType for CWMutableNetworkProfile {
#[inherits(NSObject)]
type Super = CWNetworkProfile;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CoreWLAN_CWMutableNetworkProfile")]
unsafe impl NSCoding for CWMutableNetworkProfile {}
#[cfg(feature = "CoreWLAN_CWMutableNetworkProfile")]
unsafe impl NSCopying for CWMutableNetworkProfile {}
#[cfg(feature = "CoreWLAN_CWMutableNetworkProfile")]
unsafe impl NSMutableCopying for CWMutableNetworkProfile {}
#[cfg(feature = "CoreWLAN_CWMutableNetworkProfile")]
unsafe impl NSObjectProtocol for CWMutableNetworkProfile {}
#[cfg(feature = "CoreWLAN_CWMutableNetworkProfile")]
unsafe impl NSSecureCoding for CWMutableNetworkProfile {}
extern_methods!(
#[cfg(feature = "CoreWLAN_CWMutableNetworkProfile")]
unsafe impl CWMutableNetworkProfile {
#[cfg(feature = "Foundation_NSData")]
#[method_id(@__retain_semantics Other ssidData)]
pub unsafe fn ssidData(&self) -> Option<Id<NSData>>;
#[cfg(feature = "Foundation_NSData")]
#[method(setSsidData:)]
pub unsafe fn setSsidData(&self, ssid_data: Option<&NSData>);
#[method(security)]
pub unsafe fn security(&self) -> CWSecurity;
#[method(setSecurity:)]
pub unsafe fn setSecurity(&self, security: CWSecurity);
}
);
extern_methods!(
#[cfg(feature = "CoreWLAN_CWMutableNetworkProfile")]
unsafe impl CWMutableNetworkProfile {
#[method_id(@__retain_semantics Other networkProfile)]
pub unsafe fn networkProfile() -> Id<Self>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics Init initWithNetworkProfile:)]
pub unsafe fn initWithNetworkProfile(
this: Allocated<Self>,
network_profile: &CWNetworkProfile,
) -> Id<Self>;
#[method_id(@__retain_semantics Other networkProfileWithNetworkProfile:)]
pub unsafe fn networkProfileWithNetworkProfile(
network_profile: &CWNetworkProfile,
) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "CoreWLAN_CWMutableNetworkProfile")]
unsafe impl CWMutableNetworkProfile {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);