12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #ifndef _SYSCBI_H
- #define _SYSCBI_H
- #include "syscb.h"
- #include "syscbx.h"
- #include <bfc/dispatch.h>
- #include <bfc/platform/platform.h>
- class SysCallbackI : public SysCallbackX {
- public:
- DISPATCH(101) FOURCC getEventType() { return syscb_getEventType(); }
- DISPATCH(200) int notify(int msg, intptr_t param1 = 0, intptr_t param2 = 0) { return syscb_notify(msg, param1, param2); }
- protected:
- NODISPATCH virtual FOURCC syscb_getEventType()=0;
- NODISPATCH virtual int syscb_notify(int msg, intptr_t param1 = 0, intptr_t param2 = 0)=0;
- /*[interface]
- public:
- enum {
- NONE = 0,
- RUNLEVEL = MK4CC('r','u','n','l'),
- CONSOLE = MK3CC('c','o','n'),
- SKINCB = MK4CC('s','k','i','n'),
- DB = MK2CC('d','b'),
- WINDOW = MK3CC('w','n','d'),
- GC = MK2CC('g','c'),
- POPUPEXIT = MK4CC('p','o','p','x'),
- CMDLINE = MK4CC('c','m','d','l'),
- SYSMEM = MK4CC('s','y','s','m'),
- SERVICE = MK3CC('s','v','c'),
- };
- */
- };
- #endif
|