summaryrefslogtreecommitdiff
path: root/views/displaychannelview.c
diff options
context:
space:
mode:
Diffstat (limited to 'views/displaychannelview.c')
-rw-r--r--views/displaychannelview.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/views/displaychannelview.c b/views/displaychannelview.c
index 880f9a1..e8b5177 100644
--- a/views/displaychannelview.c
+++ b/views/displaychannelview.c
@@ -17,6 +17,7 @@ cDisplayChannelView::cDisplayChannelView(cTemplateView *tmplView) : cView(tmplVi
lastAudioChannel = -1;
lastTracDesc = "";
lastTrackLang = "";
+ InitDevices();
DeleteOsdOnExit();
SetFadeTime(tmplView->GetNumericParameter(ptFadeTime));
}
@@ -109,7 +110,8 @@ void cDisplayChannelView::DrawProgressBar(cString &start, cString &stop, int Cur
intTokens.insert(pair<string, int>("duration", Total));
intTokens.insert(pair<string, int>("elapsed", Current));
intTokens.insert(pair<string, int>("remaining", Total - Current));
-
+
+ ClearProgressBar();
DrawViewElement(veProgressBar, &stringTokens, &intTokens);
}
@@ -399,6 +401,29 @@ void cDisplayChannelView::ClearSignalBackground(void) {
ClearViewElement(veSignalQualityBack);
}
+void cDisplayChannelView::DrawDevices(bool initial) {
+ if (!ViewElementImplemented(veDevices)) {
+ return;
+ }
+ map < string, string > stringTokens;
+ map < string, int > intTokens;
+ map < string, vector< map< string, string > > > deviceLoopTokens;
+ vector< map< string, string > > devices;
+
+ bool changed = SetDevices(initial, &intTokens, &devices);
+ if (!changed)
+ return;
+
+ deviceLoopTokens.insert(pair< string, vector< map< string, string > > >("devices", devices));
+
+ ClearViewElement(veDevices);
+ DrawViewElement(veDevices, &stringTokens, &intTokens, &deviceLoopTokens);
+}
+
+void cDisplayChannelView::ClearDevices(void) {
+ ClearViewElement(veDevices);
+}
+
void cDisplayChannelView::DrawChannelGroups(const cChannel *Channel, cString ChannelName) {
if (!ViewElementImplemented(veChannelGroup)) {
return;