aboutsummaryrefslogtreecommitdiff
path: root/src/client/mac/sender/uploader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/mac/sender/uploader.h')
-rw-r--r--src/client/mac/sender/uploader.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client/mac/sender/uploader.h b/src/client/mac/sender/uploader.h
index af1c19fc..318165c9 100644
--- a/src/client/mac/sender/uploader.h
+++ b/src/client/mac/sender/uploader.h
@@ -44,7 +44,6 @@ extern NSString *const kDefaultServerType;
@interface Uploader : NSObject {
@private
- int configFile_; // File descriptor for config file
NSMutableDictionary *parameters_; // Key value pairs of data (STRONG)
NSData *minidumpContents_; // The data in the minidump (STRONG)
NSData *logFileData_; // An NSdata for the tar,
@@ -66,8 +65,17 @@ extern NSString *const kDefaultServerType;
- (id)initWithConfigFile:(const char *)configFile;
+- (id)initWithConfig:(NSDictionary *)config;
+
- (NSMutableDictionary *)parameters;
- (void)report;
+// Upload the given data to the crash server.
+- (void)uploadData:(NSData *)data name:(NSString *)name;
+
+// This method adds a key/value pair to the dictionary that
+// will be uploaded to the crash server.
+- (void)addServerParameter:(id)value forKey:(NSString *)key;
+
@end