diff options
author | Damiano Galassi <[email protected]> | 2016-01-10 08:12:21 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-01-10 08:12:21 +0100 |
commit | 5d7c81252a9fe042c1df2fedd7a275593760abec (patch) | |
tree | 45615328222beb54dbfa1b9a5982e5fc50140bcf /macosx/HBUtilities.h | |
parent | 45c6f4b53d656e18ecfe9e00b142409e08cd3cd5 (diff) |
MacGui: rework the way HBController scans, remove an ivar and move some unrelated code to HBUtilites.
Diffstat (limited to 'macosx/HBUtilities.h')
-rw-r--r-- | macosx/HBUtilities.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/macosx/HBUtilities.h b/macosx/HBUtilities.h index de4fe2036..362e32012 100644 --- a/macosx/HBUtilities.h +++ b/macosx/HBUtilities.h @@ -4,10 +4,12 @@ Homepage: <http://handbrake.fr/>. It may be used under the terms of the GNU General Public License. */ -#import <Foundation/Foundation.h> +#import <Cocoa/Cocoa.h> NS_ASSUME_NONNULL_BEGIN +@class HBJob; + @interface HBUtilities : NSObject /** @@ -19,6 +21,7 @@ NS_ASSUME_NONNULL_BEGIN * Returns the url of the current <user>/Library/Application Support/HandBrake folder. */ + (nullable NSURL *)appSupportURL; + /** * Writes a message to standard error. * The message will show up in the output panel and in the activity log. @@ -27,6 +30,12 @@ NS_ASSUME_NONNULL_BEGIN */ + (void)writeToActivityLog:(const char *)format, ...; ++ (NSURL *)mediaURLFromURL:(NSURL *)URL; + ++ (NSString *)automaticNameForJob:(HBJob *)job; ++ (NSString *)automaticExtForJob:(HBJob *)job; ++ (NSURL *)destURLForJob:(HBJob *)job; + /** * Generates a file name automatically based on the inputs, * it can be configured with NSUserDefaults. @@ -49,5 +58,6 @@ NS_ASSUME_NONNULL_BEGIN @end + NS_ASSUME_NONNULL_END |