vdr-plugin-skindesigner/displaymessage.c

26 lines
533 B
C
Raw Normal View History

2014-09-27 09:25:14 +02:00
#include "displaymessage.h"
2016-01-26 18:32:38 +01:00
cSDDisplayMessage::cSDDisplayMessage(cViewMessage *messageView) {
view = messageView;
ok = view->Init();
if (!ok)
esyslog("skindesigner: Error initiating displaymessage view - aborting");
2014-09-27 09:25:14 +02:00
}
cSDDisplayMessage::~cSDDisplayMessage() {
2016-01-26 18:32:38 +01:00
view->Close();
2014-09-27 09:25:14 +02:00
}
void cSDDisplayMessage::SetMessage(eMessageType Type, const char *Text) {
2016-01-26 18:32:38 +01:00
if (!ok)
2014-09-27 09:25:14 +02:00
return;
2016-01-26 18:32:38 +01:00
view->SetMessage(Type, Text);
2014-09-27 09:25:14 +02:00
}
void cSDDisplayMessage::Flush(void) {
2016-01-26 18:32:38 +01:00
if (!ok)
2014-09-27 09:25:14 +02:00
return;
2016-07-22 15:21:09 +02:00
view->Flush();
2014-09-27 09:25:14 +02:00
}