summaryrefslogtreecommitdiffstats
path: root/macosx/HBExceptionAlertController.h
blob: c6c0ee4b24023a163b3b190228c2795a639ff20d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*  HBExceptionAlertController.h $

 This file is part of the HandBrake source code.
 Homepage: <http://handbrake.fr/>.
 It may be used under the terms of the GNU General Public License. */

#import <Cocoa/Cocoa.h>

typedef NS_ENUM(NSUInteger, HBExceptionAlertControllerResult) {
    HBExceptionAlertControllerResultCrash,
    HBExceptionAlertControllerResultContinue,
};

@interface HBExceptionAlertController : NSWindowController

// Properties are used by bindings
@property (nonatomic, copy) NSString *exceptionMessage;
@property (nonatomic, copy) NSAttributedString *exceptionBacktrace;

- (IBAction)btnCrashClicked:(id)sender;
- (IBAction)btnContinueClicked:(id)sender;

- (NSInteger)runModal;

@end