summaryrefslogtreecommitdiff
path: root/src/menuorg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/menuorg.cpp')
-rw-r--r--src/menuorg.cpp133
1 files changed, 133 insertions, 0 deletions
diff --git a/src/menuorg.cpp b/src/menuorg.cpp
new file mode 100644
index 0000000..9864efe
--- /dev/null
+++ b/src/menuorg.cpp
@@ -0,0 +1,133 @@
+/*
+ * menuorg.cpp: A plugin for the Video Disk Recorder
+ *
+ * See the README file for copyright information and how to reach the author.
+ *
+ */
+
+#include <vdr/plugin.h>
+#include <vdr/config.h>
+#include <vdr/tools.h>
+#include <vdr/submenupatch.h>
+#include <vector>
+#include "version.h"
+#include "menuorg.h"
+
+using namespace SubMenuPatch;
+
+MenuOrgPlugin::MenuOrgPlugin(void)
+{
+ // Initialize any member variables here.
+ // DON'T DO ANYTHING ELSE THAT MAY HAVE SIDE EFFECTS, REQUIRE GLOBAL
+ // VDR OBJECTS TO EXIST OR PRODUCE ANY OUTPUT!
+}
+
+
+MenuOrgPlugin::~MenuOrgPlugin()
+{
+ // Clean up after yourself!
+}
+
+const char* MenuOrgPlugin::Version(void)
+{
+ return VERSION;
+}
+
+const char* MenuOrgPlugin::Description(void)
+{
+ return tr("TODO: Insert Description");
+}
+
+const char* MenuOrgPlugin::MainMenuEntry(void)
+{
+ return tr("TODO: MainMenuEntry");
+}
+
+const char *MenuOrgPlugin::CommandLineHelp(void)
+{
+ // Return a string that describes all known command line options.
+ return NULL;
+}
+
+bool MenuOrgPlugin::ProcessArgs(int argc, char *argv[])
+{
+ // Implement command line argument processing here if applicable.
+ return true;
+}
+
+bool MenuOrgPlugin::Initialize(void)
+{
+ // Initialize any background activities the plugin shall perform.
+ return true;
+}
+
+bool MenuOrgPlugin::Start(void)
+{
+ // Start any background activities the plugin shall perform.
+ return true;
+}
+
+void MenuOrgPlugin::Stop(void)
+{
+ // Stop any background activities the plugin shall perform.
+}
+
+void MenuOrgPlugin::Housekeeping(void)
+{
+ // Perform any cleanup or other regular tasks.
+}
+
+void MenuOrgPlugin::MainThreadHook(void)
+{
+ // Perform actions in the context of the main program thread.
+ // WARNING: Use with great care - see PLUGINS.html!
+}
+
+cString MenuOrgPlugin::Active(void)
+{
+ // Return a message string if shutdown should be postponed
+ return NULL;
+}
+
+cOsdObject *MenuOrgPlugin::MainMenuAction(void)
+{
+ // Perform the action when selected from the main VDR menu.
+ return NULL;
+}
+
+cMenuSetupPage *MenuOrgPlugin::SetupMenu(void)
+{
+ // Return a setup menu in case the plugin supports one.
+ return NULL;
+}
+
+bool MenuOrgPlugin::SetupParse(const char *Name, const char *Value)
+{
+ // Parse your own setup parameters and store their values.
+ return false;
+}
+
+bool MenuOrgPlugin::Service(const char *Id, void *Data)
+{
+ if (strcmp(Id, "SubMenuPatch-v0.1::SubMenuProvider") == 0)
+ {
+ ISubMenuProvider** ptr = (ISubMenuProvider**)Data;
+ *ptr = &_subMenuProvider;
+
+ return true;
+ }
+
+ return false;
+}
+
+const char **MenuOrgPlugin::SVDRPHelpPages(void)
+{
+ // Return help text for SVDRP commands this plugin implements
+ return NULL;
+}
+
+cString MenuOrgPlugin::SVDRPCommand(const char *Command, const char *Option, int &ReplyCode)
+{
+ // Process SVDRP commands this plugin implements
+ return NULL;
+}