//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

/// [Apple's documentation](https://developer.apple.com/documentation/corelocation/clerror?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CLError(pub NSInteger);
impl CLError {
    #[doc(alias = "kCLErrorLocationUnknown")]
    pub const LocationUnknown: Self = Self(0);
    #[doc(alias = "kCLErrorDenied")]
    pub const Denied: Self = Self(1);
    #[doc(alias = "kCLErrorNetwork")]
    pub const Network: Self = Self(2);
    #[doc(alias = "kCLErrorHeadingFailure")]
    pub const HeadingFailure: Self = Self(3);
    #[doc(alias = "kCLErrorRegionMonitoringDenied")]
    pub const RegionMonitoringDenied: Self = Self(4);
    #[doc(alias = "kCLErrorRegionMonitoringFailure")]
    pub const RegionMonitoringFailure: Self = Self(5);
    #[doc(alias = "kCLErrorRegionMonitoringSetupDelayed")]
    pub const RegionMonitoringSetupDelayed: Self = Self(6);
    #[doc(alias = "kCLErrorRegionMonitoringResponseDelayed")]
    pub const RegionMonitoringResponseDelayed: Self = Self(7);
    #[doc(alias = "kCLErrorGeocodeFoundNoResult")]
    pub const GeocodeFoundNoResult: Self = Self(8);
    #[doc(alias = "kCLErrorGeocodeFoundPartialResult")]
    pub const GeocodeFoundPartialResult: Self = Self(9);
    #[doc(alias = "kCLErrorGeocodeCanceled")]
    pub const GeocodeCanceled: Self = Self(10);
    #[doc(alias = "kCLErrorDeferredFailed")]
    pub const DeferredFailed: Self = Self(11);
    #[doc(alias = "kCLErrorDeferredNotUpdatingLocation")]
    pub const DeferredNotUpdatingLocation: Self = Self(12);
    #[doc(alias = "kCLErrorDeferredAccuracyTooLow")]
    pub const DeferredAccuracyTooLow: Self = Self(13);
    #[doc(alias = "kCLErrorDeferredDistanceFiltered")]
    pub const DeferredDistanceFiltered: Self = Self(14);
    #[doc(alias = "kCLErrorDeferredCanceled")]
    pub const DeferredCanceled: Self = Self(15);
    #[doc(alias = "kCLErrorRangingUnavailable")]
    pub const RangingUnavailable: Self = Self(16);
    #[doc(alias = "kCLErrorRangingFailure")]
    pub const RangingFailure: Self = Self(17);
    #[doc(alias = "kCLErrorPromptDeclined")]
    pub const PromptDeclined: Self = Self(18);
    #[doc(alias = "kCLErrorHistoricalLocationError")]
    pub const HistoricalLocationError: Self = Self(19);
}

unsafe impl Encode for CLError {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for CLError {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/corelocation/kclerroruserinfoalternateregionkey?language=objc)
    pub static kCLErrorUserInfoAlternateRegionKey: &'static NSString;
}
