use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CPInformationItem;
);
extern_conformance!(
unsafe impl NSCoding for CPInformationItem {}
);
extern_conformance!(
unsafe impl NSObjectProtocol for CPInformationItem {}
);
extern_conformance!(
unsafe impl NSSecureCoding for CPInformationItem {}
);
impl CPInformationItem {
extern_methods!(
#[unsafe(method(initWithTitle:detail:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithTitle_detail(
this: Allocated<Self>,
title: Option<&NSString>,
detail: Option<&NSString>,
) -> Retained<Self>;
#[unsafe(method(title))]
#[unsafe(method_family = none)]
pub unsafe fn title(&self) -> Option<Retained<NSString>>;
#[unsafe(method(detail))]
#[unsafe(method_family = none)]
pub unsafe fn detail(&self) -> Option<Retained<NSString>>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}