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 = "INSearchCallHistoryIntent is deprecated. There is no replacement."]
pub struct INSearchCallHistoryIntent;
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCoding for INSearchCallHistoryIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCopying for INSearchCallHistoryIntent {}
);
#[cfg(feature = "INIntent")]
unsafe impl CopyingHelper for INSearchCallHistoryIntent {
type Result = Self;
}
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSObjectProtocol for INSearchCallHistoryIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSSecureCoding for INSearchCallHistoryIntent {}
);
#[cfg(feature = "INIntent")]
impl INSearchCallHistoryIntent {
extern_methods!(
#[cfg(all(
feature = "INCallCapabilityOptions",
feature = "INCallRecordTypeOptions",
feature = "INDateComponentsRange",
feature = "INPerson"
))]
#[unsafe(method(initWithDateCreated:recipient:callCapabilities:callTypes:unseen:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithDateCreated_recipient_callCapabilities_callTypes_unseen(
this: Allocated<Self>,
date_created: Option<&INDateComponentsRange>,
recipient: Option<&INPerson>,
call_capabilities: INCallCapabilityOptions,
call_types: INCallRecordTypeOptions,
unseen: Option<&NSNumber>,
) -> Retained<Self>;
#[cfg(feature = "INDateComponentsRange")]
#[deprecated = "INSearchCallHistoryIntent is deprecated. There is no replacement."]
#[unsafe(method(dateCreated))]
#[unsafe(method_family = none)]
pub unsafe fn dateCreated(&self) -> Option<Retained<INDateComponentsRange>>;
#[cfg(feature = "INPerson")]
#[deprecated = "INSearchCallHistoryIntent is deprecated. There is no replacement."]
#[unsafe(method(recipient))]
#[unsafe(method_family = none)]
pub unsafe fn recipient(&self) -> Option<Retained<INPerson>>;
#[cfg(feature = "INCallCapabilityOptions")]
#[deprecated = "INSearchCallHistoryIntent is deprecated. There is no replacement."]
#[unsafe(method(callCapabilities))]
#[unsafe(method_family = none)]
pub unsafe fn callCapabilities(&self) -> INCallCapabilityOptions;
#[cfg(feature = "INCallRecordTypeOptions")]
#[unsafe(method(callTypes))]
#[unsafe(method_family = none)]
pub unsafe fn callTypes(&self) -> INCallRecordTypeOptions;
#[unsafe(method(unseen))]
#[unsafe(method_family = none)]
pub unsafe fn unseen(&self) -> Option<Retained<NSNumber>>;
);
}
#[cfg(feature = "INIntent")]
impl INSearchCallHistoryIntent {
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 = "INSearchCallHistoryIntentHandling is deprecated. There is no replacement."]
pub unsafe trait INSearchCallHistoryIntentHandling: NSObjectProtocol {
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSearchCallHistoryIntentResponse",
feature = "block2"
))]
#[deprecated = "INSearchCallHistoryIntentHandling is deprecated. There is no replacement."]
#[unsafe(method(handleSearchCallHistory:completion:))]
#[unsafe(method_family = none)]
unsafe fn handleSearchCallHistory_completion(
&self,
intent: &INSearchCallHistoryIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSearchCallHistoryIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INSearchCallHistoryIntentResponse",
feature = "block2"
))]
#[deprecated = "INSearchCallHistoryIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(confirmSearchCallHistory:completion:))]
#[unsafe(method_family = none)]
unsafe fn confirmSearchCallHistory_completion(
&self,
intent: &INSearchCallHistoryIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSearchCallHistoryIntentResponse>)>,
);
#[cfg(all(
feature = "INCallRecordTypeResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSearchCallHistoryIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveCallTypeForSearchCallHistory:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveCallTypeForSearchCallHistory_withCompletion(
&self,
intent: &INSearchCallHistoryIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INCallRecordTypeResolutionResult>)>,
);
#[cfg(all(
feature = "INDateComponentsRangeResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INSearchCallHistoryIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveDateCreatedForSearchCallHistory:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveDateCreatedForSearchCallHistory_withCompletion(
&self,
intent: &INSearchCallHistoryIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INDateComponentsRangeResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INPersonResolutionResult",
feature = "block2"
))]
#[deprecated = "INSearchCallHistoryIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveRecipientForSearchCallHistory:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveRecipientForSearchCallHistory_withCompletion(
&self,
intent: &INSearchCallHistoryIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INPersonResolutionResult>)>,
);
#[cfg(all(
feature = "INCallRecordTypeOptionsResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[optional]
#[unsafe(method(resolveCallTypesForSearchCallHistory:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveCallTypesForSearchCallHistory_withCompletion(
&self,
intent: &INSearchCallHistoryIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INCallRecordTypeOptionsResolutionResult>)>,
);
#[cfg(all(
feature = "INBooleanResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[optional]
#[unsafe(method(resolveUnseenForSearchCallHistory:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveUnseenForSearchCallHistory_withCompletion(
&self,
intent: &INSearchCallHistoryIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INBooleanResolutionResult>)>,
);
}
);