//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
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_HKQuantitySeriesSampleQuery")]
    pub struct HKQuantitySeriesSampleQuery;

    #[cfg(feature = "HealthKit_HKQuantitySeriesSampleQuery")]
    unsafe impl ClassType for HKQuantitySeriesSampleQuery {
        #[inherits(NSObject)]
        type Super = HKQuery;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "HealthKit_HKQuantitySeriesSampleQuery")]
unsafe impl NSObjectProtocol for HKQuantitySeriesSampleQuery {}

extern_methods!(
    #[cfg(feature = "HealthKit_HKQuantitySeriesSampleQuery")]
    unsafe impl HKQuantitySeriesSampleQuery {
        #[method(includeSample)]
        pub unsafe fn includeSample(&self) -> bool;

        #[method(setIncludeSample:)]
        pub unsafe fn setIncludeSample(&self, include_sample: bool);

        #[method(orderByQuantitySampleStartDate)]
        pub unsafe fn orderByQuantitySampleStartDate(&self) -> bool;

        #[method(setOrderByQuantitySampleStartDate:)]
        pub unsafe fn setOrderByQuantitySampleStartDate(
            &self,
            order_by_quantity_sample_start_date: bool,
        );

        #[cfg(all(
            feature = "Foundation_NSDateInterval",
            feature = "Foundation_NSError",
            feature = "Foundation_NSPredicate",
            feature = "HealthKit_HKQuantity",
            feature = "HealthKit_HKQuantitySample",
            feature = "HealthKit_HKQuantityType"
        ))]
        #[method_id(@__retain_semantics Init initWithQuantityType:predicate:quantityHandler:)]
        pub unsafe fn initWithQuantityType_predicate_quantityHandler(
            this: Option<Allocated<Self>>,
            quantity_type: &HKQuantityType,
            predicate: Option<&NSPredicate>,
            quantity_handler: &Block<
                (
                    NonNull<HKQuantitySeriesSampleQuery>,
                    *mut HKQuantity,
                    *mut NSDateInterval,
                    *mut HKQuantitySample,
                    Bool,
                    *mut NSError,
                ),
                (),
            >,
        ) -> Id<Self>;

        #[cfg(all(
            feature = "Foundation_NSDate",
            feature = "Foundation_NSError",
            feature = "HealthKit_HKQuantity",
            feature = "HealthKit_HKQuantitySample"
        ))]
        #[deprecated]
        #[method_id(@__retain_semantics Init initWithSample:quantityHandler:)]
        pub unsafe fn initWithSample_quantityHandler(
            this: Option<Allocated<Self>>,
            quantity_sample: &HKQuantitySample,
            quantity_handler: &Block<
                (
                    NonNull<HKQuantitySeriesSampleQuery>,
                    *mut HKQuantity,
                    *mut NSDate,
                    Bool,
                    *mut NSError,
                ),
                (),
            >,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `HKQuery`
    #[cfg(feature = "HealthKit_HKQuantitySeriesSampleQuery")]
    unsafe impl HKQuantitySeriesSampleQuery {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "HealthKit_HKQuantitySeriesSampleQuery")]
    unsafe impl HKQuantitySeriesSampleQuery {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);
