objc2_io_bluetooth/generated/objc2/
NSDictionaryOBEXExtensions.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5#[cfg(feature = "objc2-foundation")]
6use objc2_foundation::*;
7
8use crate::*;
9
10mod private_NSDictionaryOBEXExtensions {
11    pub trait Sealed {}
12}
13
14/// Category on [`NSMutableDictionary`].
15pub unsafe trait NSDictionaryOBEXExtensions:
16    ClassType + Sized + private_NSDictionaryOBEXExtensions::Sealed
17{
18    extern_methods!(
19        #[unsafe(method(dictionaryWithOBEXHeadersData:headersDataSize:))]
20        #[unsafe(method_family = none)]
21        unsafe fn dictionaryWithOBEXHeadersData_headersDataSize(
22            in_headers_data: *const c_void,
23            in_data_size: usize,
24        ) -> Option<Retained<Self>>;
25
26        #[cfg(feature = "objc2-foundation")]
27        #[unsafe(method(dictionaryWithOBEXHeadersData:))]
28        #[unsafe(method_family = none)]
29        unsafe fn dictionaryWithOBEXHeadersData(
30            in_headers_data: Option<&NSData>,
31        ) -> Option<Retained<Self>>;
32
33        #[cfg(feature = "objc2-foundation")]
34        #[unsafe(method(getHeaderBytes))]
35        #[unsafe(method_family = none)]
36        unsafe fn getHeaderBytes(&self) -> Option<Retained<NSMutableData>>;
37
38        #[cfg(feature = "OBEX")]
39        #[unsafe(method(addTargetHeader:length:))]
40        #[unsafe(method_family = none)]
41        unsafe fn addTargetHeader_length(
42            &self,
43            in_header_data: *const c_void,
44            in_header_data_length: u32,
45        ) -> OBEXError;
46
47        #[cfg(feature = "OBEX")]
48        #[unsafe(method(addHTTPHeader:length:))]
49        #[unsafe(method_family = none)]
50        unsafe fn addHTTPHeader_length(
51            &self,
52            in_header_data: *const c_void,
53            in_header_data_length: u32,
54        ) -> OBEXError;
55
56        #[cfg(feature = "OBEX")]
57        #[unsafe(method(addBodyHeader:length:endOfBody:))]
58        #[unsafe(method_family = none)]
59        unsafe fn addBodyHeader_length_endOfBody(
60            &self,
61            in_header_data: *const c_void,
62            in_header_data_length: u32,
63            is_end_of_body: bool,
64        ) -> OBEXError;
65
66        #[cfg(feature = "OBEX")]
67        #[unsafe(method(addWhoHeader:length:))]
68        #[unsafe(method_family = none)]
69        unsafe fn addWhoHeader_length(
70            &self,
71            in_header_data: *const c_void,
72            in_header_data_length: u32,
73        ) -> OBEXError;
74
75        #[cfg(feature = "OBEX")]
76        #[unsafe(method(addConnectionIDHeader:length:))]
77        #[unsafe(method_family = none)]
78        unsafe fn addConnectionIDHeader_length(
79            &self,
80            in_header_data: *const c_void,
81            in_header_data_length: u32,
82        ) -> OBEXError;
83
84        #[cfg(feature = "OBEX")]
85        #[unsafe(method(addApplicationParameterHeader:length:))]
86        #[unsafe(method_family = none)]
87        unsafe fn addApplicationParameterHeader_length(
88            &self,
89            in_header_data: *const c_void,
90            in_header_data_length: u32,
91        ) -> OBEXError;
92
93        #[cfg(feature = "OBEX")]
94        #[unsafe(method(addByteSequenceHeader:length:))]
95        #[unsafe(method_family = none)]
96        unsafe fn addByteSequenceHeader_length(
97            &self,
98            in_header_data: *const c_void,
99            in_header_data_length: u32,
100        ) -> OBEXError;
101
102        #[cfg(feature = "OBEX")]
103        #[unsafe(method(addObjectClassHeader:length:))]
104        #[unsafe(method_family = none)]
105        unsafe fn addObjectClassHeader_length(
106            &self,
107            in_header_data: *const c_void,
108            in_header_data_length: u32,
109        ) -> OBEXError;
110
111        #[cfg(feature = "OBEX")]
112        #[unsafe(method(addAuthorizationChallengeHeader:length:))]
113        #[unsafe(method_family = none)]
114        unsafe fn addAuthorizationChallengeHeader_length(
115            &self,
116            in_header_data: *const c_void,
117            in_header_data_length: u32,
118        ) -> OBEXError;
119
120        #[cfg(feature = "OBEX")]
121        #[unsafe(method(addAuthorizationResponseHeader:length:))]
122        #[unsafe(method_family = none)]
123        unsafe fn addAuthorizationResponseHeader_length(
124            &self,
125            in_header_data: *const c_void,
126            in_header_data_length: u32,
127        ) -> OBEXError;
128
129        #[cfg(feature = "OBEX")]
130        #[unsafe(method(addTimeISOHeader:length:))]
131        #[unsafe(method_family = none)]
132        unsafe fn addTimeISOHeader_length(
133            &self,
134            in_header_data: *const c_void,
135            in_header_data_length: u32,
136        ) -> OBEXError;
137
138        #[cfg(all(feature = "OBEX", feature = "objc2-foundation"))]
139        #[unsafe(method(addTypeHeader:))]
140        #[unsafe(method_family = none)]
141        unsafe fn addTypeHeader(&self, r#type: Option<&NSString>) -> OBEXError;
142
143        #[cfg(feature = "OBEX")]
144        #[unsafe(method(addLengthHeader:))]
145        #[unsafe(method_family = none)]
146        unsafe fn addLengthHeader(&self, length: u32) -> OBEXError;
147
148        #[cfg(feature = "OBEX")]
149        #[unsafe(method(addTime4ByteHeader:))]
150        #[unsafe(method_family = none)]
151        unsafe fn addTime4ByteHeader(&self, time4_byte: u32) -> OBEXError;
152
153        #[cfg(feature = "OBEX")]
154        #[unsafe(method(addCountHeader:))]
155        #[unsafe(method_family = none)]
156        unsafe fn addCountHeader(&self, in_count: u32) -> OBEXError;
157
158        #[cfg(all(feature = "OBEX", feature = "objc2-foundation"))]
159        #[unsafe(method(addDescriptionHeader:))]
160        #[unsafe(method_family = none)]
161        unsafe fn addDescriptionHeader(
162            &self,
163            in_description_string: Option<&NSString>,
164        ) -> OBEXError;
165
166        #[cfg(all(feature = "OBEX", feature = "objc2-foundation"))]
167        #[unsafe(method(addNameHeader:))]
168        #[unsafe(method_family = none)]
169        unsafe fn addNameHeader(&self, in_name_string: Option<&NSString>) -> OBEXError;
170
171        #[cfg(feature = "OBEX")]
172        #[unsafe(method(addUserDefinedHeader:length:))]
173        #[unsafe(method_family = none)]
174        unsafe fn addUserDefinedHeader_length(
175            &self,
176            in_header_data: *const c_void,
177            in_header_data_length: u32,
178        ) -> OBEXError;
179
180        #[cfg(all(feature = "OBEX", feature = "objc2-foundation"))]
181        #[unsafe(method(addImageHandleHeader:))]
182        #[unsafe(method_family = none)]
183        unsafe fn addImageHandleHeader(&self, r#type: Option<&NSString>) -> OBEXError;
184
185        #[cfg(feature = "OBEX")]
186        #[unsafe(method(addImageDescriptorHeader:length:))]
187        #[unsafe(method_family = none)]
188        unsafe fn addImageDescriptorHeader_length(
189            &self,
190            in_header_data: *const c_void,
191            in_header_data_length: u32,
192        ) -> OBEXError;
193
194        #[deprecated = "No longer supported"]
195        #[unsafe(method(withOBEXHeadersData:headersDataSize:))]
196        #[unsafe(method_family = none)]
197        unsafe fn withOBEXHeadersData_headersDataSize(
198            in_headers_data: *const c_void,
199            in_data_size: usize,
200        ) -> Option<Retained<Self>>;
201    );
202}
203
204#[cfg(feature = "objc2-foundation")]
205impl private_NSDictionaryOBEXExtensions::Sealed for NSMutableDictionary {}
206#[cfg(feature = "objc2-foundation")]
207unsafe impl NSDictionaryOBEXExtensions for NSMutableDictionary {}