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")]
19unsafe impl NSObjectProtocol for CKDatabaseOperation {}
20
21#[cfg(feature = "CKOperation")]
22impl CKDatabaseOperation {
23 extern_methods!(
24 #[cfg(feature = "CKDatabase")]
25 #[unsafe(method(database))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn database(&self) -> Option<Retained<CKDatabase>>;
39
40 #[cfg(feature = "CKDatabase")]
41 #[unsafe(method(setDatabase:))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn setDatabase(&self, database: Option<&CKDatabase>);
45 );
46}
47
48#[cfg(feature = "CKOperation")]
50impl CKDatabaseOperation {
51 extern_methods!(
52 #[unsafe(method(init))]
53 #[unsafe(method_family = init)]
54 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
55 );
56}
57
58#[cfg(feature = "CKOperation")]
60impl CKDatabaseOperation {
61 extern_methods!(
62 #[unsafe(method(new))]
63 #[unsafe(method_family = new)]
64 pub unsafe fn new() -> Retained<Self>;
65 );
66}