Logo Search packages:      
Sourcecode: vdr-plugin-xineliboutput version File versions  Download package

dummy_player.h

/*
 * dummy_player.h: Player that does nothing (saves CPU time)
 *
 * See the main source file 'xineliboutput.c' for copyright information and
 * how to reach the author.
 *
 * $Id: dummy_player.h,v 1.1 2006/06/03 09:50:54 phintuka Exp $
 *
 */

#ifndef __DUMMY_PLAYER_H
#define __DUMMY_PLAYER_H

#include <vdr/player.h>

class cDummyPlayer;

class cDummyPlayerControl : public cControl 
{
  private:
    static cDummyPlayer *m_Player;
    static cMutex m_Lock;

    static cDummyPlayer *OpenPlayer(void);

  public:
    cDummyPlayerControl(void);
    virtual ~cDummyPlayerControl();

    virtual void Show(void) {};
    virtual void Hide(void) {};
    virtual eOSState ProcessKey(eKeys Key);

    static void Close(void);
    static bool IsOpen(void) {return m_Player != NULL;};
};

#endif //__DUMMY_PLAYER_H


Generated by  Doxygen 1.6.0   Back to index