use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(
feature = "DOMBlob",
feature = "DOMObject",
feature = "WebScriptObject"
))]
#[deprecated]
pub struct DOMFile;
#[cfg(all(
feature = "DOMBlob",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl ClassType for DOMFile {
#[inherits(DOMObject, WebScriptObject, NSObject)]
type Super = DOMBlob;
type Mutability = InteriorMutable;
}
);
#[cfg(all(
feature = "DOMBlob",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSCopying for DOMFile {}
#[cfg(all(
feature = "DOMBlob",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSObjectProtocol for DOMFile {}
extern_methods!(
#[cfg(all(
feature = "DOMBlob",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMFile {
#[deprecated]
#[method_id(@__retain_semantics Other name)]
pub unsafe fn name(&self) -> Retained<NSString>;
}
);
extern_methods!(
#[cfg(all(
feature = "DOMBlob",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMFile {
#[deprecated]
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(
feature = "DOMBlob",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMFile {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);