2000-03-11 11:22:37 +01:00
|
|
|
/*
|
|
|
|
* recording.h: Recording file handling
|
|
|
|
*
|
|
|
|
* See the main source file 'osm.c' for copyright information and
|
|
|
|
* how to reach the author.
|
|
|
|
*
|
2000-04-15 17:38:11 +02:00
|
|
|
* $Id: recording.h 1.2 2000/04/14 15:12:42 kls Exp $
|
2000-03-11 11:22:37 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __RECORDING_H
|
|
|
|
#define __RECORDING_H
|
|
|
|
|
|
|
|
#include <time.h>
|
|
|
|
#include "config.h"
|
|
|
|
#include "dvbapi.h"
|
|
|
|
#include "tools.h"
|
|
|
|
|
|
|
|
void AssertFreeDiskSpace(void);
|
|
|
|
|
|
|
|
class cRecording : public cListObject {
|
|
|
|
public:
|
|
|
|
char *name;
|
|
|
|
char *fileName;
|
|
|
|
time_t start;
|
|
|
|
int priority;
|
|
|
|
int lifetime;
|
2000-04-15 17:38:11 +02:00
|
|
|
cRecording(const char *Name, time_t Start, int Priority, int LifeTime);
|
2000-03-11 11:22:37 +01:00
|
|
|
cRecording(cTimer *Timer);
|
|
|
|
cRecording(const char *FileName);
|
|
|
|
~cRecording();
|
|
|
|
const char *FileName(void);
|
|
|
|
bool Delete(void);
|
|
|
|
// Changes the file name so that it will no longer be visible in the OSM
|
|
|
|
// Returns false in case of error
|
|
|
|
bool Remove(void);
|
|
|
|
// Actually removes the file from the disk
|
|
|
|
// Returns false in case of error
|
|
|
|
bool Record(void);
|
|
|
|
// Starts recording of the file
|
|
|
|
bool Play(void);
|
|
|
|
// Starts playback of the file
|
|
|
|
void Stop(void);
|
|
|
|
// Stops recording or playback of the file
|
|
|
|
};
|
|
|
|
|
|
|
|
class cRecordings : public cList<cRecording> {
|
|
|
|
public:
|
|
|
|
bool Load(bool Deleted = false);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__RECORDING_H
|