use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(INIntent, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntent")]
#[deprecated = "INSetDefrosterSettingsInCarIntent is deprecated. There is no replacement."]
pub struct INSetDefrosterSettingsInCarIntent;
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCoding for INSetDefrosterSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCopying for INSetDefrosterSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
unsafe impl CopyingHelper for INSetDefrosterSettingsInCarIntent {
type Result = Self;
}
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSObjectProtocol for INSetDefrosterSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSSecureCoding for INSetDefrosterSettingsInCarIntent {}
);
#[cfg(feature = "INIntent")]
impl INSetDefrosterSettingsInCarIntent {
extern_methods!(
#[cfg(all(feature = "INCarDefroster", feature = "INSpeakableString"))]
#[unsafe(method(initWithEnable:defroster:carName:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithEnable_defroster_carName(
this: Allocated<Self>,
enable: Option<&NSNumber>,
defroster: INCarDefroster,
car_name: Option<&INSpeakableString>,
) -> Retained<Self>;
#[deprecated = "INSetDefrosterSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(enable))]
#[unsafe(method_family = none)]
pub unsafe fn enable(&self) -> Option<Retained<NSNumber>>;
#[cfg(feature = "INCarDefroster")]
#[deprecated = "INSetDefrosterSettingsInCarIntent is deprecated. There is no replacement."]
#[unsafe(method(defroster))]
#[unsafe(method_family = none)]
pub unsafe fn defroster(&self) -> INCarDefroster;
#[cfg(feature = "INSpeakableString")]
#[unsafe(method(carName))]
#[unsafe(method_family = none)]
pub unsafe fn carName(&self) -> Option<Retained<INSpeakableString>>;
);
}
#[cfg(feature = "INIntent")]
impl INSetDefrosterSettingsInCarIntent {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_protocol!(
#[deprecated = "INSetDefrosterSettingsInCarIntentHandling is deprecated. There is no replacement."]
pub unsafe trait INSetDefrosterSettingsInCarIntentHandling: NSObjectProtocol {
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSetDefrosterSettingsInCarIntentResponse",
feature = "block2"
))]
#[deprecated = "INSetDefrosterSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[unsafe(method(handleSetDefrosterSettingsInCar:completion:))]
#[unsafe(method_family = none)]
unsafe fn handleSetDefrosterSettingsInCar_completion(
&self,
intent: &INSetDefrosterSettingsInCarIntent,
completion: &block2::DynBlock<
dyn Fn(NonNull<INSetDefrosterSettingsInCarIntentResponse>),
>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSetDefrosterSettingsInCarIntentResponse",
feature = "block2"
))]
#[deprecated = "INSetDefrosterSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(confirmSetDefrosterSettingsInCar:completion:))]
#[unsafe(method_family = none)]
unsafe fn confirmSetDefrosterSettingsInCar_completion(
&self,
intent: &INSetDefrosterSettingsInCarIntent,
completion: &block2::DynBlock<
dyn Fn(NonNull<INSetDefrosterSettingsInCarIntentResponse>),
>,
);
#[cfg(all(
feature = "INBooleanResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetDefrosterSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveEnableForSetDefrosterSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveEnableForSetDefrosterSettingsInCar_withCompletion(
&self,
intent: &INSetDefrosterSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
);
#[cfg(all(
feature = "INCarDefrosterResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSetDefrosterSettingsInCarIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveDefrosterForSetDefrosterSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveDefrosterForSetDefrosterSettingsInCar_withCompletion(
&self,
intent: &INSetDefrosterSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INCarDefrosterResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INSpeakableStringResolutionResult",
feature = "block2"
))]
#[optional]
#[unsafe(method(resolveCarNameForSetDefrosterSettingsInCar:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveCarNameForSetDefrosterSettingsInCar_withCompletion(
&self,
intent: &INSetDefrosterSettingsInCarIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSpeakableStringResolutionResult>)>,
);
}
);