mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Totally rearranged device/player/recorder structures
This commit is contained in:
21
menu.h
21
menu.h
@@ -4,14 +4,16 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: menu.h 1.43 2002/05/18 12:36:06 kls Exp $
|
||||
* $Id: menu.h 1.44 2002/06/14 12:33:35 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __MENU_H
|
||||
#define __MENU_H
|
||||
|
||||
#include "dvbapi.h"
|
||||
#include "device.h"
|
||||
#include "osd.h"
|
||||
#include "dvbplayer.h"
|
||||
#include "recorder.h"
|
||||
#include "recording.h"
|
||||
|
||||
class cMenuMain : public cOsdMenu {
|
||||
@@ -76,17 +78,18 @@ public:
|
||||
|
||||
class cRecordControl {
|
||||
private:
|
||||
cDvbApi *dvbApi;
|
||||
cDevice *device;
|
||||
cTimer *timer;
|
||||
cRecorder *recorder;
|
||||
const cEventInfo *eventInfo;
|
||||
char *instantId;
|
||||
char *fileName;
|
||||
bool GetEventInfo(void);
|
||||
public:
|
||||
cRecordControl(cDvbApi *DvbApi, cTimer *Timer = NULL);
|
||||
cRecordControl(cDevice *Device, cTimer *Timer = NULL);
|
||||
virtual ~cRecordControl();
|
||||
bool Process(time_t t);
|
||||
bool Uses(cDvbApi *DvbApi) { return DvbApi == dvbApi; }
|
||||
bool Uses(cDevice *Device) { return Device == device; }
|
||||
void Stop(bool KeepInstant = false);
|
||||
bool IsInstant(void) { return instantId; }
|
||||
const char *InstantId(void) { return instantId; }
|
||||
@@ -96,21 +99,21 @@ public:
|
||||
|
||||
class cRecordControls {
|
||||
private:
|
||||
static cRecordControl *RecordControls[MAXDVBAPI];
|
||||
static cRecordControl *RecordControls[];
|
||||
public:
|
||||
static bool Start(cTimer *Timer = NULL);
|
||||
static void Stop(const char *InstantId);
|
||||
static void Stop(cDvbApi *DvbApi);
|
||||
static void Stop(cDevice *Device);
|
||||
static bool StopPrimary(bool DoIt = false);
|
||||
static const char *GetInstantId(const char *LastInstantId);
|
||||
static cRecordControl *GetRecordControl(const char *FileName);
|
||||
static void Process(time_t t);
|
||||
static bool Active(void);
|
||||
static void Shutdown(void);
|
||||
};
|
||||
|
||||
class cReplayControl : public cOsdObject {
|
||||
class cReplayControl : public cDvbPlayerControl {
|
||||
private:
|
||||
cDvbApi *dvbApi;
|
||||
cMarks marks;
|
||||
bool visible, modeOnly, shown, displayFrames;
|
||||
int lastCurrent, lastTotal;
|
||||
|
Reference in New Issue
Block a user