home *** CD-ROM | disk | FTP | other *** search
/ Netscape Plug-Ins Developer's Kit / Netscape_Plug-Ins_Developers_Kit.iso / source / Chap09 / NPTREE / NPTREE.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-17  |  715 b   |  52 lines

  1. //
  2. // npcpumon.h 
  3. //
  4.  
  5. #ifndef _NPCPUMON_H_
  6. #define _NPCPUMON_H_
  7.  
  8.  
  9. class CPluginWindow;
  10.  
  11. // CCpuMon class
  12.  
  13. class CCpuMon
  14. {
  15. // Construction
  16. public:
  17.     CCpuMon (NPP pInstance);
  18.     ~CCpuMon ();
  19.  
  20. // Attributes
  21. public:
  22.  
  23.     CPluginWindow*     pWindow;
  24.     NPStream*        pStream;
  25.     NPP                pInstance;
  26.     uint16            mode;
  27.  
  28. private:
  29.  
  30.     char    ProgramURL[1024];
  31.     BOOL    bRunningCGIProgram;
  32.     
  33. // Operations
  34. public:
  35.         
  36.     BOOL     Open (NPStream*    pStream);    // Called from NPP_NewStream
  37.     BOOL     Close (void);    // Called from NPP_Destroy
  38.     
  39.     BOOL    EndOfStream (void);    // Called from NPP_DestroyStream
  40.     BOOL    GotFileName    (const char* fname);
  41.     BOOL    RequestUpdate (void);
  42.     
  43. private:
  44.  
  45. };
  46.  
  47. #endif /* _NPCPUMON_H_ */
  48.  
  49.  
  50.  
  51.  
  52.