use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[deprecated]
pub struct WebDataSource;
unsafe impl ClassType for WebDataSource {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for WebDataSource {}
extern_methods!(
unsafe impl WebDataSource {
#[deprecated]
#[method_id(@__retain_semantics Init initWithRequest:)]
pub unsafe fn initWithRequest(
this: Allocated<Self>,
request: Option<&NSURLRequest>,
) -> Option<Retained<Self>>;
#[deprecated]
#[method_id(@__retain_semantics Other data)]
pub unsafe fn data(&self) -> Retained<NSData>;
#[cfg(feature = "WebDocument")]
#[deprecated]
#[method_id(@__retain_semantics Other representation)]
pub unsafe fn representation(
&self,
) -> Option<Retained<ProtocolObject<dyn WebDocumentRepresentation>>>;
#[cfg(feature = "WebFrame")]
#[deprecated]
#[method_id(@__retain_semantics Other webFrame)]
pub unsafe fn webFrame(&self) -> Option<Retained<WebFrame>>;
#[deprecated]
#[method_id(@__retain_semantics Other initialRequest)]
pub unsafe fn initialRequest(&self) -> Option<Retained<NSURLRequest>>;
#[deprecated]
#[method_id(@__retain_semantics Other request)]
pub unsafe fn request(&self) -> Option<Retained<NSMutableURLRequest>>;
#[deprecated]
#[method_id(@__retain_semantics Other response)]
pub unsafe fn response(&self) -> Option<Retained<NSURLResponse>>;
#[deprecated]
#[method_id(@__retain_semantics Other textEncodingName)]
pub unsafe fn textEncodingName(&self) -> Retained<NSString>;
#[deprecated]
#[method(isLoading)]
pub unsafe fn isLoading(&self) -> bool;
#[deprecated]
#[method_id(@__retain_semantics Other pageTitle)]
pub unsafe fn pageTitle(&self) -> Retained<NSString>;
#[deprecated]
#[method_id(@__retain_semantics Other unreachableURL)]
pub unsafe fn unreachableURL(&self) -> Option<Retained<NSURL>>;
#[cfg(feature = "WebArchive")]
#[deprecated]
#[method_id(@__retain_semantics Other webArchive)]
pub unsafe fn webArchive(&self) -> Option<Retained<WebArchive>>;
#[cfg(feature = "WebResource")]
#[deprecated]
#[method_id(@__retain_semantics Other mainResource)]
pub unsafe fn mainResource(&self) -> Option<Retained<WebResource>>;
#[deprecated]
#[method_id(@__retain_semantics Other subresources)]
pub unsafe fn subresources(&self) -> Retained<NSArray>;
#[cfg(feature = "WebResource")]
#[deprecated]
#[method_id(@__retain_semantics Other subresourceForURL:)]
pub unsafe fn subresourceForURL(
&self,
url: Option<&NSURL>,
) -> Option<Retained<WebResource>>;
#[cfg(feature = "WebResource")]
#[deprecated]
#[method(addSubresource:)]
pub unsafe fn addSubresource(&self, subresource: Option<&WebResource>);
}
);
extern_methods!(
unsafe impl WebDataSource {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);