objc2_automator/generated/
AMShellScriptAction.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(AMBundleAction, AMAction, NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 #[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
14 pub struct AMShellScriptAction;
15);
16
17#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
18unsafe impl NSCoding for AMShellScriptAction {}
19
20#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
21unsafe impl NSCopying for AMShellScriptAction {}
22
23#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
24unsafe impl CopyingHelper for AMShellScriptAction {
25 type Result = Self;
26}
27
28#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
29unsafe impl NSObjectProtocol for AMShellScriptAction {}
30
31#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
32unsafe impl NSSecureCoding for AMShellScriptAction {}
33
34#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
35impl AMShellScriptAction {
36 extern_methods!(
37 #[unsafe(method(remapLineEndings))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn remapLineEndings(&self) -> bool;
40
41 #[unsafe(method(inputFieldSeparator))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn inputFieldSeparator(&self) -> Retained<NSString>;
44
45 #[unsafe(method(outputFieldSeparator))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn outputFieldSeparator(&self) -> Retained<NSString>;
48 );
49}
50
51#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
53impl AMShellScriptAction {
54 extern_methods!(
55 #[unsafe(method(initWithDefinition:fromArchive:))]
56 #[unsafe(method_family = init)]
57 pub unsafe fn initWithDefinition_fromArchive(
58 this: Allocated<Self>,
59 dict: Option<&NSDictionary<NSString, AnyObject>>,
60 archived: bool,
61 ) -> Option<Retained<Self>>;
62
63 #[unsafe(method(initWithContentsOfURL:error:_))]
64 #[unsafe(method_family = init)]
65 pub unsafe fn initWithContentsOfURL_error(
66 this: Allocated<Self>,
67 file_url: &NSURL,
68 ) -> Result<Retained<Self>, Retained<NSError>>;
69 );
70}
71
72#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
74impl AMShellScriptAction {
75 extern_methods!(
76 #[unsafe(method(init))]
77 #[unsafe(method_family = init)]
78 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
79
80 #[unsafe(method(new))]
81 #[unsafe(method_family = new)]
82 pub unsafe fn new() -> Retained<Self>;
83 );
84}