mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Switched handling 'Transfer Mode' to the new cPlayer/cControl structures
This commit is contained in:
10
player.c
10
player.c
@@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: player.c 1.2 2002/06/23 11:23:17 kls Exp $
|
||||
* $Id: player.c 1.3 2002/06/23 12:56:25 kls Exp $
|
||||
*/
|
||||
|
||||
#include "player.h"
|
||||
@@ -49,9 +49,10 @@ void cPlayer::Detach(void)
|
||||
|
||||
cControl *cControl::control = NULL;
|
||||
|
||||
cControl::cControl(cPlayer *Player)
|
||||
cControl::cControl(cPlayer *Player, bool Hidden)
|
||||
{
|
||||
attached = false;
|
||||
hidden = Hidden;
|
||||
player = Player;
|
||||
}
|
||||
|
||||
@@ -61,6 +62,11 @@ cControl::~cControl()
|
||||
control = NULL;
|
||||
}
|
||||
|
||||
cControl *cControl::Control(void)
|
||||
{
|
||||
return (control && !control->hidden) ? control : NULL;
|
||||
}
|
||||
|
||||
void cControl::Launch(cControl *Control)
|
||||
{
|
||||
delete control;
|
||||
|
||||
Reference in New Issue
Block a user