use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::MailKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MailKit_MEMessageSecurityInformation")]
pub struct MEMessageSecurityInformation;
#[cfg(feature = "MailKit_MEMessageSecurityInformation")]
unsafe impl ClassType for MEMessageSecurityInformation {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MailKit_MEMessageSecurityInformation")]
unsafe impl NSCoding for MEMessageSecurityInformation {}
#[cfg(feature = "MailKit_MEMessageSecurityInformation")]
unsafe impl NSObjectProtocol for MEMessageSecurityInformation {}
#[cfg(feature = "MailKit_MEMessageSecurityInformation")]
unsafe impl NSSecureCoding for MEMessageSecurityInformation {}
extern_methods!(
#[cfg(feature = "MailKit_MEMessageSecurityInformation")]
unsafe impl MEMessageSecurityInformation {
#[cfg(all(feature = "Foundation_NSArray", feature = "MailKit_MEMessageSigner"))]
#[method_id(@__retain_semantics Other signers)]
pub unsafe fn signers(&self) -> Id<NSArray<MEMessageSigner>>;
#[method(isEncrypted)]
pub unsafe fn isEncrypted(&self) -> bool;
#[cfg(feature = "Foundation_NSError")]
#[method_id(@__retain_semantics Other signingError)]
pub unsafe fn signingError(&self) -> Option<Id<NSError>>;
#[cfg(feature = "Foundation_NSError")]
#[method_id(@__retain_semantics Other encryptionError)]
pub unsafe fn encryptionError(&self) -> Option<Id<NSError>>;
#[method(shouldBlockRemoteContent)]
pub unsafe fn shouldBlockRemoteContent(&self) -> bool;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other localizedRemoteContentBlockingReason)]
pub unsafe fn localizedRemoteContentBlockingReason(&self) -> Option<Id<NSString>>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[cfg(all(
feature = "Foundation_NSArray",
feature = "Foundation_NSError",
feature = "MailKit_MEMessageSigner"
))]
#[method_id(@__retain_semantics Init initWithSigners:isEncrypted:signingError:encryptionError:)]
pub unsafe fn initWithSigners_isEncrypted_signingError_encryptionError(
this: Allocated<Self>,
signers: &NSArray<MEMessageSigner>,
is_encrypted: bool,
signing_error: Option<&NSError>,
encryption_error: Option<&NSError>,
) -> Id<Self>;
#[cfg(all(
feature = "Foundation_NSArray",
feature = "Foundation_NSError",
feature = "Foundation_NSString",
feature = "MailKit_MEMessageSigner"
))]
#[method_id(@__retain_semantics Init initWithSigners:isEncrypted:signingError:encryptionError:shouldBlockRemoteContent:localizedRemoteContentBlockingReason:)]
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>,
) -> Id<Self>;
}
);