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

  1. #ifndef _IMMREMHD_
  2.    #define _IMMREMHD_
  3. /*******************************************************************************
  4. * FILE NAME: immremhd.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IMMRemovableMediaHandler                                                 *
  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 <immdvhdr.hpp>
  19.  
  20. class ITimer;
  21. class IMMRemovableMedia;
  22.  
  23. #pragma pack(4)
  24.  
  25.  
  26. class IMMRemovableMediaHandler : public IMMDeviceHandler {
  27. typedef IMMDeviceHandler
  28.   Inherited;
  29. public:
  30.  
  31. /*----------------------------- Constructors ---------------------------------*/
  32.   IMMRemovableMediaHandler();
  33. virtual
  34.   ~IMMRemovableMediaHandler();
  35.  
  36. /*-------------------------------- Media Loading -----------------------------*/
  37. virtual IMMRemovableMediaHandler
  38.   &mediaLoaded    (),
  39.   &mediaUnloaded  ();
  40.  
  41. /*---------------------------- Device Attachment -----------------------------*/
  42. virtual IMMRemovableMediaHandler
  43.  &handleEventsFor ( IMMRemovableMedia* device ),
  44.  &stopHandlingEventsFor ( IMMRemovableMedia* device );
  45. /*-------------------------------- Event Processing --------------------------*/
  46. virtual Boolean
  47.   passDevice      (const IMMPassDeviceEvent& event);
  48.  
  49. protected:
  50. /*-------------------------------- Event Dispatching -------------------------*/
  51. virtual Boolean
  52.   dispatchHandlerEvent ( IEvent& event );
  53.  
  54. private:
  55. /*--------------------------------- Private ----------------------------------*/
  56.  
  57. /*----------------------------- Hidden Functions -----------------------------*/
  58. virtual IMMRemovableMediaHandler
  59.  &handleEventsFor( IWindow* window ),
  60.  &handleEventsFor ( IMMDevice* device ),
  61.  &stopHandlingEventsFor ( IWindow* window ),
  62.  &stopHandlingEventsFor ( IMMDevice* device );
  63.  
  64. }; // IMMRemovableMediaHandler
  65.  
  66.  
  67. #pragma pack()
  68.  
  69. #endif /* _IMMREMHD_ */
  70.