syscbi.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _SYSCBI_H
  2. #define _SYSCBI_H
  3. //<?<autoheader/>
  4. #include "syscb.h"
  5. #include "syscbx.h"
  6. //?>
  7. #include <bfc/dispatch.h>
  8. #include <bfc/platform/platform.h>
  9. //#include <bfc/common.h>
  10. //derive from this one (see skincb.h for a good example)
  11. class SysCallbackI : public SysCallbackX {
  12. public:
  13. DISPATCH(101) FOURCC getEventType() { return syscb_getEventType(); }
  14. DISPATCH(200) int notify(int msg, intptr_t param1 = 0, intptr_t param2 = 0) { return syscb_notify(msg, param1, param2); }
  15. protected:
  16. NODISPATCH virtual FOURCC syscb_getEventType()=0;
  17. NODISPATCH virtual int syscb_notify(int msg, intptr_t param1 = 0, intptr_t param2 = 0)=0;
  18. // This is where you should edit the enum block
  19. /*[interface]
  20. public:
  21. // -- begin generated - edit in syscbi.h
  22. enum { // event types
  23. NONE = 0,
  24. RUNLEVEL = MK4CC('r','u','n','l'), // system runlevel
  25. CONSOLE = MK3CC('c','o','n'), // debug messages
  26. SKINCB = MK4CC('s','k','i','n'), // skin unloading/loading
  27. DB = MK2CC('d','b'), // database change messages
  28. WINDOW = MK3CC('w','n','d'), // window events
  29. GC = MK2CC('g','c'), // garbage collection event
  30. POPUPEXIT = MK4CC('p','o','p','x'), // popup exit
  31. CMDLINE = MK4CC('c','m','d','l'), // command line sent (possibly from outside)
  32. SYSMEM = MK4CC('s','y','s','m'), // api->sysMalloc/sysFree
  33. SERVICE = MK3CC('s','v','c'),
  34. };
  35. // -- end generated
  36. */
  37. };
  38. #endif // _SYSCB_I