Permalink
Cannot retrieve contributors at this time
Jump to Line
Fetching contributors…
| /** | |
| * This header is generated by class-dump-z 0.1-11s. | |
| * class-dump-z is Copyright (C) 2009 by KennyTM~, licensed under GPLv3. | |
| * | |
| * Source: /System/Library/PrivateFrameworks/AppSupport.framework/AppSupport | |
| */ | |
| #import "AppSupport-Structs.h" | |
| #import <Foundation/NSObject.h> | |
| /*! | |
| CPNetworkObserver is a singleton class that allows the application to query or observe the network status. This is an | |
| Objective-C wrapper of the SCNetworkReachability module of the SystemConfiguration framework. | |
| */ | |
| @class NSLock, NSMutableDictionary; | |
| @interface CPNetworkObserver : NSObject { | |
| @private | |
| NSLock* _lock; | |
| NSMutableDictionary* _reachabilityRequests; | |
| unsigned _networkReachability; | |
| SCNetworkReachabilityRef _networkReach; | |
| CFDictionaryRef _networkObservers; | |
| SCPreferencesRef _wifiPreferences; | |
| CFDictionaryRef _wifiObservers; | |
| BOOL _networkNotified; | |
| BOOL _networkReachable; | |
| BOOL _wifiNotified; | |
| BOOL _wifiEnabled; | |
| } | |
| +(CPNetworkObserver*)sharedNetworkObserver; | |
| // inherited: -(id)init; | |
| // inherited: -(void)dealloc; | |
| -(void)addObserver:(id)observer selector:(SEL)selector forHostname:(NSString*)hostname; | |
| -(void)removeObserver:(id)observer; | |
| -(void)removeObserver:(id)observer forHostname:(NSString*)hostname; | |
| //-(void)_networkObserversInitialize; | |
| //-(void)_networkReachableCallBack:(unsigned)back; | |
| //-(void)_networkReachableFirstCallBack:(id)back; | |
| -(BOOL)isNetworkReachable; | |
| -(void)addNetworkReachableObserver:(id)observer selector:(SEL)selector; | |
| -(void)removeNetworkReachableObserver:(id)observer; | |
| //-(void)_wifiObserversInitialize; | |
| //-(void)_wifiCallBack:(unsigned)back; | |
| //-(void)_wifiFirstCallBack:(id)back; | |
| -(BOOL)isWiFiEnabled; | |
| -(void)addWiFiObserver:(id)observer selector:(SEL)selector; | |
| -(void)removeWiFiObserver:(id)observer; | |
| @end | |