use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MEMessageSecurityInformation;
);
extern_conformance!(
unsafe impl NSCoding for MEMessageSecurityInformation {}
);
extern_conformance!(
unsafe impl NSObjectProtocol for MEMessageSecurityInformation {}
);
extern_conformance!(
unsafe impl NSSecureCoding for MEMessageSecurityInformation {}
);
impl MEMessageSecurityInformation {
extern_methods!(
#[cfg(feature = "MEMessageSigner")]
#[unsafe(method(signers))]
#[unsafe(method_family = none)]
pub unsafe fn signers(&self) -> Retained<NSArray<MEMessageSigner>>;
#[unsafe(method(isEncrypted))]
#[unsafe(method_family = none)]
pub unsafe fn isEncrypted(&self) -> bool;
#[unsafe(method(signingError))]
#[unsafe(method_family = none)]
pub unsafe fn signingError(&self) -> Option<Retained<NSError>>;
#[unsafe(method(encryptionError))]
#[unsafe(method_family = none)]
pub unsafe fn encryptionError(&self) -> Option<Retained<NSError>>;
#[unsafe(method(shouldBlockRemoteContent))]
#[unsafe(method_family = none)]
pub unsafe fn shouldBlockRemoteContent(&self) -> bool;
#[unsafe(method(localizedRemoteContentBlockingReason))]
#[unsafe(method_family = none)]
pub unsafe fn localizedRemoteContentBlockingReason(&self) -> Option<Retained<NSString>>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(feature = "MEMessageSigner")]
#[unsafe(method(initWithSigners:isEncrypted:signingError:encryptionError:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithSigners_isEncrypted_signingError_encryptionError(
this: Allocated<Self>,
signers: &NSArray<MEMessageSigner>,
is_encrypted: bool,
signing_error: Option<&NSError>,
encryption_error: Option<&NSError>,
) -> Retained<Self>;
#[cfg(feature = "MEMessageSigner")]
#[unsafe(method(initWithSigners:isEncrypted:signingError:encryptionError:shouldBlockRemoteContent:localizedRemoteContentBlockingReason:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithSigners_isEncrypted_signingError_encryptionError_shouldBlockRemoteContent_localizedRemoteContentBlockingReason(
this: Allocated<Self>,
signers: &NSArray<MEMessageSigner>,
is_encrypted: bool,
signing_error: Option<&NSError>,
encryption_error: Option<&NSError>,
should_block_remote_content: bool,
localized_remote_content_blocking_reason: Option<&NSString>,
) -> Retained<Self>;
);
}