use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSIncrementalStoreNode;
);
extern_conformance!(
unsafe impl NSObjectProtocol for NSIncrementalStoreNode {}
);
impl NSIncrementalStoreNode {
extern_methods!(
#[cfg(feature = "NSManagedObjectID")]
#[unsafe(method(initWithObjectID:withValues:version:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithObjectID_withValues_version(
this: Allocated<Self>,
object_id: &NSManagedObjectID,
values: &NSDictionary<NSString, AnyObject>,
version: u64,
) -> Retained<Self>;
#[unsafe(method(updateWithValues:version:))]
#[unsafe(method_family = none)]
pub unsafe fn updateWithValues_version(
&self,
values: &NSDictionary<NSString, AnyObject>,
version: u64,
);
#[cfg(feature = "NSManagedObjectID")]
#[unsafe(method(objectID))]
#[unsafe(method_family = none)]
pub unsafe fn objectID(&self) -> Retained<NSManagedObjectID>;
#[unsafe(method(version))]
#[unsafe(method_family = none)]
pub unsafe fn version(&self) -> u64;
#[cfg(feature = "NSPropertyDescription")]
#[unsafe(method(valueForPropertyDescription:))]
#[unsafe(method_family = none)]
pub unsafe fn valueForPropertyDescription(
&self,
prop: &NSPropertyDescription,
) -> Option<Retained<AnyObject>>;
);
}
impl NSIncrementalStoreNode {
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>;
);
}