forked from chockenberry/iPulse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAirportInfo.h
executable file
·45 lines (35 loc) · 952 Bytes
/
AirportInfo.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// AirportInfo.m - Wireless History Container Class
//
#import <Cocoa/Cocoa.h>
#import <CoreWLAN/CoreWLAN.h>
typedef struct WirelessData
{
BOOL wirelessAvailable;
BOOL wirelessHasPower;
double wirelessLevel;
UInt16 wirelessClientMode;
UInt8 wirelessMacAddress[6]; /* MAC address of wireless access point. */
SInt8 wirelessName[34]; /* Name of current (or wanted?) network. */
SInt16 wirelessSignal; /* Signal level */
SInt16 wirelessNoise; /* Noise level */
} WirelessData, *WirelessDataPtr;
@interface AirportInfo : NSObject
{
int size;
int inptr;
int outptr;
WirelessDataPtr wirelessData;
BOOL attached;
BOOL isAvailable;
CWInterface *interface;
}
- (AirportInfo *)initWithCapacity:(unsigned)numItems;
- (BOOL)isAvailable;
- (void)refresh;
- (void)startIterate;
- (BOOL)getNext:(WirelessDataPtr)ptr;
- (void)getCurrent:(WirelessDataPtr)ptr;
- (void)getLast:(WirelessDataPtr)ptr;
- (int)getSize;
@end