From 3e9031f96e17d7ac3babd4a0d0c70be1fcfbf3b7 Mon Sep 17 00:00:00 2001 From: mrwastl Date: Thu, 19 May 2011 10:08:47 +0200 Subject: set data via SVDRP and make these available to the skin-engine --- skinconfig.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'skinconfig.c') 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; } -- cgit v1.2.3