diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-16 10:35:36 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-05-16 10:35:36 +0200 |
commit | 5d99df7b7760c4a2b497c737a15b609008f6d56d (patch) | |
tree | a342f2f7465a73fe2bd63848d87566af8d646dd3 /device.c | |
parent | 7aab06d8b1c6de59d06756d44c631984acd299b3 (diff) | |
download | vdr-5d99df7b7760c4a2b497c737a15b609008f6d56d.tar.gz vdr-5d99df7b7760c4a2b497c737a15b609008f6d56d.tar.bz2 |
Implemented 'skins' and 'themes'
Diffstat (limited to 'device.c')
-rw-r--r-- | device.c | 17 |
1 files changed, 5 insertions, 12 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: device.c 1.53 2004/02/08 15:05:11 kls Exp $ + * $Id: device.c 1.54 2004/04/17 10:07:10 kls Exp $ */ #include "device.h" @@ -126,11 +126,6 @@ bool cDevice::HasDecoder(void) const return false; } -cOsdBase *cDevice::NewOsd(int x, int y) -{ - return NULL; -} - cSpuDecoder *cDevice::GetSpuDecoder(void) { return NULL; @@ -360,11 +355,9 @@ bool cDevice::SwitchChannel(const cChannel *Channel, bool LiveView) for (int i = 3; i--;) { switch (SetChannel(Channel, LiveView)) { case scrOk: return true; - case scrNotAvailable: if (Interface) - Interface->Error(tr("Channel not available!")); + case scrNotAvailable: Skins.Message(mtError, tr("Channel not available!")); return false; - case scrNoTransfer: if (Interface) - Interface->Error(tr("Can't start Transfer Mode!")); + case scrNoTransfer: Skins.Message(mtError, tr("Can't start Transfer Mode!")); return false; case scrFailed: break; // loop will retry } @@ -396,8 +389,8 @@ bool cDevice::SwitchChannel(int Direction) if (PrimaryDevice()->SwitchChannel(channel, true)) result = true; } - else if (n != first && Interface) - Interface->Error(tr("Channel not available!")); + else if (n != first) + Skins.Message(mtError, tr("Channel not available!")); } return result; } |