From 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d Mon Sep 17 00:00:00 2001 From: Jef Date: Tue, 24 Sep 2024 14:54:57 +0200 Subject: Initial community commit --- Src/Wasabi/api/skin/feeds/feedwatcherso.h | 64 +++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Src/Wasabi/api/skin/feeds/feedwatcherso.h (limited to 'Src/Wasabi/api/skin/feeds/feedwatcherso.h') diff --git a/Src/Wasabi/api/skin/feeds/feedwatcherso.h b/Src/Wasabi/api/skin/feeds/feedwatcherso.h new file mode 100644 index 00000000..852964fa --- /dev/null +++ b/Src/Wasabi/api/skin/feeds/feedwatcherso.h @@ -0,0 +1,64 @@ +// ---------------------------------------------------------------------------- +// Generated by ScriptObjectFactory [Sat Sep 27 01:24:57 2003] +// +// File : +// Class : FeedWatcherScriptObject +// class layer : Automatic Object Scripting +// ---------------------------------------------------------------------------- + +#ifndef __FEEDWATCHERSCRIPTOBJECT_H +#define __FEEDWATCHERSCRIPTOBJECT_H + + +#include +#include + +#define FEEDWATCHER_SCRIPTPARENT RootObjectInstance +#define FEEDWATCHER_SCRIPTPARENTCLASS L"Object" + +class svc_textFeed; + +// ---------------------------------------------------------------------------- +// {A5376FA1-4E94-411a-83F6-05EC5EEA5F0A} +static const GUID FeedWatcherGuid = +{ 0xa5376fa1, 0x4e94, 0x411a, { 0x83, 0xf6, 0x5, 0xec, 0x5e, 0xea, 0x5f, 0xa } }; + +// ----------------------------------------------------------------------------- + +class FeedWatcherScriptObject : public FEEDWATCHER_SCRIPTPARENT { +public: + FeedWatcherScriptObject(); + virtual ~FeedWatcherScriptObject(); + + void feedWatcherScriptObject_init(); + +public: + virtual void feedwatcher_onFeedChange(const wchar_t *data); +}; + +// ----------------------------------------------------------------------------- +class FeedWatcherScriptController : public ScriptObjectControllerI { +public: + + virtual const wchar_t *getClassName(); + virtual const wchar_t *getAncestorClassName(); + virtual ScriptObjectController *getAncestorController(); + virtual int getNumFunctions(); + virtual const function_descriptor_struct *getExportedFunctions(); + virtual GUID getClassGuid(); + virtual ScriptObject *instantiate(); + virtual void destroy(ScriptObject *o); + virtual void *encapsulate(ScriptObject *o); + virtual void deencapsulate(void *o); + + static scriptVar script_setFeed(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO, scriptVar feedid); + static scriptVar script_releaseFeed(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO); + static scriptVar script_feedwatcher_onFeedChange(SCRIPT_FUNCTION_PARAMS, ScriptObject *_pSO, scriptVar data); + +private:static function_descriptor_struct exportedFunctions[]; +}; + +extern FeedWatcherScriptController *feedWatcherScriptController; +// ---------------------------------------------------------------------------- + +#endif // __FEEDWATCHERSCRIPTOBJECT_H -- cgit