home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 29 Fixes_o / 29-Fixes_o.zip / bet2f1.zip / immremhd.hpp next >
Text File  |  1995-05-04  |  3KB  |  72 lines

  1. #ifndef _IMMREMHD_
  2.    #define _IMMREMHD_
  3. /*******************************************************************************
  4. * FILE NAME: immremhd.hpp                                                      *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the class(es):                                              *
  8. *     IMMRemoveableMediaHandler -  The base removeableMedia handler class and  *
  9. *                                  provides behavior common for all removeable *
  10. *                                  devices.                                    *
  11. *                                                                              *
  12. * COPYRIGHT:                                                                   *
  13. *   Licensed Materials - Property of IBM                                       *
  14. *   (C) Copyright IBM Corporation 1992, 1993, 1994                             *
  15. *   All Rights Reserved                                                        *
  16. *   US Government Users Restricted Rights - Use, duplication, or disclosure    *
  17. *   restricted by GSA ADP Schedule Contract with IBM Corp.                     *
  18. *                                                                              *
  19. *******************************************************************************/
  20. #ifndef _IMMDVHDR_
  21.    #include <immdvhdr.hpp>
  22. #endif
  23.  
  24. // Forward declarations for other classes:
  25. class ITimer;
  26. class IMMRemoveableMedia;
  27.  
  28. /*----------------------------------------------------------------------------*/
  29. /* Align classes on four byte boundary.                                       */
  30. /*----------------------------------------------------------------------------*/
  31. #pragma pack(4)
  32.  
  33. class IMMRemoveableMediaHandler : public IMMDeviceHandler {
  34. typedef IMMDeviceHandler
  35.   Inherited;
  36. /****************************************************************************
  37. * The IMMRemoveableMediaHandler class is the base handler class for         *
  38. * removeable devices.                                                       *
  39. ****************************************************************************/
  40. public:
  41.  
  42. /*----------------------------- Constructors/Destructor ----------------------*/
  43.   IMMRemoveableMediaHandler();
  44. virtual
  45.   ~IMMRemoveableMediaHandler();
  46.  
  47. /*-------------------------------- Event Processing --------------------------*/
  48. virtual Boolean
  49.   passDevice      (const IMMPassDeviceEvent& event);
  50.  
  51. private:
  52. /*--------------------------------- Private ----------------------------------*/
  53. ITimer
  54.   *fMediaTimer;
  55. void
  56.   checkMedia      (unsigned long timerId);
  57. Boolean
  58.   fDiscIsInDrive;
  59.  
  60. IMMRemoveableMedia*
  61.   fDevice;
  62.  
  63. };
  64.  
  65.  
  66. /*----------------------------------------------------------------------------*/
  67. /* Resume compiler default packing.                                           */
  68. /*----------------------------------------------------------------------------*/
  69. #pragma pack()
  70.  
  71. #endif /* _IMMREMHD_ */
  72.