1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "BADownload")]
    pub struct BAURLDownload;

    #[cfg(feature = "BADownload")]
    unsafe impl ClassType for BAURLDownload {
        #[inherits(NSObject)]
        type Super = BADownload;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "BADownload")]
unsafe impl NSCoding for BAURLDownload {}

#[cfg(feature = "BADownload")]
unsafe impl NSCopying for BAURLDownload {}

#[cfg(feature = "BADownload")]
unsafe impl NSObjectProtocol for BAURLDownload {}

#[cfg(feature = "BADownload")]
unsafe impl NSSecureCoding for BAURLDownload {}

extern_methods!(
    #[cfg(feature = "BADownload")]
    unsafe impl BAURLDownload {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Retained<Self>;

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[method_id(@__retain_semantics Init initWithIdentifier:request:fileSize:applicationGroupIdentifier:)]
        pub unsafe fn initWithIdentifier_request_fileSize_applicationGroupIdentifier(
            this: Allocated<Self>,
            identifier: &NSString,
            request: &NSURLRequest,
            file_size: NSUInteger,
            application_group_identifier: &NSString,
        ) -> Retained<Self>;

        #[method_id(@__retain_semantics Init initWithIdentifier:request:essential:fileSize:applicationGroupIdentifier:priority:)]
        pub unsafe fn initWithIdentifier_request_essential_fileSize_applicationGroupIdentifier_priority(
            this: Allocated<Self>,
            identifier: &NSString,
            request: &NSURLRequest,
            essential: bool,
            file_size: NSUInteger,
            application_group_identifier: &NSString,
            priority: BADownloaderPriority,
        ) -> Retained<Self>;

        #[deprecated]
        #[method_id(@__retain_semantics Init initWithIdentifier:request:applicationGroupIdentifier:)]
        pub unsafe fn initWithIdentifier_request_applicationGroupIdentifier(
            this: Allocated<Self>,
            identifier: &NSString,
            request: &NSURLRequest,
            application_group_identifier: &NSString,
        ) -> Retained<Self>;

        #[deprecated]
        #[method_id(@__retain_semantics Init initWithIdentifier:request:applicationGroupIdentifier:priority:)]
        pub unsafe fn initWithIdentifier_request_applicationGroupIdentifier_priority(
            this: Allocated<Self>,
            identifier: &NSString,
            request: &NSURLRequest,
            application_group_identifier: &NSString,
            priority: BADownloaderPriority,
        ) -> Retained<Self>;
    }
);