objc2_intents/generated/
INFile.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 pub struct INFile;
18);
19
20extern_conformance!(
21 unsafe impl NSCoding for INFile {}
22);
23
24extern_conformance!(
25 unsafe impl NSObjectProtocol for INFile {}
26);
27
28extern_conformance!(
29 unsafe impl NSSecureCoding for INFile {}
30);
31
32impl INFile {
33 extern_methods!(
34 #[unsafe(method(fileWithData:filename:typeIdentifier:))]
35 #[unsafe(method_family = none)]
36 pub unsafe fn fileWithData_filename_typeIdentifier(
37 data: &NSData,
38 filename: &NSString,
39 type_identifier: Option<&NSString>,
40 ) -> Retained<INFile>;
41
42 #[unsafe(method(fileWithFileURL:filename:typeIdentifier:))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn fileWithFileURL_filename_typeIdentifier(
45 file_url: &NSURL,
46 filename: Option<&NSString>,
47 type_identifier: Option<&NSString>,
48 ) -> Retained<INFile>;
49
50 #[unsafe(method(data))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn data(&self) -> Retained<NSData>;
55
56 #[unsafe(method(filename))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn filename(&self) -> Retained<NSString>;
60
61 #[unsafe(method(setFilename:))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn setFilename(&self, filename: &NSString);
67
68 #[unsafe(method(typeIdentifier))]
73 #[unsafe(method_family = none)]
74 pub unsafe fn typeIdentifier(&self) -> Option<Retained<NSString>>;
75
76 #[unsafe(method(fileURL))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn fileURL(&self) -> Option<Retained<NSURL>>;
84
85 #[unsafe(method(removedOnCompletion))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn removedOnCompletion(&self) -> bool;
89
90 #[unsafe(method(setRemovedOnCompletion:))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn setRemovedOnCompletion(&self, removed_on_completion: bool);
94 );
95}
96
97impl INFile {
99 extern_methods!(
100 #[unsafe(method(init))]
101 #[unsafe(method_family = init)]
102 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
103
104 #[unsafe(method(new))]
105 #[unsafe(method_family = new)]
106 pub unsafe fn new() -> Retained<Self>;
107 );
108}