home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Other / mCD / Source / mCD_Controller.h < prev    next >
Encoding:
Text File  |  1995-03-19  |  2.1 KB  |  95 lines

  1.  
  2. #import <appkit/appkit.h>
  3. #import "scsi_cd.subproj/scsi_commands.h"
  4. #import "scsi_cd.subproj/cd_commands.h"
  5. #import "TestCD.h"
  6.  
  7. @interface mCD_Controller:Object <TestCDstarter>
  8. {
  9.     id    trackPlayTimeID;
  10.     id    trackRemTimeID;
  11.     id    curTrackID;
  12.     id  discPlayTimeID;
  13.     id    discRemTimeID;
  14.     id    endTrackID;
  15.     
  16.     id  trackRangePanel;
  17.     id  newStartTrackID;
  18.     id    newEndTrackID;
  19.  
  20.     id    cdTitleID;
  21.     id    trackInfoID;
  22.     id    loadButtonID;
  23.     id    pauseButtonID;
  24.     id    unloadButtonID;
  25.     id    mainPanel;
  26.     id    leftVolumeSliderID;
  27.     id    rightVolumeSliderID;
  28.     
  29.     id    globPrefs;
  30.     id    cd_dbase;
  31.     
  32.     id    _mCD_InfoPanel;
  33.     id  testCD_ID;
  34.     
  35.     char    rawDevName[12];
  36.     int     cd_fd;
  37.     BOOL    do_timed_updates;
  38.     struct inquiry_reply cd_Inq;
  39.     struct esense_reply cd_Ereply;    /* used by most CD-drive commands */
  40.     struct esense_reply rcp_Ereply;    /* for calls to read-cur-position */
  41.     struct esense_reply tur_Ereply;    /* for calls to test-unit-ready */
  42.  
  43.     struct cd_volset_reply cd_volumes;
  44.     struct timeval    cd_Tval;
  45.     struct cd_toc    toc;
  46.     
  47.     struct rsc_cur_pos_reply cd_curpos;
  48.     
  49.     DPSTimedEntry teNum;
  50.     double    updatePeriod;
  51.     int        curCdIndex, curAbsSecond;
  52.     
  53.     char    tempTitle[150];
  54.     char    holdCatNumber[MEDIA_CATNUM_LENGTH +1]; /* for now... */
  55. }
  56.  
  57. - copyMcdEntry:sender;
  58. - copyMcdEntryAsObjC:sender;
  59. - pasteMcdEntry:sender;
  60.  
  61. - ejectCD:sender;
  62. - loadCD:sender;
  63. - pauseCD:sender;
  64. - setLeftVolume:sender;
  65. - setRightVolume:sender;
  66. - setPlayVolumes:(int) leftVol :(int) rightVol;
  67. - showInfoPanel:sender;
  68. - stopCD:sender;
  69. - showTestCD:sender;
  70. - unloadCD:sender;
  71. - updateCdStatus:sender;
  72.  
  73. - playCD:sender;
  74. - playTrackRange:sender;
  75. - showSelectTrackRange:sender;
  76. - goNextTrack:sender;
  77. - goPreviousTrack:sender;
  78. - playTracks:(int)startTrack to: (int) endTrack;
  79.  
  80. #define FROM_CD_APP_DID_INIT 0
  81. #define FROM_LOAD_CD_REQUEST 1
  82. - (BOOL)openCdFd:(BOOL)tryToLoad;
  83. - displayCdInfo;
  84.  
  85. - fillTocTitles;
  86.  
  87. /* one that PrefController will need */
  88. - getVolumes:(int *)leftVolPtr :(int *)rightVolPtr;
  89.  
  90. /* for automatic update of CDstatus */
  91. - EventLoopInit;
  92. - EventLoop;
  93.  
  94. @end
  95.