diff options
| author | etobi <git@e-tobi.net> | 2009-11-03 19:02:47 +0100 |
|---|---|---|
| committer | etobi <git@e-tobi.net> | 2009-11-03 19:02:47 +0100 |
| commit | 90b872ed164d8cf004b40f0128fd7a9b3ca7d27e (patch) | |
| tree | b558cc69a5f750c98b90d4aac228d9d031d2316a /src/vdr-stub | |
| download | vdr-plugin-vodcatcher-90b872ed164d8cf004b40f0128fd7a9b3ca7d27e.tar.gz vdr-plugin-vodcatcher-90b872ed164d8cf004b40f0128fd7a9b3ca7d27e.tar.bz2 | |
initial commit
Diffstat (limited to 'src/vdr-stub')
| -rw-r--r-- | src/vdr-stub/ccontrolstub.cc | 55 | ||||
| -rw-r--r-- | src/vdr-stub/ccontrolstub.h | 39 | ||||
| -rw-r--r-- | src/vdr-stub/i18n.cc | 35 | ||||
| -rw-r--r-- | src/vdr-stub/menuitems.cc | 34 | ||||
| -rw-r--r-- | src/vdr-stub/menusetuppagestub.h | 34 | ||||
| -rw-r--r-- | src/vdr-stub/osdbase.cc | 68 | ||||
| -rw-r--r-- | src/vdr-stub/plugin.cc | 130 | ||||
| -rw-r--r-- | src/vdr-stub/pluginhooks.cc | 25 | ||||
| -rw-r--r-- | src/vdr-stub/pluginhooks.h | 34 | ||||
| -rw-r--r-- | src/vdr-stub/tools.cc | 42 |
10 files changed, 496 insertions, 0 deletions
diff --git a/src/vdr-stub/ccontrolstub.cc b/src/vdr-stub/ccontrolstub.cc new file mode 100644 index 0000000..1e53f87 --- /dev/null +++ b/src/vdr-stub/ccontrolstub.cc @@ -0,0 +1,55 @@ +/* + * vdr-vodcatcher - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id: ccontrolstub.cc 7652 2008-08-05 21:37:57Z svntobi $ + * + */ + +#include <vdr/player.h> +#include "ccontrolstub.h" +#include <vdr/osdbase.h> + +cControl::cControl(cPlayer *Player, bool Hidden) +{ +} + +cControl::~cControl() +{ +} + +cControlStub::cControlStub() +:cControl(NULL, false) +{ +} + +cControlStub::~cControlStub() +{ +} + +void cControl::Launch(cControl *control) +{ + cControlStub::LaunchedPlayerControl = control; +} + +cOsdObject* cControl::GetInfo(void) +{ + return NULL; +} + +cControl* cControlStub::LaunchedPlayerControl; + diff --git a/src/vdr-stub/ccontrolstub.h b/src/vdr-stub/ccontrolstub.h new file mode 100644 index 0000000..9218cf6 --- /dev/null +++ b/src/vdr-stub/ccontrolstub.h @@ -0,0 +1,39 @@ +/* + * vdr-vodcatcher - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id: ccontrolstub.h 7652 2008-08-05 21:37:57Z svntobi $ + * + */ + +#ifndef ___CCONTROLSTUB_H +#define ___CCONTROLSTUB_H + +#include <vdr/player.h> + +class cControlStub: public cControl +{ + public: + static cControl* LaunchedPlayerControl; + + public: + cControlStub(); + ~cControlStub(); + void Hide() {}; +}; + +#endif diff --git a/src/vdr-stub/i18n.cc b/src/vdr-stub/i18n.cc new file mode 100644 index 0000000..6bab61a --- /dev/null +++ b/src/vdr-stub/i18n.cc @@ -0,0 +1,35 @@ +/* + * vdr-vodcatcher - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id: i18n.cc 7656 2008-08-09 21:07:45Z svntobi $ + * + */ + +#include <string> +#include <vector> +#include <iostream> + +using namespace std; + +const char *I18nTranslate(const char* s, const char* Plugin) +{ + static vector<string> translations; + translations.push_back(string("i18n:") + s); + + return translations[translations.size()-1].c_str(); +} diff --git a/src/vdr-stub/menuitems.cc b/src/vdr-stub/menuitems.cc new file mode 100644 index 0000000..2550ea5 --- /dev/null +++ b/src/vdr-stub/menuitems.cc @@ -0,0 +1,34 @@ +/* + * vdr-vodcatcher - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id: menuitems.cc 7652 2008-08-05 21:37:57Z svntobi $ + * + */ + +#include <vdr/menuitems.h> + +cMenuSetupPage::cMenuSetupPage() +:cOsdMenu("") +{ +} + +eOSState cMenuSetupPage::ProcessKey(eKeys Key) +{ + return osUnknown; +} + diff --git a/src/vdr-stub/menusetuppagestub.h b/src/vdr-stub/menusetuppagestub.h new file mode 100644 index 0000000..711c470 --- /dev/null +++ b/src/vdr-stub/menusetuppagestub.h @@ -0,0 +1,34 @@ +/* + * vdr-vodcatcher - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id: menusetuppagestub.h 7652 2008-08-05 21:37:57Z svntobi $ + * + */ + +#ifndef ___MENUSETUPPAGESTUB_H +#define ___MENUSETUPPAGESTUB_H + +#include <vdr/menuitems.h> + +class MenuSetupPageStub: public cMenuSetupPage +{ + protected: + void Store() {}; +}; + +#endif diff --git a/src/vdr-stub/osdbase.cc b/src/vdr-stub/osdbase.cc new file mode 100644 index 0000000..31b991d --- /dev/null +++ b/src/vdr-stub/osdbase.cc @@ -0,0 +1,68 @@ +/* + * vdr-vodcatcher - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id: osdbase.cc 7652 2008-08-05 21:37:57Z svntobi $ + * + */ + +#include <vdr/osdbase.h> + +cListBase::cListBase() +{ +} + +cListBase::~cListBase() +{ +} + +void cListBase::Clear() +{ +} + +void cListBase::Move(int a, int b) +{ +} + +cOsdMenu::~cOsdMenu() +{ +} + +cOsdMenu::cOsdMenu(const char* a, int b, int c, int d, int e, int f) +{ +} + +void cOsdMenu::Clear() +{ +} + +void cOsdMenu::Del(int Index) +{ +} + +void cOsdMenu::Display(void) +{ +} + +eOSState cOsdMenu::ProcessKey(eKeys Key) +{ + return osUnknown; +} + +void cOsdObject::Show() +{ +} diff --git a/src/vdr-stub/plugin.cc b/src/vdr-stub/plugin.cc new file mode 100644 index 0000000..f1c481b --- /dev/null +++ b/src/vdr-stub/plugin.cc @@ -0,0 +1,130 @@ +/* + * vdr-vodcatcher - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id: plugin.cc 7652 2008-08-05 21:37:57Z svntobi $ + * + */ + +#include <string> +#include <vdr/plugin.h> +#include "pluginhooks.h" + +using namespace std; + +cPlugin::cPlugin(void) +{ +} + +cPlugin::~cPlugin() +{ +} + +const char* cPlugin::CommandLineHelp(void) +{ + return ""; +} + +bool cPlugin::ProcessArgs(int argCount, char* argValues[]) +{ + return false; +} + +bool cPlugin::Start(void) +{ + return false; +} + +void cPlugin::Stop(void) +{ +} + +void cPlugin::Housekeeping(void) +{ +} + +const char* cPlugin::MainMenuEntry(void) +{ + return ""; +} + +bool cPlugin::Initialize(void) +{ + return false; +} + +cOsdObject* cPlugin::MainMenuAction(void) +{ + return NULL; +} + +cMenuSetupPage* cPlugin::SetupMenu(void) +{ + return NULL; +} + +bool cPlugin::SetupParse(const char* Name, const char* Value) +{ + return false; +} + +bool cPlugin::Service(const char* Id, void* Data) +{ + return false; +} + +const char** cPlugin::SVDRPHelpPages(void) +{ + return NULL; +} + +cString cPlugin::SVDRPCommand(const char* Command, const char* Option, int &ReplyCode) +{ + return ""; +} + +#if APIVERSNUM >= 10507 +void cPlugin::RegisterI18n(const void *) +{ +} +#else +void cPlugin::RegisterI18n(const tI18nPhrase * const Phrases) +{ + PluginHooks::Phrases = Phrases; +} +#endif + +const char* cPlugin::ConfigDirectory(const char* PluginName) +{ + return "/vdrstub"; +} + +void cPlugin::MainThreadHook(void) +{ +} + +cString cPlugin::Active(void) +{ + return NULL; +} + +#if APIVERSNUM >= 10501 +time_t cPlugin::WakeupTime(void) +{ + return 0; +} +#endif diff --git a/src/vdr-stub/pluginhooks.cc b/src/vdr-stub/pluginhooks.cc new file mode 100644 index 0000000..719de81 --- /dev/null +++ b/src/vdr-stub/pluginhooks.cc @@ -0,0 +1,25 @@ +/* + * vdr-vodcatcher - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id: pluginhooks.cc 7652 2008-08-05 21:37:57Z svntobi $ + * + */ + +#include "pluginhooks.h" + +const tI18nPhrase* PluginHooks::Phrases = NULL; diff --git a/src/vdr-stub/pluginhooks.h b/src/vdr-stub/pluginhooks.h new file mode 100644 index 0000000..4ac8cdd --- /dev/null +++ b/src/vdr-stub/pluginhooks.h @@ -0,0 +1,34 @@ +/* + * vdr-vodcatcher - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id: pluginhooks.h 7652 2008-08-05 21:37:57Z svntobi $ + * + */ + +#ifndef ___PLUGINHOOKS_H +#define ___PLUGINHOOKS_H + +#include <vdr/i18n.h> + +class PluginHooks +{ + public: + static const tI18nPhrase* Phrases; +}; + +#endif diff --git a/src/vdr-stub/tools.cc b/src/vdr-stub/tools.cc new file mode 100644 index 0000000..4975303 --- /dev/null +++ b/src/vdr-stub/tools.cc @@ -0,0 +1,42 @@ +/* + * vdr-vodcatcher - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id: tools.cc 7652 2008-08-05 21:37:57Z svntobi $ + * + */ + +#include <vdr/tools.h> +#include <vdr/config.h> + +cString::cString(const char* S, bool TakePointer) +{ +} + +cString::~cString() +{ +} + +#if APIVERSNUM < 10500 +cTimeMs::cTimeMs() +{ +} +#else +cTimeMs::cTimeMs(int Ms) +{ +} +#endif |
