rootobject.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // ----------------------------------------------------------------------------
  2. // Generated by InterfaceFactory [Fri May 16 23:15:13 2003]
  3. //
  4. // File : rootobject.h
  5. // Class : RootObject
  6. // class layer : Dispatchable Interface
  7. // ----------------------------------------------------------------------------
  8. #ifndef __ROOTOBJECT_H
  9. #define __ROOTOBJECT_H
  10. #include <bfc/dispatch.h>
  11. #include <bfc/common.h>
  12. class RootObjectCallback;
  13. class ScriptObject;
  14. #include <api/script/objects/rootobjcontroller.h>
  15. // ----------------------------------------------------------------------------
  16. class RootObject: public Dispatchable {
  17. protected:
  18. RootObject() {}
  19. ~RootObject() {}
  20. public:
  21. const wchar_t *rootobject_getClassName();
  22. void rootobject_notify(const wchar_t *s, const wchar_t *t, int u, int v);
  23. ScriptObject *rootobject_getScriptObject();
  24. void rootobject_setScriptObject(ScriptObject *obj);
  25. void rootobject_addCB(RootObjectCallback *cb);
  26. protected:
  27. enum {
  28. ROOTOBJECT_ROOTOBJECT_GETCLASSNAME = 10,
  29. ROOTOBJECT_ROOTOBJECT_NOTIFY = 20,
  30. ROOTOBJECT_ROOTOBJECT_GETSCRIPTOBJECT = 30,
  31. ROOTOBJECT_ROOTOBJECT_SETSCRIPTOBJECT = 40,
  32. ROOTOBJECT_ROOTOBJECT_ADDCB = 50,
  33. };
  34. };
  35. // ----------------------------------------------------------------------------
  36. inline const wchar_t *RootObject::rootobject_getClassName() {
  37. const wchar_t *__retval = _call(ROOTOBJECT_ROOTOBJECT_GETCLASSNAME, (const wchar_t *)0);
  38. return __retval;
  39. }
  40. inline void RootObject::rootobject_notify(const wchar_t *s, const wchar_t *t, int u, int v) {
  41. _voidcall(ROOTOBJECT_ROOTOBJECT_NOTIFY, s, t, u, v);
  42. }
  43. inline ScriptObject *RootObject::rootobject_getScriptObject() {
  44. ScriptObject *__retval = _call(ROOTOBJECT_ROOTOBJECT_GETSCRIPTOBJECT, (ScriptObject *)NULL);
  45. return __retval;
  46. }
  47. inline void RootObject::rootobject_setScriptObject(ScriptObject *obj) {
  48. _voidcall(ROOTOBJECT_ROOTOBJECT_SETSCRIPTOBJECT, obj);
  49. }
  50. inline void RootObject::rootobject_addCB(RootObjectCallback *cb) {
  51. _voidcall(ROOTOBJECT_ROOTOBJECT_ADDCB, cb);
  52. }
  53. // ----------------------------------------------------------------------------
  54. #endif // __ROOTOBJECT_H