home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / PowerPlant / LDelayedTask / UDelayedTaskQueue.h < prev    next >
Encoding:
Text File  |  1995-08-28  |  1.5 KB  |  48 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    UDelayedTaskQueue.h                © 1995, Éric Forget. All rights reserved.
  3. // ===========================================================================
  4. //    
  5. //    ************************************************************************
  6. //    *                                                                      *
  7. //    *    Before using this code you should read the "License Agreement"     *
  8. //    *    document and agree with it.                                        *
  9. //    *                                                                      *
  10. //    ************************************************************************
  11. //
  12. //    Instruction and usage notes are in the UDelayedTaskQueue.cp file.
  13. //
  14. // ---------------------------------------------------------------------------
  15.  
  16.  
  17. #pragma once
  18.  
  19. #include <PP_Prefix.h>
  20. #include "LTask.h"
  21.  
  22.  
  23. class    LDynamicArray;
  24. class    LDelayedTask;
  25.  
  26.  
  27. // ---------------------------------------------------------------------------
  28. //        • Class UDelayedTaskQueue
  29. // ---------------------------------------------------------------------------
  30.  
  31. class    UDelayedTaskQueue    : LPeriodical {
  32.  
  33. friend    LTask;
  34.  
  35. public:
  36.                                 UDelayedTaskQueue();
  37.     virtual                        ~UDelayedTaskQueue();
  38.     
  39.     static    void                AddTask(LDelayedTask *inTask);
  40.     static    void                RemoveTask(LDelayedTask *inTask);
  41.     
  42.     virtual    void                SpendTime(const EventRecord &inMacEvent);
  43.  
  44. protected:
  45.     static    LDynamicArray        *sTaskQ;
  46.     static    UDelayedTaskQueue    *sDelayedTaskQueue;
  47. };
  48.