diff options
| author | louis <louis.braun@gmx.de> | 2015-03-22 12:52:10 +0100 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2015-03-22 12:52:10 +0100 |
| commit | fcf90375fa516455cf7bda4bc791c814b5062d69 (patch) | |
| tree | 1bc97e190d14c76c8ce3b877746a8bc85634112e /views/displaychannelviewelements.c | |
| parent | 21b70b426d2fd6546f12e4ee9177c73839c831da (diff) | |
| download | vdr-plugin-skindesigner-fcf90375fa516455cf7bda4bc791c814b5062d69.tar.gz vdr-plugin-skindesigner-fcf90375fa516455cf7bda4bc791c814b5062d69.tar.bz2 | |
introduced cViewElement
Diffstat (limited to 'views/displaychannelviewelements.c')
| -rw-r--r-- | views/displaychannelviewelements.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/views/displaychannelviewelements.c b/views/displaychannelviewelements.c new file mode 100644 index 0000000..7709b94 --- /dev/null +++ b/views/displaychannelviewelements.c @@ -0,0 +1,23 @@ +#include "displaychannelviewelements.h" + +cViewElementDevices::cViewElementDevices(cTemplateViewElement *tmplViewElement) : cViewElement(tmplViewElement) { + init = true; +} + +void cViewElementDevices::Render(void) { + map < string, vector< map< string, string > > > deviceLoopTokens; + vector< map< string, string > > devices; + + if (init) + InitDevices(); + bool changed = SetDevices(init, &intTokens, &devices); + init = false; + + if (!changed) + return; + + deviceLoopTokens.insert(pair< string, vector< map< string, string > > >("devices", devices)); + + Clear(); + Draw(&deviceLoopTokens); +}
\ No newline at end of file |
