objc2_ui_kit/generated/
UIMailConversationContext.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// A class that represents an email conversation.
12    ///
13    /// See also [Apple's documentation](https://developer.apple.com/documentation/uikit/uimailconversationcontext?language=objc)
14    #[unsafe(super(UIConversationContext, NSObject))]
15    #[derive(Debug, PartialEq, Eq, Hash)]
16    #[cfg(feature = "UIConversationContext")]
17    pub struct UIMailConversationContext;
18);
19
20#[cfg(feature = "UIConversationContext")]
21extern_conformance!(
22    unsafe impl NSObjectProtocol for UIMailConversationContext {}
23);
24
25#[cfg(feature = "UIConversationContext")]
26impl UIMailConversationContext {
27    extern_methods!(
28        /// A string that contains the subject line of an intended response.
29        #[unsafe(method(responseSubject))]
30        #[unsafe(method_family = none)]
31        pub fn responseSubject(&self) -> Retained<NSString>;
32
33        /// Setter for [`responseSubject`][Self::responseSubject].
34        ///
35        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
36        #[unsafe(method(setResponseSubject:))]
37        #[unsafe(method_family = none)]
38        pub fn setResponseSubject(&self, response_subject: &NSString);
39
40        /// A Boolean value that indicates whether the intended response contains a custom signature.
41        #[unsafe(method(responseHasCustomSignature))]
42        #[unsafe(method_family = none)]
43        pub fn responseHasCustomSignature(&self) -> bool;
44
45        /// Setter for [`responseHasCustomSignature`][Self::responseHasCustomSignature].
46        #[unsafe(method(setResponseHasCustomSignature:))]
47        #[unsafe(method_family = none)]
48        pub fn setResponseHasCustomSignature(&self, response_has_custom_signature: bool);
49
50        /// A set of strings that identifies the secondary recipients of the message, such as those in CC or BCC messages.
51        #[unsafe(method(responseSecondaryRecipientIdentifiers))]
52        #[unsafe(method_family = none)]
53        pub fn responseSecondaryRecipientIdentifiers(&self) -> Retained<NSSet<NSString>>;
54
55        /// Setter for [`responseSecondaryRecipientIdentifiers`][Self::responseSecondaryRecipientIdentifiers].
56        ///
57        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
58        #[unsafe(method(setResponseSecondaryRecipientIdentifiers:))]
59        #[unsafe(method_family = none)]
60        pub fn setResponseSecondaryRecipientIdentifiers(
61            &self,
62            response_secondary_recipient_identifiers: &NSSet<NSString>,
63        );
64    );
65}
66
67/// Methods declared on superclass `NSObject`.
68#[cfg(feature = "UIConversationContext")]
69impl UIMailConversationContext {
70    extern_methods!(
71        #[unsafe(method(init))]
72        #[unsafe(method_family = init)]
73        pub fn init(this: Allocated<Self>) -> Retained<Self>;
74
75        #[unsafe(method(new))]
76        #[unsafe(method_family = new)]
77        pub fn new() -> Retained<Self>;
78    );
79}
80
81#[cfg(feature = "UIConversationContext")]
82impl DefaultRetained for UIMailConversationContext {
83    #[inline]
84    fn default_retained() -> Retained<Self> {
85        Self::new()
86    }
87}