use crate::common::*;
use crate::CoreData::*;
use crate::Foundation::*;
extern_static!(NSCoreDataCoreSpotlightDelegateIndexDidUpdateNotification: &'static NSNotificationName);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CoreData_NSCoreDataCoreSpotlightDelegate")]
pub struct NSCoreDataCoreSpotlightDelegate;
#[cfg(feature = "CoreData_NSCoreDataCoreSpotlightDelegate")]
unsafe impl ClassType for NSCoreDataCoreSpotlightDelegate {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CoreData_NSCoreDataCoreSpotlightDelegate")]
unsafe impl NSObjectProtocol for NSCoreDataCoreSpotlightDelegate {}
extern_methods!(
#[cfg(feature = "CoreData_NSCoreDataCoreSpotlightDelegate")]
unsafe impl NSCoreDataCoreSpotlightDelegate {
#[method(isIndexingEnabled)]
pub unsafe fn isIndexingEnabled(&self) -> bool;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other domainIdentifier)]
pub unsafe fn domainIdentifier(&self) -> Id<NSString>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other indexName)]
pub unsafe fn indexName(&self) -> Option<Id<NSString>>;
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[cfg(all(
feature = "CoreData_NSPersistentStoreCoordinator",
feature = "CoreData_NSPersistentStoreDescription"
))]
#[method_id(@__retain_semantics Init initForStoreWithDescription:coordinator:)]
pub unsafe fn initForStoreWithDescription_coordinator(
this: Allocated<Self>,
description: &NSPersistentStoreDescription,
psc: &NSPersistentStoreCoordinator,
) -> Id<Self>;
#[cfg(all(
feature = "CoreData_NSManagedObjectModel",
feature = "CoreData_NSPersistentStoreDescription"
))]
#[deprecated]
#[method_id(@__retain_semantics Init initForStoreWithDescription:model:)]
pub unsafe fn initForStoreWithDescription_model(
this: Allocated<Self>,
description: &NSPersistentStoreDescription,
model: &NSManagedObjectModel,
) -> Id<Self>;
#[method(startSpotlightIndexing)]
pub unsafe fn startSpotlightIndexing(&self);
#[method(stopSpotlightIndexing)]
pub unsafe fn stopSpotlightIndexing(&self);
#[cfg(feature = "Foundation_NSError")]
#[method(deleteSpotlightIndexWithCompletionHandler:)]
pub unsafe fn deleteSpotlightIndexWithCompletionHandler(
&self,
completion_handler: &Block<(*mut NSError,), ()>,
);
}
);
extern_methods!(
#[cfg(feature = "CoreData_NSCoreDataCoreSpotlightDelegate")]
unsafe impl NSCoreDataCoreSpotlightDelegate {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);