//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// A class that represents an email conversation.
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uimailconversationcontext?language=objc)
    #[unsafe(super(UIConversationContext, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "UIConversationContext")]
    pub struct UIMailConversationContext;
);

#[cfg(feature = "UIConversationContext")]
extern_conformance!(
    unsafe impl NSObjectProtocol for UIMailConversationContext {}
);

#[cfg(feature = "UIConversationContext")]
impl UIMailConversationContext {
    extern_methods!(
        /// A string that contains the subject line of an intended response.
        #[unsafe(method(responseSubject))]
        #[unsafe(method_family = none)]
        pub fn responseSubject(&self) -> Retained<NSString>;

        /// Setter for [`responseSubject`][Self::responseSubject].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setResponseSubject:))]
        #[unsafe(method_family = none)]
        pub fn setResponseSubject(&self, response_subject: &NSString);

        /// A Boolean value that indicates whether the intended response contains a custom signature.
        #[unsafe(method(responseHasCustomSignature))]
        #[unsafe(method_family = none)]
        pub fn responseHasCustomSignature(&self) -> bool;

        /// Setter for [`responseHasCustomSignature`][Self::responseHasCustomSignature].
        #[unsafe(method(setResponseHasCustomSignature:))]
        #[unsafe(method_family = none)]
        pub fn setResponseHasCustomSignature(&self, response_has_custom_signature: bool);

        /// A set of strings that identifies the secondary recipients of the message, such as those in CC or BCC messages.
        #[unsafe(method(responseSecondaryRecipientIdentifiers))]
        #[unsafe(method_family = none)]
        pub fn responseSecondaryRecipientIdentifiers(&self) -> Retained<NSSet<NSString>>;

        /// Setter for [`responseSecondaryRecipientIdentifiers`][Self::responseSecondaryRecipientIdentifiers].
        ///
        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
        #[unsafe(method(setResponseSecondaryRecipientIdentifiers:))]
        #[unsafe(method_family = none)]
        pub fn setResponseSecondaryRecipientIdentifiers(
            &self,
            response_secondary_recipient_identifiers: &NSSet<NSString>,
        );
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(feature = "UIConversationContext")]
impl UIMailConversationContext {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub fn new() -> Retained<Self>;
    );
}

#[cfg(feature = "UIConversationContext")]
impl DefaultRetained for UIMailConversationContext {
    #[inline]
    fn default_retained() -> Retained<Self> {
        Self::new()
    }
}
