2 #import <Cocoa/Cocoa.h>
3 #import <SystemConfiguration/SystemConfiguration.h>
4 #include "AvailabilityMacros.h"
5 #import <SystemConfiguration/SCNetworkReachability.h>
8 #import "MutLockArray.h"
18 - (void) crashReporterCheckDone;
21 @protocol VVCrashReporterDelegate
22 - (void) crashReporterCheckDone:(BOOL)foundLogs;
23 - (void) crashReporterWillSendLog:(NSString *)crashString;
47 NSString *domainToCheck;
49 NSString *developerEmail;
52 NSMutableDictionary *systemProfilerDict;
56 int currentCrashLogTimeout;
57 NSTimer *currentCrashLogTimer;
59 IBOutlet NSWindow *window;
60 IBOutlet NSButton *replyButton;
61 IBOutlet NSView *emailFieldHolder;
62 IBOutlet NSTextField *emailField;
63 IBOutlet NSTextView *descriptionField;
64 IBOutlet NSTextField *submittingLabel;
65 IBOutlet NSProgressIndicator *progressIndicator;
66 IBOutlet NSTextField *countdownLabel;
69 NSArray *nibTopLevelObjects;
72 + (NSString *) _stringForSystemProfilerDataType:(NSString *)t;
76 - (void) openCrashReporter;
77 - (IBAction) replyButtonClicked:(
id)sender;
78 - (IBAction) doneClicked:(
id)sender;
79 - (void) sendACrashLog;
80 - (void) closeCrashReporter;
82 - (NSString *) _nibName;
83 - (BOOL) _assembleCrashLogs;
84 - (NSString *) _consoleLogString;
85 - (NSMutableDictionary *) _systemProfilerDict;
87 - (void) updateCrashLogTimeout:(NSTimer *)t;
90 - (void) dlFinished:(
id)h;
93 - (void) setDomainToCheck:(NSString *)n;
94 - (NSString *) domainToCheck;
96 - (void) setDeveloperEmail:(NSString *)n;
97 - (NSString *) developerEmail;
99 - (void) setUploadURL:(NSString *)n;
100 - (NSString *) uploadURL;
103 @property (assign,readwrite)
id delegate;
104 @property (readonly) NSButton *replyButton;
The crash reporter's delegate must adhere to this protocol.
Definition: VVCrashReporter.h:17
id delegate
The crash reporter's delegate is notified when the check has completed.
Definition: VVCrashReporter.h:50
Simple class which automatically uploads crash logs and other relevant diagnostic information automat...
Definition: VVCrashReporter.h:46
Similar to NSMutableArray, but thread-safe. Internally, uses an NSMutableArray and a rwlock...
Definition: MutLockArray.h:20