1
0

svc_scriptobj.h 722 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _SVC_SCRIPTOBJECT_H
  2. #define _SVC_SCRIPTOBJECT_H
  3. #include <bfc/dispatch.h>
  4. #include <api/service/services.h>
  5. class ScriptObjectController;
  6. class svc_scriptObject : public Dispatchable {
  7. public:
  8. static FOURCC getServiceType() { return WaSvc::SCRIPTOBJECT; }
  9. ScriptObjectController *getController(int n);
  10. void onRegisterClasses(ScriptObjectController *rootController);
  11. enum {
  12. GETCONTROLLER=10,
  13. ONREGISTER=20,
  14. };
  15. };
  16. inline ScriptObjectController *svc_scriptObject::getController(int n) {
  17. return _call(GETCONTROLLER, (ScriptObjectController *)0, n);
  18. }
  19. inline void svc_scriptObject::onRegisterClasses(ScriptObjectController *rootController) {
  20. _voidcall(ONREGISTER, rootController);
  21. }
  22. #endif