AFNetworking/QHTTPOperation/QReachabilityOperation.h

31 lines
1.2 KiB
C
Raw Normal View History

2011-05-31 16:27:34 -05:00
#import "QRunLoopOperation.h"
#include <SystemConfiguration/SystemConfiguration.h>
@interface QReachabilityOperation : QRunLoopOperation {
NSString * _hostName;
NSUInteger _flagsTargetMask;
NSUInteger _flagsTargetValue;
NSUInteger _flags;
SCNetworkReachabilityRef _ref;
}
// Initialises the operation to monitor the reachability of the specified
// host. The operation finishes when (flags & flagsTargetMask) == flagsTargetValue.
- (id)initWithHostName:(NSString *)hostName;
// Things that are configured by the init method and can't be changed.
@property (copy, readonly ) NSString * hostName;
// Things you can configure before queuing the operation.
// runLoopThread and runLoopModes inherited from QRunLoopOperation
@property (assign, readwrite) NSUInteger flagsTargetMask;
@property (assign, readwrite) NSUInteger flagsTargetValue;
// Things that change as part of the progress of the operation.
// error property inherited from QRunLoopOperation
@property (assign, readonly ) NSUInteger flags; // observable, changes on the actual run loop thread
@end