home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / immevt.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-02-22  |  5.2 KB  |  213 lines

  1. #ifndef _IMMEVT_
  2.    #define _IMMEVT_
  3. /*******************************************************************************
  4. * FILE NAME:  immevt.hpp                                                       *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IMMNotifyEvent                                                           *
  9. *     IMMPassDeviceEvent                                                       *
  10. *     IMMPositionChangeEvent                                                   *
  11. *     IMMCuePointEvent                                                         *
  12. *     IMMDeviceEvent                                                           *
  13. *                                                                              *
  14. * COPYRIGHT:                                                                   *
  15. *   IBM Open Class Library                                                     *
  16. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  17. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  18. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  19. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  20. *                                                                              *
  21. *******************************************************************************/
  22. #include <ievent.hpp>
  23.  
  24. class IString;
  25. class IMMTime;
  26. class IMMDevice;
  27.  
  28. #pragma pack(4)
  29.  
  30.  
  31. class IMMNotifyEvent : public IEvent {
  32. typedef IEvent
  33.   Inherited;
  34. public:
  35. /*----------------------------- Constructors ---------------------------------*/
  36.   IMMNotifyEvent  (const IEvent& event);
  37.  
  38. virtual
  39.   ~IMMNotifyEvent ();
  40.  
  41. /*-------------------------------- Command -----------------------------------*/
  42. enum Command
  43. {
  44.   unknownCommand = 0,
  45.   open = 1,
  46.   close,
  47.   escape,
  48.   play,
  49.   seek,
  50.   stop,
  51.   pause,
  52.   info,
  53.   getDeviceCapabilities,
  54.   status,
  55.   spin,
  56.   set,
  57.   step,
  58.   record,
  59.   sysInfo,
  60.   save,
  61.   cue,
  62.   update,
  63.   setCuePoint,
  64.   setPositionAdvise,
  65.   setSyncOffset,
  66.   load,
  67.   acquireDevice,
  68.   releaseDevice,
  69.   masterAudio,
  70.   getTableOfContents,
  71.   deviceSettings,
  72.   connector,
  73.   resume,
  74.   connectorInfo,
  75.   defaultConnection,
  76.   connection,
  77.   group,
  78.   capture = 40,
  79.   freeze,
  80.   getImageBuffer,
  81.   getImagePalette,
  82.   put,
  83.   realize,
  84.   rewind,
  85.   restore,
  86.   setImageBuffer,
  87.   setImagePalette,
  88.   unfreeze,
  89.   where,
  90.   windowCommand,
  91.   deleteCommand,
  92.   cut,
  93.   paste,
  94.   copy,
  95.   redo,
  96.   undo,
  97. // Win32 MCI specific commands
  98.   breakCommand,
  99.   monitor,
  100.   reserve,
  101.   setAudioCommand,
  102.   signal,
  103.   setVideoCommand,
  104.   qualityCommand,
  105.   listCommand,
  106.   configureCommand
  107. };
  108.  
  109. Command
  110.   command() const;
  111.  
  112. /*----------------------------- Success Code ---------------------------------*/
  113. enum SuccessCode
  114. {
  115.   successful,
  116.   preempted,
  117.   aborted,
  118.   error
  119. };
  120.  
  121. SuccessCode
  122.   successCode         () const;
  123.  
  124. /*----------------------------- Event Parsing Members ------------------------*/
  125. IMMDevice
  126.   *device             () const;
  127. unsigned short
  128.   errorId             () const,
  129.   userParameter       () const;
  130.  
  131. static IString
  132.   errorText           (unsigned long errorCode);
  133.  
  134. }; // IMMNotifyEvent
  135.  
  136.  
  137. class IMMPassDeviceEvent : public IEvent {
  138. typedef IEvent
  139.   Inherited;
  140. public:
  141. /*----------------------------- Constructors ---------------------------------*/
  142.   IMMPassDeviceEvent  (const IEvent& event);
  143. virtual
  144.   ~IMMPassDeviceEvent ();
  145.  
  146. /*----------------------------- Event Parsing Members ------------------------*/
  147. IMMDevice
  148.   *device    () const;
  149.  
  150. Boolean
  151.   isGainingUse () const;
  152. }; // IMMPassDeviceEvent
  153.  
  154. class IMMPositionChangeEvent : public IEvent {
  155. typedef IEvent
  156.   Inherited;
  157. public:
  158. /*----------------------------- Constructors ---------------------------------*/
  159.   IMMPositionChangeEvent  (const IEvent& event);
  160. virtual
  161.   ~IMMPositionChangeEvent ();
  162.  
  163. /*----------------------------- Event Parsing Members ------------------------*/
  164. IMMDevice
  165.   *device       () const;
  166. unsigned short
  167.   userParameter () const;
  168. IMMTime
  169.   position      () const;
  170. }; // IMMPositionChangeEvent
  171.  
  172. class IMMCuePointEvent : public IEvent {
  173. typedef IEvent
  174.   Inherited;
  175. public:
  176. /*----------------------------- Constructors ---------------------------------*/
  177.   IMMCuePointEvent  (const IEvent& event);
  178. virtual
  179.   ~IMMCuePointEvent ();
  180.  
  181. /*----------------------------- Event Parsing Members ------------------------*/
  182. IMMDevice
  183.   *device       () const;
  184. unsigned short
  185.   userParameter () const;
  186. IMMTime
  187.   position      () const;
  188. }; // IMMCuePointEvent
  189.  
  190.  
  191. class IMMDeviceEvent : public IEvent {
  192. typedef IEvent
  193.   Inherited;
  194. public:
  195. /*----------------------------- Constructors ---------------------------------*/
  196.   IMMDeviceEvent  (const IEvent& event);
  197. virtual
  198.   ~IMMDeviceEvent ();
  199.  
  200. /*----------------------------- Event Parsing Members ------------------------*/
  201. IMMDevice
  202.   *device    () const;
  203. unsigned short
  204.   eventCode  () const;
  205. void
  206.   *eventData () const;
  207. }; // IMMDeviceEvent
  208.  
  209.  
  210. #pragma pack()
  211.  
  212. #endif /* _IMMEVT_ */
  213.