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

  1. #ifndef _IMMTTIME_
  2.    #define _IMMTTIME_
  3. /*******************************************************************************
  4. * FILE NAME:  immttime.hpp                                                     *
  5. *                                                                              *
  6. * DESCRIPTION:                                                                 *
  7. *   Declaration of the classes:                                                *
  8. *     IMMTrackMinSecFrameTime                                                  *
  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 <immtime.hpp>
  19. #include <istring.hpp>
  20.  
  21. class IMMAudioCDContents;
  22.  
  23. #pragma pack(4)
  24.  
  25.  
  26. class IMMTrackMinSecFrameTime : public IMMTime {
  27. typedef IMMTime
  28.   Inherited;
  29. public:
  30. /*----------------------------- Constructors ---------------------------------*/
  31.   IMMTrackMinSecFrameTime  ( const IMMTrackMinSecFrameTime& time );
  32.   IMMTrackMinSecFrameTime  ( IMMAudioCDContents& contents,
  33.                              unsigned long value );
  34.   IMMTrackMinSecFrameTime  ( IMMAudioCDContents& contents,
  35.                              unsigned long track,
  36.                              unsigned long minutes,
  37.                              unsigned long seconds,
  38.                              unsigned long frames);
  39. virtual
  40.   ~IMMTrackMinSecFrameTime ();
  41.  
  42. IMMTrackMinSecFrameTime
  43.   &operator =  (const IMMTrackMinSecFrameTime& time);
  44.  
  45. /*-------------------------- Conversions -------------------------------------*/
  46. virtual operator unsigned long () const;
  47.  
  48. /*-------------------------- Operators ---------------------------------------*/
  49. IMMTrackMinSecFrameTime
  50.   &operator += (const IMMTime& time),
  51.   &operator -= (const IMMTime& time);
  52.  
  53. IMMTrackMinSecFrameTime
  54.   operator +   (const IMMTime& time),
  55.   operator -   (const IMMTime& time);
  56.  
  57. /*-------------------------- Diagnostics -------------------------------------*/
  58. virtual IString
  59.   asString    () const;
  60.  
  61. /*-------------------------- Attributes --------------------------------------*/
  62. virtual unsigned long
  63.   frames       () const,
  64.   minutes      () const,
  65.   seconds      () const,
  66.   track        () const;
  67.  
  68. private:
  69. /*--------------------------------- Private ----------------------------------*/
  70. IMMTime
  71.   fStart,
  72.   fEnd;
  73. unsigned long
  74.   fTrackMinSecFrame;
  75. };  // IMMTrackMinSecFrameTime
  76.  
  77.  
  78. #pragma pack()
  79.  
  80. #endif /* _IMMTTIME_ */
  81.