1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.4 KiB

//
// WRTStatusClient.h
// DDWRT-Monitor
//
// Created by Spike Grobstein on 5/30/11.
// Copyright 2011 Sadistech. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface WRTStatusClient : NSObject {
BOOL wrtReachable;
@private
NSString *hostname;
NSString *protocol;
int port;
NSString *username;
NSString *password;
NSMutableData *receivedData;
NSURLRequest *theRequest;
NSURLConnection *theConnection;
id delegate;
SEL callback;
SEL errorCallback;
}
@property(nonatomic, retain) NSMutableData *receivedData;
@property(nonatomic, retain) id delegate;
@property(nonatomic) SEL callback;
@property(nonatomic) SEL errorCallback;
- (id) initWithHostname:(NSString*)new_hostname port:(int)new_port protocol:(NSString*)new_protocol username:(NSString*)new_username password:(NSString*)new_password;
- (NSMutableURLRequest*) buildRequest:(NSString*)uri;
- (NSMutableURLRequest*) requestForBandwidthViewerForInterface:(NSString*)interface;
- (void) getStatusUpdate:(NSString*)uri delegate:(id)requestDelegate callback:(SEL)requestSelector;
- (NSString*) getHostname;
- (void) setHostname:(NSString*)new_hostname;
- (NSString*) getProtocol;
- (void) setProtocol:(NSString*)new_protocol;
- (int) getPort;
- (void) setPort:(int)new_port;
- (NSString*) getUsername;
- (void) setUsername:(NSString*)new_username;
- (NSString*) getPassword;
- (void) setPassword:(NSString*)new_password;
@end