Skip to content
Newer
Older
100644 100 lines (77 sloc) 2.9 KB
dc5be1c Initial check-in.
uli authored Jul 4, 2009
1 //
2 // UKCrashReporter.h
3 // NiftyFeatures
4 //
5 // Created by Uli Kusterer on Sat Feb 04 2006.
720b0e7 @uliwitness Added licensing information to the source files.
authored Mar 4, 2010
6 // Copyright (c) 2006 Uli Kusterer.
7 //
8 // This software is provided 'as-is', without any express or implied
9 // warranty. In no event will the authors be held liable for any damages
10 // arising from the use of this software.
11 //
12 // Permission is granted to anyone to use this software for any purpose,
13 // including commercial applications, and to alter it and redistribute it
14 // freely, subject to the following restrictions:
15 //
16 // 1. The origin of this software must not be misrepresented; you must not
17 // claim that you wrote the original software. If you use this software
18 // in a product, an acknowledgment in the product documentation would be
19 // appreciated but is not required.
20 //
21 // 2. Altered source versions must be plainly marked as such, and must not be
22 // misrepresented as being the original software.
23 //
24 // 3. This notice may not be removed or altered from any source
25 // distribution.
dc5be1c Initial check-in.
uli authored Jul 4, 2009
26 //
27
28 // -----------------------------------------------------------------------------
29 // Headers:
30 // -----------------------------------------------------------------------------
31
32 #import <Foundation/Foundation.h>
33 #import "UKNibOwner.h"
34
35
33a47c5 @uliwitness Make this safe to include from Obj-C++
authored Jan 6, 2014
36 #if __cplusplus
37 extern "C" {
38 #endif
39
40
dc5be1c Initial check-in.
uli authored Jul 4, 2009
41 // -----------------------------------------------------------------------------
42 // Prototypes:
43 // -----------------------------------------------------------------------------
44
45 /* Call this sometime during startup (e.g. in applicationDidLaunch) and it'll
46 check for a new crash log and offer to the user to send it.
47
48 The crash log is sent to a CGI script whose URL you specify in the
49 UKUpdateChecker.strings file. If you want, you can even have different
50 URLs for different locales that way, in case a crash is caused by an error
51 in a localized file.
52 */
5231e90 @uliwitness Make UKFeedbackProvider build again.
authored Apr 24, 2013
53 void UKCrashReporterCheckForCrash( void );
dc5be1c Initial check-in.
uli authored Jul 4, 2009
54
55
56 // -----------------------------------------------------------------------------
57 // Classes:
58 // -----------------------------------------------------------------------------
59
60 @interface UKCrashReporter : UKNibOwner
61 {
62 IBOutlet NSWindow* reportWindow;
63 IBOutlet NSTextView* informationField;
64 IBOutlet NSTextView* crashLogField;
65 IBOutlet NSTextField* explanationField;
66 IBOutlet NSProgressIndicator* progressIndicator;
67 IBOutlet NSButton* sendButton;
68 IBOutlet NSButton* remindButton;
69 IBOutlet NSButton* discardButton;
70 IBOutlet NSTabView* switchTabView;
71 BOOL feedbackMode;
72 }
73
74 -(id) initWithLogString: (NSString*)theLog;
75 -(id) init; // This gives you a feedback window instead of a crash reporter.
76
77 -(IBAction) sendCrashReport: (id)sender;
78 -(IBAction) remindMeLater: (id)sender;
79 -(IBAction) discardCrashReport: (id)sender;
80
6557e67 @uliwitness Reuse crash reporter windows.
authored May 4, 2013
81 -(NSWindow*) window;
82
dc5be1c Initial check-in.
uli authored Jul 4, 2009
83 @end
84
85
86 @interface UKFeedbackProvider : NSObject
87 {
88
89 }
90
91 -(IBAction) orderFrontFeedbackWindow: (id)sender;
92 -(IBAction) orderFrontBugReportWindow: (id)sender;
93
94 @end
33a47c5 @uliwitness Make this safe to include from Obj-C++
authored Jan 6, 2014
95
96
97 #if __cplusplus
98 }
99 #endif
Something went wrong with that request. Please try again.