Go to the documentation of this file.00001
00002
00003
00004
00005 #import <Foundation/Foundation.h>
00006
00014 typedef NS_ENUM(NSInteger, GDLogUploadState)
00015 {
00020 GDLogUploadStateIdle = 0,
00021
00024 GDLogUploadStateInProgress = 100,
00025
00028 GDLogUploadStateCompleted = 200,
00029
00034 GDLogUploadStateCancelled = 300,
00035
00038 GDLogUploadStateSuspended = 400,
00039
00042 GDLogUploadStateResumed = 500,
00043 };
00044
00051 extern NSString * const GDLogUploadNotification;
00052
00060 extern const NSTimeInterval GDLogManagerDetailedMaximumDuration;
00061
00121 @interface GDLogManager : NSObject
00122
00127 @property (nonatomic, readonly) GDLogUploadState uploadState;
00128
00134 @property (nonatomic, readonly) NSInteger uploadBytesSent;
00135
00140 @property (nonatomic, readonly) NSInteger uploadBytesTotal;
00141
00150 + (instancetype)sharedInstance;
00151
00181 - (BOOL)startUpload;
00182
00193 - (BOOL)cancelUpload;
00194
00205 - (BOOL)suspendUpload;
00206
00216 - (BOOL)resumeUpload;
00217
00263 - (BOOL)detailedLoggingFor:(NSTimeInterval) duration;
00264
00265 #if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
00266
00284 - (void) openLogUploadUI;
00285 #endif
00286 @end