summaryrefslogtreecommitdiff
path: root/skinconfig.c
diff options
context:
space:
mode:
authormrwastl <mrwastl@users.sourceforge.net>2011-05-19 10:08:47 +0200
committermrwastl <mrwastl@users.sourceforge.net>2011-05-19 10:08:47 +0200
commit3e9031f96e17d7ac3babd4a0d0c70be1fcfbf3b7 (patch)
tree7b31365b1dd835e4f3b0546f97c37b385ff77128 /skinconfig.c
parent876ea90a3145c64c6b6b1e9109b8b8c9e3e11ce8 (diff)
downloadvdr-plugin-graphlcd-3e9031f96e17d7ac3babd4a0d0c70be1fcfbf3b7.tar.gz
vdr-plugin-graphlcd-3e9031f96e17d7ac3babd4a0d0c70be1fcfbf3b7.tar.bz2
set data via SVDRP and make these available to the skin-engine
Diffstat (limited to 'skinconfig.c')
-rw-r--r--skinconfig.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/skinconfig.c b/skinconfig.c
index 89ff8a4..a564289 100644
--- a/skinconfig.c
+++ b/skinconfig.c
@@ -140,10 +140,12 @@ typedef enum _eTokenId
tokDisplayMode,
tokPrivateSettingEnd,
- // external services
+ // external services and data
tokPrivateServiceStart,
tokServiceIsAvailable,
tokServiceItem,
+ tokExtDataIsAvailable,
+ tokExtDataItem,
tokPrivateServiceEnd,
tokCountToken
@@ -269,6 +271,8 @@ static const std::string Tokens[tokCountToken] =
"privateServiceStart",
"ServiceIsAvailable",
"ServiceItem",
+ "ExtDataIsAvailable",
+ "ExtDataItem",
"privateServiceEnd"
};
@@ -691,6 +695,20 @@ GLCD::cType cGraphLCDSkinConfig::GetToken(const GLCD::tSkinToken & Token)
return s->GetItem(ServiceName, ItemName);
}
break;
+ case tokExtDataIsAvailable: {
+ if (Token.Attrib.Text == "")
+ return false;
+
+ return mDisplay->GetExtData()->IsSet( Token.Attrib.Text );
+ }
+ break;
+ case tokExtDataItem: {
+ if (Token.Attrib.Text == "")
+ return false;
+
+ return mDisplay->GetExtData()->Get( Token.Attrib.Text );
+ }
+ break;
default:
break;
}