home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / CD-ROM Tools / CDPlay / Include / amigaapp.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-27  |  1.6 KB  |  55 lines

  1. //////////////////////////////////////////////////////////////////////////////
  2. // amigaapp.hpp
  3. //
  4. // Jeffry A Worth
  5. // November 10, 1995
  6. //////////////////////////////////////////////////////////////////////////////
  7.  
  8. #ifndef __AMIGAAPP_HPP__
  9. #define __AMIGAAPP_HPP__
  10.  
  11. //////////////////////////////////////////////////////////////////////////////
  12. // INCLUDES
  13. #include <proto/intuition.h>
  14. #include <proto/exec.h>
  15. #include <proto/graphics.h>
  16. #include <proto/dos.h>
  17. #include <proto/reqtools.h>
  18.  
  19. #include <intuition/intuition.h>
  20. #include <libraries/reqtools.h>
  21. #include <exec/types.h>
  22. #include <stdio.h>
  23.  
  24. #include "aframe:include/node.hpp"
  25.  
  26. //////////////////////////////////////////////////////////////////////////////
  27. // APPLICATION LIBRARIES GLOBALS
  28. extern struct IntuitionBase *IntuitionBase;
  29. extern struct ReqToolsBase *ReqToolsBase;
  30. extern struct Library *BattClockBase;
  31.  
  32. //////////////////////////////////////////////////////////////////////////////
  33. // Amiga Foundation Class Application
  34.  
  35. class AFAmigaApp
  36. {
  37. public:
  38.   AFAmigaApp();                // Default Constructor
  39.   ~AFAmigaApp();            // Default Destructor
  40.  
  41. // Methods
  42.   virtual BOOL OpenLibraries();        // Open System Libraries
  43.   virtual void CloseLibraries();    // Close System Libraries
  44.   virtual int InitApp();        // Init Applications routines
  45.   virtual int RunApp();            // Waits for events and reacts to them
  46.  
  47. // Properties
  48.   LONG m_SigBits;            // Application SigBits
  49.   AFNode *m_pwindows;            // Node List of windows
  50.   AFNode *m_pports;            // Node List of ports
  51. };
  52.  
  53. //////////////////////////////////////////////////////////////////////////////
  54. #endif // __AMIGAAPP_HPP__
  55.