summaryrefslogtreecommitdiff
path: root/text2skin.c
diff options
context:
space:
mode:
authorAndreas Brugger <brougs78@gmx.net>2006-11-19 16:58:14 +0100
committerThomas Günther <tom@toms-cafe.de>2009-06-03 03:35:58 +0200
commit74a5cc8e14900d48386e33cb576f154a6dd7e557 (patch)
treec7a90ba2fc5952558f6d4f528f94f8057f0d3ecd /text2skin.c
parent8d32cf88bbe5b69a2710029cdaa896470a0fe20c (diff)
downloadvdr-plugin-text2skin-74a5cc8e14900d48386e33cb576f154a6dd7e557.tar.gz
vdr-plugin-text2skin-74a5cc8e14900d48386e33cb576f154a6dd7e557.tar.bz2
2006-11-19: Version 1.1-cvs_ext-0.9 (vdr-text2skin-1.1-cvs_ext-0.9.diff)
- added a test-feature to search for reruns of a program and add the information to the extended epg-info (trigger DEVELOPMENT_FEATURES). This uses a service-interface of the epgsearch-plugin "Epgsearch-searchresults-v1.0" - the timer-conflicts are now checked with epgsearch (service-interface "Epgsearch-lastconflictinfo-v1.0", as it works more reliable and is supported by the plugin author - the extended epg-info and the recording-info are extended by AUX-Infos (configurable) there is also an option to strip known tags - the tab-widths are scaled for taking into account that different TT-Fonts have a different width than the default font from VDR - added tokens for signal-info: FrontendSTR, FrontendSNR, FrontendHasLock, FrontendHasSignal - changed token TimerConflict to TimerConflicts - added token PresentEventID for EPG-images - added tokens for recordings: RecordingFilename, RecordingPriority, RecordingLifetime - removed Text2skin.diff from the rotor-plugin
Diffstat (limited to 'text2skin.c')
-rw-r--r--text2skin.c32
1 files changed, 21 insertions, 11 deletions
diff --git a/text2skin.c b/text2skin.c
index cf4f618..86869e2 100644
--- a/text2skin.c
+++ b/text2skin.c
@@ -7,14 +7,14 @@
*/
#include "text2skin.h"
+#include "bitmap.h"
#include "setup.h"
#include "menu.h"
#include "i18n.h"
#include "loader.h"
#include "status.h"
-#include "xml/object.h"
-const char *cText2SkinPlugin::VERSION = "1.1-cvs";
+const char *cText2SkinPlugin::VERSION = "1.1-cvs_ext-0.9";
const char *cText2SkinPlugin::SKINVERSION = "1.0";
const char *cText2SkinPlugin::DESCRIPTION = "Loader for text-based skins";
@@ -24,16 +24,26 @@ cText2SkinPlugin::cText2SkinPlugin(void) {
cText2SkinPlugin::~cText2SkinPlugin() {
}
-#if VDRVERSNUM >= 10330
-bool cText2SkinPlugin::Service(const char *Id, void *Data)
+#if VDRVERSNUM >= 10331
+const char **cText2SkinPlugin::SVDRPHelpPages(void)
{
- if (strcmp(Id,"Text2Skin-TTF") == 0) {
- if (Data == NULL)
- return true;
- cxObject::UseTTF = *(int*)Data;
- return true;
- }
- return false;
+ static const char *HelpPages[] = {
+ "FLUS\n"
+ " Flush the image cache (useful if images have changed and the"
+ " current version should be loaded).",
+ NULL
+ };
+ return HelpPages;
+}
+
+cString cText2SkinPlugin::SVDRPCommand(const char *Command, const char *Option, int &ReplyCode)
+{
+ if (strcasecmp(Command, "FLUS") == 0) {
+ // we use the default reply code here
+ cText2SkinBitmap::FlushCache();
+ return "image cache flushed.";
+ }
+ return NULL;
}
#endif