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

  1. #ifndef _IMMDVHDR_
  2.    #define _IMMDVHDR_
  3. /*******************************************************************************
  4. * FILE NAME: immdvhdr.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *     IMMDeviceHandler                                                         *
  9. *                                                                              *
  10. * COPYRIGHT:                                                                   *
  11. *   IBM Open Class Library                                                     *
  12. *   (C) Copyright International Business Machines Corporation 1992, 1996       *
  13. *   Licensed Material - Program-Property of IBM - All Rights Reserved.         *
  14. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  15. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  16. *                                                                              *
  17. *******************************************************************************/
  18. #include <ihandler.hpp>
  19.  
  20. class IMMDevice;
  21. class IMMCuePointEvent;
  22. class IMMDeviceEvent;
  23. class IMMPassDeviceEvent;
  24. class IMMPositionChangeEvent;
  25. class IMMNotifyEvent;
  26.  
  27. #pragma pack(4)
  28.  
  29.  
  30. class IMMDeviceHandler : public IHandler {
  31. typedef IHandler
  32.   Inherited;
  33. public:
  34. /*----------------------------- Constructors ---------------------------------*/
  35.   IMMDeviceHandler();
  36. virtual
  37.   ~IMMDeviceHandler();
  38.  
  39. /*---------------------------- Device Attachment -----------------------------*/
  40. virtual IMMDeviceHandler
  41.  &handleEventsFor       ( IMMDevice* device ),
  42.  &stopHandlingEventsFor ( IMMDevice* device );
  43.  
  44. /*-------------------------------- Event Processing --------------------------*/
  45. virtual Boolean
  46. #ifndef IC_WIN_FLAGNOP
  47.   cuePoint        (const IMMCuePointEvent&   event),
  48.   passDevice      (const IMMPassDeviceEvent& event),
  49. #endif
  50.   deviceEvent     (const IMMDeviceEvent&     event),
  51.   positionChange  (const IMMPositionChangeEvent& event);
  52.  
  53. protected:
  54. /*----------------------------- Notification ---------------------------------*/
  55. virtual Boolean
  56.   dispatchHandlerEvent    (IEvent& event);
  57.  
  58. private:
  59. /*--------------------------------- Private ----------------------------------*/
  60. virtual IMMDeviceHandler
  61.  &handleEventsFor       ( IWindow* window ),
  62.  &stopHandlingEventsFor ( IWindow* window );
  63.  
  64. }; // IMMDeviceHandler
  65.  
  66.  
  67. #pragma pack()
  68.  
  69. #endif /* _IMMDVHDR_ */
  70.