blackberry.com
BlackBerry Dynamics
Runtime library for iOS applications
from the application developer portal

GDDiagnostic.h

Go to the documentation of this file.
00001 /*
00002  * (c) 2017 BlackBerry Limited. All rights reserved.
00003  *
00004  */
00005 
00006 #ifndef GDDiagnostic_h
00007 #define GDDiagnostic_h
00008 
00029 @interface GDDiagnostic : NSObject
00030 
00042 typedef NS_ENUM(NSInteger, GDDiagnosticReachabilityErrorType)
00043 {
00046     GDDiagnosticNoError=0,
00047 
00050     GDDiagnosticNoNetwork,
00051 
00054     GDDiagnosticNetworkChange,
00055 
00058     GDDiagnosticTimedOut
00059 };
00060 
00064 #pragma mark Singleton
00065 
00074 + (GDDiagnostic *)sharedInstance;
00075 
00076 
00077 #pragma mark Reachability
00078 
00094 typedef void (^GDDiagnosticReachabilityResultsBlock)(NSString* results,
00095                                                      NSInteger requestID);
00146 - (NSInteger)checkApplicationServerReachability:(NSString*)host
00147                                        withPort:(NSInteger)port
00148                                          useSSL:(BOOL)ssl
00149                             validateCertificate:(BOOL)validateCertificate
00150                                     withTimeOut:(NSTimeInterval)timeOut
00151                                   callbackBlock:(GDDiagnosticReachabilityResultsBlock)block;
00152 
00192 - (NSArray*)checkManagementConsoleReachability:(NSTimeInterval)timeOut
00193                                  callbackBlock:(GDDiagnosticReachabilityResultsBlock)block;
00194 
00195 #pragma mark Configs
00196 
00204 @property (nonatomic, readonly) NSString* currentSettings;
00205 
00206 @end
00207 
00208 #endif /* GDDiagnostic_h */