home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextLibrary / Documentation / NextDev / Examples / DriverKit / DriverInspector / IOBeepInspector.h < prev    next >
Encoding:
Text File  |  1995-02-01  |  1.7 KB  |  50 lines

  1. // IOBeepInspector.h
  2. // The Beep driver inspector and general example 
  3. // Copyright 1993 by NeXT, Incorporated.  All Rights Reserved.
  4.  
  5. #import <driverkit/IODeviceInspector.h>
  6. #import <driverkit/IODeviceMaster.h>
  7.  
  8. @interface IOBeepInspector : Object <IOConfigurationInspector>
  9. {
  10.     View    *beepView;        // The invisible box around our controls
  11.     Slider    *frequencySlider;    // Outlets to the controls
  12.     TextField    *frequencyField;
  13.     Slider    *durationSlider;
  14.     TextField    *durationField;
  15.     Button    *styleButton;        // The trigger to the popup
  16.     PopUpList    *stylePopup;        // We set this programatically
  17.  
  18.     NXStringTable *table;        // Passed in during setTable:
  19.     IODeviceMaster *devMaster;        // Used to get info to/from the driver
  20.     IOObjectNumber myTag;        // Used by devMaster
  21.     IOCharParameter durationString;    // These come in handy
  22.     IOCharParameter pitchString;
  23.     IOCharParameter styleString;
  24.     unsigned maxFreq;            // So we don't try anything foolish...
  25.     unsigned minFreq;
  26.     unsigned maxDuration;
  27.     unsigned minDuration;
  28. }
  29.  
  30. // A couple of classics
  31. - init;
  32. - free;
  33.  
  34. // These are required to conform to the IOConfigurationInspector protocol
  35. - setTable: (NXStringTable *)instance;
  36. - (View *)inspectionView;
  37. - resourcesChanged: (IOResources *)rsrc;
  38.  
  39. // Action methods for the controls
  40. - frequencyDidChange: sender;
  41. - durationDidChange: sender;
  42. - styleDidChange: sender;
  43.  
  44. // These are used to interact with the live driver
  45. - (IOReturn)getIntValue: (unsigned *)value forParameter: (IOParameterName)param;
  46. - (IOReturn)getStringValue: (IOCharParameter)value forParameter: (IOParameterName)param;
  47. - setIntValue: (unsigned *)value forParameter: (IOParameterName)param;
  48. - setStringValue: (IOCharParameter)value forParameter: (IOParameterName)param;
  49.  
  50. @end