blob: b08fd941028966c1af59721f663e2aca59439c2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
/*
* status.cpp: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#include "status.h"
void cStatusMarkAd::Recording(const cDevice *Device, const char *Name, const char *FileName, bool On)
{
if (!Device) return; // just to be safe
if (!FileName) return; // we cannot operate without a filename
if (On)
{
if (!Name) return; // we cannot operate without name ;)
cTimer *timer=NULL;
for (cTimer *Timer = Timers.First(); Timer; Timer=Timers.Next(Timer))
{
if (Timer->Recording() && (!strcmp(Timer->File(),Name)))
{
timer=Timer;
break;
}
}
if (!timer) return;
// TODO: Start the standalone version ;)
}
else
{
// TODO: Start second pass?
}
}
|