objc2_contacts/generated/
CNMutableGroup.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 mutable value object representing a group.
12    ///
13    ///
14    /// CNMutableGroup is not thread safe.
15    ///
16    /// See also [Apple's documentation](https://developer.apple.com/documentation/contacts/cnmutablegroup?language=objc)
17    #[unsafe(super(CNGroup, NSObject))]
18    #[derive(Debug, PartialEq, Eq, Hash)]
19    #[cfg(feature = "CNGroup")]
20    pub struct CNMutableGroup;
21);
22
23#[cfg(feature = "CNGroup")]
24unsafe impl NSCoding for CNMutableGroup {}
25
26#[cfg(feature = "CNGroup")]
27unsafe impl NSCopying for CNMutableGroup {}
28
29#[cfg(feature = "CNGroup")]
30unsafe impl CopyingHelper for CNMutableGroup {
31    type Result = CNGroup;
32}
33
34#[cfg(feature = "CNGroup")]
35unsafe impl NSMutableCopying for CNMutableGroup {}
36
37#[cfg(feature = "CNGroup")]
38unsafe impl MutableCopyingHelper for CNMutableGroup {
39    type Result = Self;
40}
41
42#[cfg(feature = "CNGroup")]
43unsafe impl NSObjectProtocol for CNMutableGroup {}
44
45#[cfg(feature = "CNGroup")]
46unsafe impl NSSecureCoding for CNMutableGroup {}
47
48#[cfg(feature = "CNGroup")]
49impl CNMutableGroup {
50    extern_methods!(
51        #[unsafe(method(name))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn name(&self) -> Retained<NSString>;
54
55        /// Setter for [`name`][Self::name].
56        #[unsafe(method(setName:))]
57        #[unsafe(method_family = none)]
58        pub unsafe fn setName(&self, name: &NSString);
59    );
60}
61
62/// Methods declared on superclass `NSObject`.
63#[cfg(feature = "CNGroup")]
64impl CNMutableGroup {
65    extern_methods!(
66        #[unsafe(method(init))]
67        #[unsafe(method_family = init)]
68        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
69
70        #[unsafe(method(new))]
71        #[unsafe(method_family = new)]
72        pub unsafe fn new() -> Retained<Self>;
73    );
74}