use crate::common::*;
use crate::AppKit::*;
use crate::Automator::*;
use crate::Foundation::*;
use crate::OSAKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "Automator_AMShellScriptAction")]
pub struct AMShellScriptAction;
#[cfg(feature = "Automator_AMShellScriptAction")]
unsafe impl ClassType for AMShellScriptAction {
#[inherits(AMAction, NSObject)]
type Super = AMBundleAction;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "Automator_AMShellScriptAction")]
unsafe impl NSCoding for AMShellScriptAction {}
#[cfg(feature = "Automator_AMShellScriptAction")]
unsafe impl NSCopying for AMShellScriptAction {}
#[cfg(feature = "Automator_AMShellScriptAction")]
unsafe impl NSObjectProtocol for AMShellScriptAction {}
#[cfg(feature = "Automator_AMShellScriptAction")]
unsafe impl NSSecureCoding for AMShellScriptAction {}
extern_methods!(
#[cfg(feature = "Automator_AMShellScriptAction")]
unsafe impl AMShellScriptAction {
#[method(remapLineEndings)]
pub unsafe fn remapLineEndings(&self) -> bool;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other inputFieldSeparator)]
pub unsafe fn inputFieldSeparator(&self) -> Id<NSString>;
#[cfg(feature = "Foundation_NSString")]
#[method_id(@__retain_semantics Other outputFieldSeparator)]
pub unsafe fn outputFieldSeparator(&self) -> Id<NSString>;
}
);
extern_methods!(
#[cfg(feature = "Automator_AMShellScriptAction")]
unsafe impl AMShellScriptAction {
#[cfg(all(feature = "Foundation_NSDictionary", feature = "Foundation_NSString"))]
#[method_id(@__retain_semantics Init initWithDefinition:fromArchive:)]
pub unsafe fn initWithDefinition_fromArchive(
this: Allocated<Self>,
dict: Option<&NSDictionary<NSString, AnyObject>>,
archived: bool,
) -> Option<Id<Self>>;
#[cfg(all(feature = "Foundation_NSError", feature = "Foundation_NSURL"))]
#[method_id(@__retain_semantics Init initWithContentsOfURL:error:_)]
pub unsafe fn initWithContentsOfURL_error(
this: Allocated<Self>,
file_url: &NSURL,
) -> Result<Id<Self>, Id<NSError>>;
}
);
extern_methods!(
#[cfg(feature = "Automator_AMShellScriptAction")]
unsafe impl AMShellScriptAction {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);