From 3a8d7bdf0858e5af3bad25666caf25bb9486ed2a Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 26 Sep 2019 06:35:17 -0700 Subject: [PATCH] Add a few missing classes. These still need to be added to runtime/index.ts I'm working on how to derive the IDs. https://github.com/captbaritone/webamp/pull/855 --- modern/src/runtime/FeedWatcher.ts | 29 ++++++++++++++++++++++++++ modern/src/runtime/Form.ts | 34 +++++++++++++++++++++++++++++++ modern/src/runtime/PlDir.ts | 19 +++++++++++++++++ 3 files changed, 82 insertions(+) create mode 100644 modern/src/runtime/FeedWatcher.ts create mode 100644 modern/src/runtime/Form.ts create mode 100644 modern/src/runtime/PlDir.ts diff --git a/modern/src/runtime/FeedWatcher.ts b/modern/src/runtime/FeedWatcher.ts new file mode 100644 index 00000000..8e96e37d --- /dev/null +++ b/modern/src/runtime/FeedWatcher.ts @@ -0,0 +1,29 @@ +import MakiObject from "./MakiObject"; +import * as Utils from "../utils"; + +export default class FeedWatcher extends MakiObject { + /** + * getClassName() + * + * Returns the class name for the object. + * @ret The class name. + */ + getclassname() { + return "FeedWatcher"; + } + + setfeed(feed_id: string) { + Utils.unimplementedWarning("setfeed"); + return; + } + + releasefeed() { + Utils.unimplementedWarning("releasefeed"); + return; + } + + onfeedchange(new_feeddata: string) { + Utils.unimplementedWarning("onfeedchange"); + return; + } +} diff --git a/modern/src/runtime/Form.ts b/modern/src/runtime/Form.ts new file mode 100644 index 00000000..602dab5e --- /dev/null +++ b/modern/src/runtime/Form.ts @@ -0,0 +1,34 @@ +import GuiObject from "./GuiObject"; +import * as Utils from "../utils"; + +export default class Form extends GuiObject { + /** + * getClassName() + * + * Returns the class name for the object. + * @ret The class name. + */ + getclassname() { + return "Form"; + } + + getcontentsheight() { + Utils.unimplementedWarning("getcontentsheight"); + return; + } + + newcell(groupname: string) { + Utils.unimplementedWarning("newcell"); + return; + } + + nextrow() { + Utils.unimplementedWarning("nextrow"); + return; + } + + deleteall() { + Utils.unimplementedWarning("deleteall"); + return; + } +} diff --git a/modern/src/runtime/PlDir.ts b/modern/src/runtime/PlDir.ts new file mode 100644 index 00000000..cf258770 --- /dev/null +++ b/modern/src/runtime/PlDir.ts @@ -0,0 +1,19 @@ +import MakiObject from "./MakiObject"; +import * as Utils from "../utils"; + +export default class PlDir extends MakiObject { + /** + * getClassName() + * + * Returns the class name for the object. + * @ret The class name. + */ + getclassname() { + return "PlDir"; + } + + showcurrentlyplayingentry() { + Utils.unimplementedWarning("showcurrentlyplayingentry"); + return; + } +}