1
0

sprivate.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #pragma once
  2. #include <api/script/api_maki.h>
  3. #include <api/script/script.h>
  4. #include <api/script/objcontroller.h>
  5. #include <api/script/objects/rootobj.h>
  6. #include <api/script/objects/rootobject.h>
  7. class PDownloadCallback;
  8. #define SPRIVATE_SCRIPTPARENT RootObjectInstance
  9. class SPrivateScriptObjectController : public ScriptObjectControllerI
  10. {
  11. public:
  12. virtual const wchar_t *getClassName();
  13. virtual const wchar_t *getAncestorClassName();
  14. virtual ScriptObjectController *getAncestorController();
  15. virtual int getNumFunctions();
  16. virtual const function_descriptor_struct *getExportedFunctions();
  17. virtual GUID getClassGuid();
  18. virtual ScriptObject *instantiate();
  19. virtual int getInstantiable();
  20. virtual int getReferenceable() {return 0;}
  21. virtual void destroy(ScriptObject *o);
  22. virtual void *encapsulate(ScriptObject *o);
  23. virtual void deencapsulate(void *o);
  24. private:
  25. static function_descriptor_struct exportedFunction[];
  26. };
  27. extern ScriptObjectController *SPrivateController;
  28. class SPrivate : public SPRIVATE_SCRIPTPARENT
  29. {
  30. public:
  31. SPrivate();
  32. virtual ~SPrivate();
  33. PDownloadCallback * dlcb;
  34. public:
  35. static scriptVar vcpu_updateLinks(SCRIPT_FUNCTION_PARAMS, ScriptObject *o, scriptVar version, scriptVar bversion);
  36. static scriptVar vcpu_onLinksUpdated(SCRIPT_FUNCTION_PARAMS, ScriptObject *o);
  37. };