//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::MailKit::*;

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

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

#[cfg(feature = "MailKit_MEMessageEncodingResult")]
unsafe impl NSCoding for MEMessageEncodingResult {}

#[cfg(feature = "MailKit_MEMessageEncodingResult")]
unsafe impl NSObjectProtocol for MEMessageEncodingResult {}

#[cfg(feature = "MailKit_MEMessageEncodingResult")]
unsafe impl NSSecureCoding for MEMessageEncodingResult {}

extern_methods!(
    #[cfg(feature = "MailKit_MEMessageEncodingResult")]
    unsafe impl MEMessageEncodingResult {
        #[cfg(feature = "MailKit_MEEncodedOutgoingMessage")]
        #[method_id(@__retain_semantics Other encodedMessage)]
        pub unsafe fn encodedMessage(&self) -> Option<Id<MEEncodedOutgoingMessage>>;

        #[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_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>;

        #[cfg(all(
            feature = "Foundation_NSError",
            feature = "MailKit_MEEncodedOutgoingMessage"
        ))]
        #[method_id(@__retain_semantics Init initWithEncodedMessage:signingError:encryptionError:)]
        pub unsafe fn initWithEncodedMessage_signingError_encryptionError(
            this: Option<Allocated<Self>>,
            encoded_message: Option<&MEEncodedOutgoingMessage>,
            signing_error: Option<&NSError>,
            encryption_error: Option<&NSError>,
        ) -> Id<Self>;
    }
);
