mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
The new functions cControl::GetRecording() and cControl::GetHeader() can be used to retrieve information about what the current player is playing
This commit is contained in:
@@ -71,3 +71,7 @@ VDR Plugin 'pictures' Revision History
|
||||
2012-02-27: Version 0.1.2
|
||||
|
||||
- Removed an obsolete command line option.
|
||||
|
||||
2012-04-2r8 Version 0.1.3
|
||||
|
||||
- Added cPictureControl::GetHeader().
|
||||
|
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* See the README file for copyright information and how to reach the author.
|
||||
*
|
||||
* $Id: pictures.c 2.5 2012/02/27 12:35:45 kls Exp $
|
||||
* $Id: pictures.c 2.6 2012/04/28 11:58:42 kls Exp $
|
||||
*/
|
||||
|
||||
#include <getopt.h>
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "menu.h"
|
||||
#include "player.h"
|
||||
|
||||
static const char *VERSION = "0.1.2";
|
||||
static const char *VERSION = "0.1.3";
|
||||
static const char *DESCRIPTION = trNOOP("A simple picture viewer");
|
||||
static const char *MAINMENUENTRY = trNOOP("Pictures");
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* See the README file for copyright information and how to reach the author.
|
||||
*
|
||||
* $Id: player.c 2.1 2011/02/20 17:15:25 kls Exp $
|
||||
* $Id: player.c 2.2 2012/04/28 11:58:15 kls Exp $
|
||||
*/
|
||||
|
||||
#include "player.h"
|
||||
@@ -204,6 +204,11 @@ void cPictureControl::DisplayCaption(void)
|
||||
osd->Flush();
|
||||
}
|
||||
|
||||
cString cPictureControl::GetHeader(void)
|
||||
{
|
||||
return tr("Pictures");
|
||||
}
|
||||
|
||||
eOSState cPictureControl::ProcessKey(eKeys Key)
|
||||
{
|
||||
switch (Key) {
|
||||
|
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* See the README file for copyright information and how to reach the author.
|
||||
*
|
||||
* $Id: player.h 1.1 2008/01/13 11:29:27 kls Exp $
|
||||
* $Id: player.h 2.1 2012/04/28 11:56:01 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef _PLAYER_H
|
||||
@@ -39,6 +39,7 @@ private:
|
||||
public:
|
||||
cPictureControl(cPictureEntry *Pictures, const cPictureEntry *PictureEntry, bool SlideShow = false);
|
||||
virtual ~cPictureControl();
|
||||
virtual cString GetHeader(void);
|
||||
virtual eOSState ProcessKey(eKeys Key);
|
||||
static bool Active(void) { return active > 0; }
|
||||
static const char *LastDisplayed(void);
|
||||
|
Reference in New Issue
Block a user