summaryrefslogtreecommitdiff
path: root/dvbapi.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-04-23 15:38:16 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-04-23 15:38:16 +0200
commit160c6ec5eb369d309350e9fdf588e29d4ea215bd (patch)
treee3fc59f1dba568d3b2f895c6fca2626045a609dd /dvbapi.h
parent88f13b1b296218589a44dac227964a8a47a75e50 (diff)
downloadvdr-160c6ec5eb369d309350e9fdf588e29d4ea215bd.tar.gz
vdr-160c6ec5eb369d309350e9fdf588e29d4ea215bd.tar.bz2
Implemented replay progress display
Diffstat (limited to 'dvbapi.h')
-rw-r--r--dvbapi.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/dvbapi.h b/dvbapi.h
index 8303d59f..63bea31d 100644
--- a/dvbapi.h
+++ b/dvbapi.h
@@ -4,7 +4,7 @@
* See the main source file 'osm.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.h 1.4 2000/04/22 13:07:34 kls Exp $
+ * $Id: dvbapi.h 1.5 2000/04/23 10:08:27 kls Exp $
*/
#ifndef __DVBAPI_H
@@ -62,13 +62,21 @@ private:
int cols, rows;
void Cmd(OSD_Command cmd, int color = 0, int x0 = 0, int y0 = 0, int x1 = 0, int y1 = 0, const void *data = NULL);
public:
- void Open(int w, int h, int d = 0);
+ void Open(int w, int h);
void Close(void);
void Clear(void);
void Fill(int x, int y, int w, int h, eDvbColor color = clrBackground);
void ClrEol(int x, int y, eDvbColor color = clrBackground);
void Text(int x, int y, const char *s, eDvbColor colorFg = clrWhite, eDvbColor colorBg = clrBackground);
+ // Progress Display facilities
+
+private:
+ int lastProgress;
+ char *replayTitle;
+public:
+ void ShowProgress(bool Initial = false);
+
// Channel facilities
bool SetChannel(int FrequencyMHz, char Polarization, int Diseqc, int Srate, int Vpid, int Apid, int Ca, int Pnr);
@@ -81,6 +89,7 @@ private:
dvbFastForward,
dvbFastRewind,
dvbSkip,
+ dvbGetIndex,
};
bool isMainProcess;
pid_t pidRecord, pidReplay;
@@ -105,10 +114,11 @@ public:
// returned.
void StopRecord(void);
// Stops the current recording session (if any).
- bool StartReplay(const char *FileName);
+ bool StartReplay(const char *FileName, const char *Title = NULL);
// Starts replaying the given file.
// If there is already a replay session active, it will be stopped
// and the new file will be played back.
+ // If provided Title will be used in the progress display.
void StopReplay(void);
// Stops the current replay session (if any).
void PauseReplay(void);
@@ -122,6 +132,7 @@ public:
// The sign of 'Seconds' determines the direction in which to skip.
// Use a very large negative value to go all the way back to the
// beginning of the recording.
+ bool GetIndex(int *Current, int *Total = NULL);
};
#endif //__DVBAPI_H