use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSUserDefaults, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct ScreenSaverDefaults;
);
extern_conformance!(
unsafe impl NSObjectProtocol for ScreenSaverDefaults {}
);
impl ScreenSaverDefaults {
extern_methods!(
#[unsafe(method(defaultsForModuleWithName:))]
#[unsafe(method_family = none)]
pub unsafe fn defaultsForModuleWithName(
in_module_name: &NSString,
) -> Option<Retained<Self>>;
);
}
impl ScreenSaverDefaults {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(initWithSuiteName:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithSuiteName(
this: Allocated<Self>,
suitename: Option<&NSString>,
) -> Option<Retained<Self>>;
#[deprecated = "Use -init instead"]
#[unsafe(method(initWithUser:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithUser(
this: Allocated<Self>,
username: &NSString,
) -> Option<Retained<Self>>;
);
}
impl ScreenSaverDefaults {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}