home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 29 Fixes_o
/
29-Fixes_o.zip
/
bet2f1.zip
/
immremhd.hpp
next >
Wrap
Text File
|
1995-05-04
|
3KB
|
72 lines
#ifndef _IMMREMHD_
#define _IMMREMHD_
/*******************************************************************************
* FILE NAME: immremhd.hpp *
* *
* DESCRIPTION: *
* Declaration of the class(es): *
* IMMRemoveableMediaHandler - The base removeableMedia handler class and *
* provides behavior common for all removeable *
* devices. *
* *
* COPYRIGHT: *
* Licensed Materials - Property of IBM *
* (C) Copyright IBM Corporation 1992, 1993, 1994 *
* All Rights Reserved *
* US Government Users Restricted Rights - Use, duplication, or disclosure *
* restricted by GSA ADP Schedule Contract with IBM Corp. *
* *
*******************************************************************************/
#ifndef _IMMDVHDR_
#include <immdvhdr.hpp>
#endif
// Forward declarations for other classes:
class ITimer;
class IMMRemoveableMedia;
/*----------------------------------------------------------------------------*/
/* Align classes on four byte boundary. */
/*----------------------------------------------------------------------------*/
#pragma pack(4)
class IMMRemoveableMediaHandler : public IMMDeviceHandler {
typedef IMMDeviceHandler
Inherited;
/****************************************************************************
* The IMMRemoveableMediaHandler class is the base handler class for *
* removeable devices. *
****************************************************************************/
public:
/*----------------------------- Constructors/Destructor ----------------------*/
IMMRemoveableMediaHandler();
virtual
~IMMRemoveableMediaHandler();
/*-------------------------------- Event Processing --------------------------*/
virtual Boolean
passDevice (const IMMPassDeviceEvent& event);
private:
/*--------------------------------- Private ----------------------------------*/
ITimer
*fMediaTimer;
void
checkMedia (unsigned long timerId);
Boolean
fDiscIsInDrive;
IMMRemoveableMedia*
fDevice;
};
/*----------------------------------------------------------------------------*/
/* Resume compiler default packing. */
/*----------------------------------------------------------------------------*/
#pragma pack()
#endif /* _IMMREMHD_ */