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

  1. #ifndef _IMMSPEED_
  2.    #define _IMMSPEED_
  3. /*******************************************************************************
  4. * FILE NAME:  immspeed.hpp                                                     *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IMMSpeed                                                                 *
  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 <ivbase.hpp>
  19.  
  20. #pragma pack(4)
  21.  
  22.  
  23. class IMMSpeed : public IVBase {
  24. typedef IVBase
  25.   Inherited;
  26. public:
  27. enum Format
  28. {
  29.   percentage      = 3,
  30.   framesPerSecond
  31. };
  32.  
  33. /*----------------------------- Constructors ---------------------------------*/
  34.   IMMSpeed  ( unsigned long percent = 100 );
  35.   IMMSpeed  ( Format format,
  36.               unsigned long speed );
  37. virtual
  38.   ~IMMSpeed ();
  39.  
  40. /*-------------------------------- Format ------------------------------------*/
  41. Format
  42.   format () const;
  43. virtual unsigned long
  44.   speed  () const;
  45.  
  46. private:
  47. /*--------------------------------- Private ----------------------------------*/
  48. Format
  49.   fFormat;
  50. unsigned long
  51.   fSpeed;
  52. }; // IMMSpeed
  53.  
  54.  
  55. #pragma pack()
  56.  
  57. #endif /* _IMMSPEED_ */
  58.