blob: 6394fa84c033003bb2a66289fb1550e15f00929e (
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
|
/*
* 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 (!bindir) return; // we cannot operate without bindir
if (!logodir) return; // we dont want to operate without logodir
if (On)
{
// Start the standalone version
cString cmd = cString::sprintf("\"%s\"/markad --online=2 -l \"%s\" before \"%s\"",bindir,
logodir,FileName);
SystemExec(cmd);
}
else
{
// TODO: Start second pass?
}
}
cStatusMarkAd::cStatusMarkAd(const char *BinDir, const char *LogoDir)
{
bindir=BinDir;
logodir=LogoDir;
}
|