mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
26 lines
538 B
C
26 lines
538 B
C
#include "displaymessage.h"
|
|
|
|
cSDDisplayMessage::cSDDisplayMessage(cViewMessage *messageView) {
|
|
view = messageView;
|
|
ok = view->Init();
|
|
if (!ok)
|
|
esyslog("skindesigner: Error initiating displaymessage view - aborting");
|
|
}
|
|
|
|
cSDDisplayMessage::~cSDDisplayMessage() {
|
|
view->Close();
|
|
}
|
|
|
|
void cSDDisplayMessage::SetMessage(eMessageType Type, const char *Text) {
|
|
if (!ok)
|
|
return;
|
|
view->SetMessage(Type, Text);
|
|
}
|
|
|
|
|
|
void cSDDisplayMessage::Flush(void) {
|
|
if (!ok)
|
|
return;
|
|
view->Flush(false);
|
|
}
|