syscb.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. // ----------------------------------------------------------------------------
  2. // Generated by InterfaceFactory [Wed May 07 00:58:36 2003]
  3. //
  4. // File : syscb.h
  5. // Class : SysCallback
  6. // class layer : Dispatchable Interface
  7. // ----------------------------------------------------------------------------
  8. #ifndef __SYSCALLBACK_H
  9. #define __SYSCALLBACK_H
  10. #include <bfc/dispatch.h>
  11. #include <bfc/platform/types.h>
  12. //#include <bfc/common.h>
  13. #include <bfc/std_mkncc.h>
  14. #include <stddef.h>
  15. // ----------------------------------------------------------------------------
  16. class SysCallback: public Dispatchable {
  17. protected:
  18. SysCallback() {}
  19. ~SysCallback() {}
  20. public:
  21. public:
  22. // -- begin generated - edit in syscbi.h
  23. enum { // event types
  24. NONE = 0,
  25. RUNLEVEL = MK4CC('r','u','n','l'), // system runlevel
  26. CONSOLE = MK3CC('c','o','n'), // debug messages
  27. SKINCB = MK4CC('s','k','i','n'), // skin unloading/loading
  28. DB = MK2CC('d','b'), // database change messages
  29. WINDOW = MK3CC('w','n','d'), // window events
  30. GC = MK2CC('g','c'), // garbage collection event
  31. POPUPEXIT = MK4CC('p','o','p','x'), // popup exit
  32. CMDLINE = MK4CC('c','m','d','l'), // command line sent (possibly from outside)
  33. SYSMEM = MK4CC('s','y','s','m'), // api->sysMalloc/sysFree
  34. SERVICE = MK3CC('s','v','c'),
  35. BROWSER = MK3CC('u','r','l'), // browser open requests
  36. META = MK4CC('m','e','t','a'), // metadata changes
  37. AUTH = MK4CC('a','u','t','h'), // credentials change
  38. };
  39. // -- end generated
  40. public:
  41. FOURCC getEventType();
  42. int notify(int msg, intptr_t param1 = 0, intptr_t param2 = 0);
  43. protected:
  44. enum {
  45. SYSCALLBACK_GETEVENTTYPE = 101,
  46. SYSCALLBACK_NOTIFY = 200,
  47. };
  48. };
  49. // ----------------------------------------------------------------------------
  50. inline FOURCC SysCallback::getEventType() {
  51. FOURCC __retval = _call(SYSCALLBACK_GETEVENTTYPE, (FOURCC)NULL);
  52. return __retval;
  53. }
  54. #pragma warning(push)
  55. #pragma warning(disable:4244)
  56. inline int SysCallback::notify(int msg, intptr_t param1, intptr_t param2) {
  57. int __retval = _call(SYSCALLBACK_NOTIFY, (int)0, msg, param1, param2);
  58. return __retval;
  59. }
  60. #pragma warning(pop)
  61. // ----------------------------------------------------------------------------
  62. #endif // __SYSCALLBACK_H