use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
#[deprecated]
pub struct DOMMediaList;
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl ClassType for DOMMediaList {
#[inherits(WebScriptObject, NSObject)]
type Super = DOMObject;
type Mutability = InteriorMutable;
}
);
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl NSCopying for DOMMediaList {}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl NSObjectProtocol for DOMMediaList {}
extern_methods!(
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl DOMMediaList {
#[deprecated]
#[method_id(@__retain_semantics Other mediaText)]
pub unsafe fn mediaText(&self) -> Retained<NSString>;
#[deprecated]
#[method(setMediaText:)]
pub unsafe fn setMediaText(&self, media_text: Option<&NSString>);
#[deprecated]
#[method(length)]
pub unsafe fn length(&self) -> c_uint;
#[deprecated]
#[method_id(@__retain_semantics Other item:)]
pub unsafe fn item(&self, index: c_uint) -> Option<Retained<NSString>>;
#[deprecated]
#[method(deleteMedium:)]
pub unsafe fn deleteMedium(&self, old_medium: Option<&NSString>);
#[deprecated]
#[method(appendMedium:)]
pub unsafe fn appendMedium(&self, new_medium: Option<&NSString>);
}
);
extern_methods!(
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl DOMMediaList {
#[deprecated]
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl DOMMediaList {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);