objc2_cloud_kit/generated/
CKDatabaseOperation.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(CKOperation, NSOperation, NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 #[cfg(feature = "CKOperation")]
15 pub struct CKDatabaseOperation;
16);
17
18#[cfg(feature = "CKOperation")]
19extern_conformance!(
20 unsafe impl NSObjectProtocol for CKDatabaseOperation {}
21);
22
23#[cfg(feature = "CKOperation")]
24impl CKDatabaseOperation {
25 extern_methods!(
26 #[cfg(feature = "CKDatabase")]
27 #[unsafe(method(database))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn database(&self) -> Option<Retained<CKDatabase>>;
47
48 #[cfg(feature = "CKDatabase")]
49 #[unsafe(method(setDatabase:))]
55 #[unsafe(method_family = none)]
56 pub unsafe fn setDatabase(&self, database: Option<&CKDatabase>);
57 );
58}
59
60#[cfg(feature = "CKOperation")]
62impl CKDatabaseOperation {
63 extern_methods!(
64 #[unsafe(method(init))]
65 #[unsafe(method_family = init)]
66 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
67 );
68}
69
70#[cfg(feature = "CKOperation")]
72impl CKDatabaseOperation {
73 extern_methods!(
74 #[unsafe(method(new))]
75 #[unsafe(method_family = new)]
76 pub unsafe fn new() -> Retained<Self>;
77 );
78}