icrate 0.0.1

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::CoreData::*;
use crate::Foundation::*;

ns_enum!(
    #[underlying(NSInteger)]
    pub enum NSPersistentCloudKitContainerEventType {
        NSPersistentCloudKitContainerEventTypeSetup = 0,
        NSPersistentCloudKitContainerEventTypeImport = 1,
        NSPersistentCloudKitContainerEventTypeExport = 2,
    }
);

extern_static!(NSPersistentCloudKitContainerEventChangedNotification: &'static NSNotificationName);

extern_static!(NSPersistentCloudKitContainerEventUserInfoKey: &'static NSString);

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct NSPersistentCloudKitContainerEvent;

    unsafe impl ClassType for NSPersistentCloudKitContainerEvent {
        type Super = NSObject;
    }
);

extern_methods!(
    unsafe impl NSPersistentCloudKitContainerEvent {
        #[method_id(@__retain_semantics Other identifier)]
        pub unsafe fn identifier(&self) -> Id<NSUUID, Shared>;

        #[method_id(@__retain_semantics Other storeIdentifier)]
        pub unsafe fn storeIdentifier(&self) -> Id<NSString, Shared>;

        #[method(type)]
        pub unsafe fn type_(&self) -> NSPersistentCloudKitContainerEventType;

        #[method_id(@__retain_semantics Other startDate)]
        pub unsafe fn startDate(&self) -> Id<NSDate, Shared>;

        #[method_id(@__retain_semantics Other endDate)]
        pub unsafe fn endDate(&self) -> Option<Id<NSDate, Shared>>;

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

        #[method_id(@__retain_semantics Other error)]
        pub unsafe fn error(&self) -> Option<Id<NSError, Shared>>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self, Shared>;

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self, Shared>;
    }
);