objc2_automator/generated/
AMShellScriptAction.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/automator/amshellscriptaction?language=objc)
11    #[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"))]
18extern_conformance!(
19    unsafe impl NSCoding for AMShellScriptAction {}
20);
21
22#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
23extern_conformance!(
24    unsafe impl NSCopying for AMShellScriptAction {}
25);
26
27#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
28unsafe impl CopyingHelper for AMShellScriptAction {
29    type Result = Self;
30}
31
32#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
33extern_conformance!(
34    unsafe impl NSObjectProtocol for AMShellScriptAction {}
35);
36
37#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
38extern_conformance!(
39    unsafe impl NSSecureCoding for AMShellScriptAction {}
40);
41
42#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
43impl AMShellScriptAction {
44    extern_methods!(
45        #[unsafe(method(remapLineEndings))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn remapLineEndings(&self) -> bool;
48
49        #[unsafe(method(inputFieldSeparator))]
50        #[unsafe(method_family = none)]
51        pub unsafe fn inputFieldSeparator(&self) -> Retained<NSString>;
52
53        #[unsafe(method(outputFieldSeparator))]
54        #[unsafe(method_family = none)]
55        pub unsafe fn outputFieldSeparator(&self) -> Retained<NSString>;
56    );
57}
58
59/// Methods declared on superclass `AMAction`.
60#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
61impl AMShellScriptAction {
62    extern_methods!(
63        #[unsafe(method(initWithDefinition:fromArchive:))]
64        #[unsafe(method_family = init)]
65        pub unsafe fn initWithDefinition_fromArchive(
66            this: Allocated<Self>,
67            dict: Option<&NSDictionary<NSString, AnyObject>>,
68            archived: bool,
69        ) -> Option<Retained<Self>>;
70
71        #[unsafe(method(initWithContentsOfURL:error:_))]
72        #[unsafe(method_family = init)]
73        pub unsafe fn initWithContentsOfURL_error(
74            this: Allocated<Self>,
75            file_url: &NSURL,
76        ) -> Result<Retained<Self>, Retained<NSError>>;
77    );
78}
79
80/// Methods declared on superclass `NSObject`.
81#[cfg(all(feature = "AMAction", feature = "AMBundleAction"))]
82impl AMShellScriptAction {
83    extern_methods!(
84        #[unsafe(method(init))]
85        #[unsafe(method_family = init)]
86        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
87
88        #[unsafe(method(new))]
89        #[unsafe(method_family = new)]
90        pub unsafe fn new() -> Retained<Self>;
91    );
92}