forked from gnachman/iTerm2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUKCrashReporter.h
69 lines (52 loc) · 2.01 KB
/
UKCrashReporter.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
//
// UKCrashReporter.h
// NiftyFeatures
//
// Created by Uli Kusterer on Sat Feb 04 2006.
// Copyright (c) 2006 M. Uli Kusterer. All rights reserved.
//
// -----------------------------------------------------------------------------
// Headers:
// -----------------------------------------------------------------------------
#import <Foundation/Foundation.h>
#import "UKNibOwner.h"
// -----------------------------------------------------------------------------
// Prototypes:
// -----------------------------------------------------------------------------
/* Call this sometime during startup (e.g. in applicationDidLaunch) and it'll
check for a new crash log and offer to the user to send it.
The crash log is sent to a CGI script whose URL you specify in the
UKUpdateChecker.strings file. If you want, you can even have different
URLs for different locales that way, in case a crash is caused by an error
in a localized file.
*/
void UKCrashReporterCheckForCrash(void);
// -----------------------------------------------------------------------------
// Classes:
// -----------------------------------------------------------------------------
@interface UKCrashReporter : UKNibOwner
{
IBOutlet NSWindow* reportWindow;
IBOutlet NSTextView* informationField;
IBOutlet NSTextView* crashLogField;
IBOutlet NSTextField* explanationField;
IBOutlet NSProgressIndicator* progressIndicator;
IBOutlet NSButton* sendButton;
IBOutlet NSButton* remindButton;
IBOutlet NSButton* discardButton;
IBOutlet NSTabView* switchTabView;
NSURLConnection* connection;
BOOL feedbackMode;
}
-(id) initWithLogString: (NSString*)theLog;
-(id) init; // This gives you a feedback window instead of a crash reporter.
-(IBAction) sendCrashReport: (id)sender;
-(IBAction) remindMeLater: (id)sender;
-(IBAction) discardCrashReport: (id)sender;
@end
@interface UKFeedbackProvider : NSObject
{
}
-(IBAction) orderFrontFeedbackWindow: (id)sender;
-(IBAction) orderFrontBugReportWindow: (id)sender;
@end