use crate::common::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::HealthKit::*;
use crate::UniformTypeIdentifiers::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "HealthKit_HKQueryDescriptor")]
pub struct HKQueryDescriptor;
#[cfg(feature = "HealthKit_HKQueryDescriptor")]
unsafe impl ClassType for HKQueryDescriptor {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "HealthKit_HKQueryDescriptor")]
unsafe impl NSCoding for HKQueryDescriptor {}
#[cfg(feature = "HealthKit_HKQueryDescriptor")]
unsafe impl NSCopying for HKQueryDescriptor {}
#[cfg(feature = "HealthKit_HKQueryDescriptor")]
unsafe impl NSObjectProtocol for HKQueryDescriptor {}
#[cfg(feature = "HealthKit_HKQueryDescriptor")]
unsafe impl NSSecureCoding for HKQueryDescriptor {}
extern_methods!(
#[cfg(feature = "HealthKit_HKQueryDescriptor")]
unsafe impl HKQueryDescriptor {
#[cfg(feature = "HealthKit_HKSampleType")]
#[method_id(@__retain_semantics Other sampleType)]
pub unsafe fn sampleType(&self) -> Id<HKSampleType>;
#[cfg(feature = "Foundation_NSPredicate")]
#[method_id(@__retain_semantics Other predicate)]
pub unsafe fn predicate(&self) -> Option<Id<NSPredicate>>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
#[cfg(all(feature = "Foundation_NSPredicate", feature = "HealthKit_HKSampleType"))]
#[method_id(@__retain_semantics Init initWithSampleType:predicate:)]
pub unsafe fn initWithSampleType_predicate(
this: Allocated<Self>,
sample_type: &HKSampleType,
predicate: Option<&NSPredicate>,
) -> Id<Self>;
}
);