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")]
pub struct INSetTaskAttributeIntent;
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCoding for INSetTaskAttributeIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCopying for INSetTaskAttributeIntent {}
);
#[cfg(feature = "INIntent")]
unsafe impl CopyingHelper for INSetTaskAttributeIntent {
type Result = Self;
}
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSObjectProtocol for INSetTaskAttributeIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSSecureCoding for INSetTaskAttributeIntent {}
);
#[cfg(feature = "INIntent")]
impl INSetTaskAttributeIntent {
extern_methods!(
#[cfg(all(
feature = "INSpatialEventTrigger",
feature = "INSpeakableString",
feature = "INTask",
feature = "INTaskPriority",
feature = "INTaskStatus",
feature = "INTemporalEventTrigger"
))]
#[unsafe(method(initWithTargetTask:taskTitle:status:priority:spatialEventTrigger:temporalEventTrigger:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithTargetTask_taskTitle_status_priority_spatialEventTrigger_temporalEventTrigger(
this: Allocated<Self>,
target_task: Option<&INTask>,
task_title: Option<&INSpeakableString>,
status: INTaskStatus,
priority: INTaskPriority,
spatial_event_trigger: Option<&INSpatialEventTrigger>,
temporal_event_trigger: Option<&INTemporalEventTrigger>,
) -> Retained<Self>;
#[cfg(feature = "INTask")]
#[unsafe(method(targetTask))]
#[unsafe(method_family = none)]
pub unsafe fn targetTask(&self) -> Option<Retained<INTask>>;
#[cfg(feature = "INSpeakableString")]
#[unsafe(method(taskTitle))]
#[unsafe(method_family = none)]
pub unsafe fn taskTitle(&self) -> Option<Retained<INSpeakableString>>;
#[cfg(feature = "INTaskStatus")]
#[unsafe(method(status))]
#[unsafe(method_family = none)]
pub unsafe fn status(&self) -> INTaskStatus;
#[cfg(feature = "INTaskPriority")]
#[unsafe(method(priority))]
#[unsafe(method_family = none)]
pub unsafe fn priority(&self) -> INTaskPriority;
#[cfg(feature = "INSpatialEventTrigger")]
#[unsafe(method(spatialEventTrigger))]
#[unsafe(method_family = none)]
pub unsafe fn spatialEventTrigger(&self) -> Option<Retained<INSpatialEventTrigger>>;
#[cfg(feature = "INTemporalEventTrigger")]
#[unsafe(method(temporalEventTrigger))]
#[unsafe(method_family = none)]
pub unsafe fn temporalEventTrigger(&self) -> Option<Retained<INTemporalEventTrigger>>;
);
}
#[cfg(feature = "INIntent")]
impl INSetTaskAttributeIntent {
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!(
pub unsafe trait INSetTaskAttributeIntentHandling: NSObjectProtocol {
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSetTaskAttributeIntentResponse",
feature = "block2"
))]
#[unsafe(method(handleSetTaskAttribute:completion:))]
#[unsafe(method_family = none)]
unsafe fn handleSetTaskAttribute_completion(
&self,
intent: &INSetTaskAttributeIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSetTaskAttributeIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSetTaskAttributeIntentResponse",
feature = "block2"
))]
#[optional]
#[unsafe(method(confirmSetTaskAttribute:completion:))]
#[unsafe(method_family = none)]
unsafe fn confirmSetTaskAttribute_completion(
&self,
intent: &INSetTaskAttributeIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSetTaskAttributeIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INTaskResolutionResult",
feature = "block2"
))]
#[optional]
#[unsafe(method(resolveTargetTaskForSetTaskAttribute:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveTargetTaskForSetTaskAttribute_withCompletion(
&self,
intent: &INSetTaskAttributeIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INTaskResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INSpeakableStringResolutionResult",
feature = "block2"
))]
#[optional]
#[unsafe(method(resolveTaskTitleForSetTaskAttribute:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveTaskTitleForSetTaskAttribute_withCompletion(
&self,
intent: &INSetTaskAttributeIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSpeakableStringResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INTaskStatusResolutionResult",
feature = "block2"
))]
#[optional]
#[unsafe(method(resolveStatusForSetTaskAttribute:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveStatusForSetTaskAttribute_withCompletion(
&self,
intent: &INSetTaskAttributeIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INTaskStatusResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INTaskPriorityResolutionResult",
feature = "block2"
))]
#[optional]
#[unsafe(method(resolvePriorityForSetTaskAttribute:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolvePriorityForSetTaskAttribute_withCompletion(
&self,
intent: &INSetTaskAttributeIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INTaskPriorityResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INSpatialEventTriggerResolutionResult",
feature = "block2"
))]
#[optional]
#[unsafe(method(resolveSpatialEventTriggerForSetTaskAttribute:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveSpatialEventTriggerForSetTaskAttribute_withCompletion(
&self,
intent: &INSetTaskAttributeIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSpatialEventTriggerResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INTemporalEventTriggerResolutionResult",
feature = "block2"
))]
#[deprecated = "resolveTemporalEventTriggerForSetTaskAttribute:withCompletion: is deprecated. Use resolveTemporalEventTriggerForSetTaskAttribute:completion: instead"]
#[optional]
#[unsafe(method(resolveTemporalEventTriggerForSetTaskAttribute:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveTemporalEventTriggerForSetTaskAttribute_withCompletion(
&self,
intent: &INSetTaskAttributeIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INTemporalEventTriggerResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INSetTaskAttributeTemporalEventTriggerResolutionResult",
feature = "INTemporalEventTriggerResolutionResult",
feature = "block2"
))]
#[optional]
#[unsafe(method(resolveTemporalEventTriggerForSetTaskAttribute:completion:))]
#[unsafe(method_family = none)]
unsafe fn resolveTemporalEventTriggerForSetTaskAttribute_completion(
&self,
intent: &INSetTaskAttributeIntent,
completion: &block2::DynBlock<
dyn Fn(NonNull<INSetTaskAttributeTemporalEventTriggerResolutionResult>),
>,
);
}
);