/
main.h
32 lines (24 loc) · 1.01 KB
/
main.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
// the code originally taken from breakpad codebase (Google)
@interface Reporter : NSObject {
@public
IBOutlet NSWindow* alertWindow_;
IBOutlet NSTextField* dialogTitle_;
IBOutlet NSTextField* dialogNote_;
IBOutlet NSTextField* dialogExplanation_;
IBOutlet NSTextField* commentMessage_;
IBOutlet NSButton* sendButton_;
IBOutlet NSButton* cancelButton_;
IBOutlet NSTextField* countdownLabel_;
IBOutlet NSProgressIndicator* progressIndicator_;
// text field bindings, for user input
NSString* countdownMessage_; // message indicating time left for input.
NSString* targetApp_; // TotalTerminal or TotalFinder
@private
NSDictionary* parameters_; // key value pairs of data
NSTimeInterval remainingDialogTime_; // keeps track of how long we have until we cancel the dialog
NSTimer* messageTimer_; // timer we use to update the dialog
}
- (IBAction)sendReport:(id)sender;
- (IBAction)cancel:(id)sender;
@property(nonatomic, copy) NSString* countdownMessage;
@end