home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / driverkit / IOAddressRanger.h < prev    next >
Text File  |  1993-04-26  |  986b  |  48 lines

  1. /*
  2. ** IOAddressRanger - Input validation for a range of addresses.
  3. **
  4. ** Copyright 1992 by NeXT Computer, Inc.  All Rights Reserved.
  5. */
  6.  
  7. #import <appkit/appkit.h>
  8. #import <driverkit/IODeviceInspector.h>
  9.  
  10. @interface Object (IORangerDelegate)
  11. - rangeDidChange:sender;
  12. @end
  13.  
  14. @interface IOAddressRanger:Object
  15. {
  16. @private
  17.     id    rangeText;
  18.     id    delegate;
  19.     id  statusButton;    /* On for conflict */
  20.     id  sizeText;    /* Shows size of range */
  21.     
  22.     unsigned long  lowAddr, highAddr;
  23.     unsigned long  rangeLength, rangeStart;
  24.     int              conflictState;
  25.     BOOL       continuous;
  26. }
  27.  
  28. - setAddressLimits:(unsigned long)low :(unsigned long)high;
  29.  
  30. - setRangeLength:(unsigned long)rlen;
  31. - (unsigned long) rangeLength;
  32.  
  33. - setStartAddress:(unsigned long)addr;
  34. - (unsigned long) startAddress;
  35.  
  36. - setDelegate:anObj;
  37. - delegate;
  38.  
  39. - checkText:sender;
  40. - minus:sender;
  41. - plus:sender;
  42.  
  43. /* YES if conflicts found */
  44.  
  45. - (BOOL) checkRangesForConflicts:(IOAddressRange *)regs num:(unsigned)nregs;
  46.  
  47. @end
  48.