Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (46 sloc) 1.7 KB
/**
* 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
You can’t perform that action at this time.