Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

  1. /*
  2. * REVISIONS:
  3. * pcy30Nov92: Added header
  4. * ane22Dec92: Added GetHost member function
  5. * ane18Jan93: Added the data logger
  6. * ane21Jan93: Added the error logger
  7. * ane03Feb93: Added params to CreateXXXController routines
  8. * rct07Feb93: removed some VOIDs..split off client & server apps
  9. * tje20Feb93: Conditionally removed ErrorLogger for Window's version
  10. * cad10Dec93: added transitem get/set
  11. * ram21Mar94: Removed old windows stuff
  12. * mwh05May94: #include file madness , part 2
  13. */
  14. #ifndef _MAINAPP_H
  15. #define _MAINAPP_H
  16. #include "apc.h"
  17. #include "_defs.h"
  18. #include "update.h"
  19. _CLASSDEF(MainApplication)
  20. _CLASSDEF(TransactionItem)
  21. _CLASSDEF(TimerManager)
  22. _CLASSDEF(ConfigManager)
  23. _CLASSDEF(ErrorLogger)
  24. class MainApplication : public UpdateObj
  25. {
  26. public:
  27. virtual INT Start() =0;
  28. virtual VOID Idle() =0;
  29. virtual VOID Quit() =0;
  30. virtual INT Get(INT code,CHAR *value)=0;
  31. virtual INT Get(PTransactionItem)=0;
  32. virtual INT Set(INT code,const PCHAR value)=0;
  33. virtual INT Set(PTransactionItem)=0;
  34. protected:
  35. PTimerManager theTimerManager;
  36. PConfigManager theConfigManager;
  37. PErrorLogger theErrorLog;
  38. MainApplication();
  39. virtual ~MainApplication();
  40. };
  41. /*c-*/
  42. #endif