36 #define MAXWAIT4EPGINFO 3 // seconds 37 #define MODETIMEOUT 3 // seconds 38 #define NEWTIMERLIMIT 120 // seconds until the start time of a new timer created from the Schedule menu, 41 #define DEFERTIMER 60 // seconds by which a timer is deferred in case of problems 43 #define MAXRECORDCONTROLS (MAXDEVICES * MAXRECEIVERS) 44 #define MAXINSTANTRECTIME (24 * 60 - 1) // 23:59 hours 45 #define MAXWAITFORCAMMENU 10 // seconds to wait for the CAM menu to open 46 #define CAMMENURETYTIMEOUT 3 // seconds after which opening the CAM menu is retried 47 #define CAMRESPONSETIMEOUT 5 // seconds to wait for a response from a CAM 48 #define MINFREEDISK 300 // minimum free disk space (in MB) required to start recording 49 #define NODISKSPACEDELTA 300 // seconds between "Not enough disk space to start recording!" messages 50 #define MAXCHNAMWIDTH 16 // maximum number of characters of channels' short names shown in schedules menus 52 #define CHNUMWIDTH (numdigits(Channels.MaxNumber()) + 1) 53 #define CHNAMWIDTH (min(MAXCHNAMWIDTH, Channels.MaxShortChannelNameLength() + 1)) 59 virtual void Set(
void);
102 virtual void Set(
void);
289 virtual int Compare(
const cListObject &ListObject)
const;
290 virtual void Set(
void);
301 SetSelectable(
false);
309 if (sortMode == csmProvider)
311 if (sortMode == csmName || r == 0)
313 if (sortMode == csmNumber || r == 0)
322 if (sortMode == csmProvider)
324 else if (
Setup.WarEagleIcons) {
343 DisplayMenu->
SetItem(Text(), Index, Current, Selectable);
348 #define CHANNELNUMBERTIMEOUT 1000 //ms 356 void Propagate(
void);
363 virtual void Move(
int From,
int To);
395 if (channel == currentChannel)
405 SetHelp(
tr(
"Button$Edit"),
tr(
"Button$New"),
tr(
"Button$Delete"),
tr(
"Button$Mark"));
437 if (!ci->Channel()->GroupSep() && ci->Channel()->Number() ==
number) {
482 int DeletedChannel = channel->
Number();
489 if (CurrentChannel && channel == CurrentChannel) {
494 CurrentChannelNr = 0;
500 isyslog(
"channel %d deleted", DeletedChannel);
501 if (CurrentChannel && CurrentChannel->
Number() != CurrentChannelNr) {
518 if (FromChannel && ToChannel) {
519 int FromNumber = FromChannel->
Number();
520 int ToNumber = ToChannel->
Number();
525 isyslog(
"channel %d moved to %d", FromNumber, ToNumber);
526 if (CurrentChannel && CurrentChannel->
Number() != CurrentChannelNr) {
586 text = Text ? strdup(Text) : NULL;
659 :
cOsdMenu(Folder ?
tr(
"Edit folder") :
tr(
"New folder"), 12)
692 if (strcmp(Folder->Text(),
name) == 0) {
697 char *p = strpbrk(
name,
"\\{}#~");
768 if (Folder->Folder()->SubItems())
778 #define FOLDERDELIMCHARSUBST 0x01 786 for (Folder = List->
First(); Folder; Folder = List->
Next(Folder)) {
787 if (strcmp(Path, Folder->
Text()) == 0)
801 cString Folder = Recording->Folder();
803 if (Dirs.
Find(Folder) < 0)
804 Dirs.
Append(strdup(Folder));
807 for (
int i = 0; i < Dirs.
Size(); i++) {
817 static int RecordingsState = -1;
830 Add(FolderItem, CurrentFolder ? strcmp(Folder->Text(), CurrentFolder) == 0 :
false);
842 if (strncmp(Folder->Folder()->Text(), Path, p - Path) == 0) {
904 Set(mef->GetFolder());
1005 cString Folder = mf->GetFolder();
1014 memmove(
data.
file, p, strlen(p) + 1);
1078 virtual int Compare(
const cListObject &ListObject)
const;
1079 virtual void Set(
void);
1107 localtime_r(&Day, &tm_r);
1109 strftime(buffer,
sizeof(buffer),
"%Y%m%d", &tm_r);
1121 *name && **name ?
" " :
"",
1133 DisplayMenu->
SetItem(Text(), Index, Current, Selectable);
1146 cTimer *CurrentTimer(
void);
1160 timer->SetEventFromSchedule();
1177 return item ? item->
Timer() : NULL;
1182 int NewHelpKeys = 0;
1259 if (ti && ti->
Event())
1305 SetHelp(TimerMatch ==
tmFull ?
tr(
"Button$Timer") :
tr(
"Button$Record"), NULL, NULL, CanSwitch ?
tr(
"Button$Switch") : NULL);
1365 virtual int Compare(
const cListObject &ListObject)
const;
1366 bool Update(
bool Force =
false);
1376 withDate = WithDate;
1385 if (sortMode != ssmAllThis)
1387 if (sortMode == ssmAllThis || r == 0)
1401 bool result =
false;
1404 if (Force || timerMatch != OldTimerMatch) {
1409 const char *csn = channel ? channel->ShortName(
true) : NULL;
1410 cString eds =
event->GetDateString();
1411 if (channel && withDate)
1412 buffer =
cString::sprintf(
"%d\t%.*s\t%.*s\t%s\t%s%s%s\t%s", channel->Number(),
Utf8SymChars(csn, 6), csn,
Utf8SymChars(eds, 6), *eds, *
event->GetTimeString(), t, v, r,
event->Title());
1414 buffer =
cString::sprintf(
"%d\t%.*s\t%s\t%s%s%s\t%s", channel->Number(),
Utf8SymChars(csn, 6), csn, *
event->GetTimeString(), t, v, r,
event->Title());
1425 if (!DisplayMenu->
SetItemEvent(
event, Index, Current, Selectable, channel, withDate, timerMatch))
1426 DisplayMenu->
SetItem(Text(), Index, Current, Selectable);
1442 void SetHelpKeys(
void);
1447 static const cEvent *ScheduleEvent(
void);
1464 if (!Channel->GroupSep()) {
1480 bool result =
false;
1494 int NewHelpKeys = 0;
1497 NewHelpKeys |= 0x02;
1499 NewHelpKeys |= 0x01;
1501 NewHelpKeys |= 0x04;
1503 NewHelpKeys |= 0x08;
1506 NewHelpKeys |= 0x10;
1512 const char *Red[] = { NULL,
tr(
"Button$Record"),
tr(
"Button$Timer") };
1513 SetHelp(Red[NewHelpKeys & 0x03],
now ?
tr(
"Button$Next") :
tr(
"Button$Now"),
tr(
"Button$Schedule"),
canSwitch ?
tr(
"Button$Switch") : NULL);
1600 if (HadSubMenu &&
Update())
1621 void PrepareScheduleAllThis(
const cEvent *Event,
const cChannel *Channel);
1622 void PrepareScheduleThisThis(
const cEvent *Event,
const cChannel *Channel);
1623 void PrepareScheduleThisAll(
const cEvent *Event,
const cChannel *Channel);
1624 void PrepareScheduleAllAll(
const cEvent *Event,
const cChannel *Channel);
1668 if (ev->EndTime() > now || ev == PresentEvent)
1685 if ((ev->EndTime() > now || ev == Event) && !strcmp(ev->Title(), Event->
Title()))
1703 if ((ev->EndTime() > now || ev == Event) && !strcmp(ev->Title(), Event->
Title()))
1722 if (ev->EndTime() > now || ev == Event)
1732 bool result =
false;
1746 int NewHelpKeys = 0;
1749 NewHelpKeys |= 0x02;
1751 NewHelpKeys |= 0x01;
1754 NewHelpKeys |= 0x10;
1760 const char *Red[] = { NULL,
tr(
"Button$Record"),
tr(
"Button$Timer") };
1761 SetHelp(Red[NewHelpKeys & 0x03],
tr(
"Button$Now"),
tr(
"Button$Next"),
canSwitch ?
tr(
"Button$Switch") : NULL);
1771 const cEvent *Event = NULL;
1773 Event = CurrentItem->
event;
1854 ChannelNr = channel->
Number();
1887 else if (HadSubMenu &&
Update())
1906 const char *s = Command->Text();
1907 if (Command->SubItems())
1921 const char *p = strchr(s,
':');
1928 if (l > 1 && t[l - 1] ==
'?') {
1956 const char *cmd = *cmdbuf ? *cmdbuf : *
command;
1957 dsyslog(
"executing command '%s'", cmd);
1959 if (p.
Open(cmd,
"r")) {
1962 while ((c = fgetc(p)) != EOF) {
1964 if (
char *NewBuffer = (
char *)realloc(
result, l + 21))
1967 esyslog(
"ERROR: out of memory");
1978 esyslog(
"ERROR: can't open pipe for command '%s'", cmd);
2018 void GenerateTitle(
const char *s = NULL);
2019 void QueryCam(
void);
2020 void AddMultiLineItem(
const char *s);
2117 const char *p = strchr(s,
'\n');
2118 int l = p ? p - s : strlen(s);
2121 item->
SetText(strndup(s, l),
false);
2166 else if (state ==
osBack) {
2193 if (CamSlot->HasUserIO())
2209 char folder[PATH_MAX];
2210 char name[NAME_MAX];
2274 if (strcmp(NewPath,
path)) {
2276 if (NumRecordings > 1 && !
Interface->
Confirm(cString::sprintf(
tr(
"Move entire folder containing %d recordings?"), NumRecordings)))
2299 else if (Key ==
kOk)
2327 void SetHelpKeys(
void);
2328 bool RefreshRecording(
void);
2378 Add(
new cOsdItem(
tr(
"This recording is currently in use - no changes are possible!"),
osUnknown,
false));
2480 bool Modified =
false;
2554 SetHelp(
tr(
"Button$Play"),
tr(
"Button$Rewind"), NULL,
tr(
"Button$Edit"));
2635 void IncrementCounter(
bool New);
2636 const char *
Name(
void) {
return name; }
2649 totalEntries = newEntries = 0;
2650 SetText(Recording->
Title(
'\t',
true, Level));
2651 if (*Text() ==
'\t')
2652 name = strdup(Text() + 2);
2671 DisplayMenu->
SetItem(Text(), Index, Current, Selectable);
2680 :
cOsdMenu(Base ? Base :
tr(
"Recordings"), 9, 6, 6)
2683 base = Base ? strdup(Base) : NULL;
2705 if (!ri->IsDirectory())
2714 int NewHelpKeys = 0;
2722 switch (NewHelpKeys) {
2724 case 1:
SetHelp(
tr(
"Button$Open"), NULL, NULL,
tr(
"Button$Edit"));
break;
2739 CurrentRecording = ri->Recording()->FileName();
2751 if (p->Name() && strcmp(p->Name(), Item->
Name()) == 0) {
2757 if (*Item->
Text() && !LastDir) {
2765 if (LastItem || LastDir) {
2767 if (strcmp(
path, recording->Folder()) == 0)
2770 else if (CurrentRecording && strcmp(CurrentRecording, recording->FileName()) == 0)
2807 const char *t = ri->
Name();
2885 if (!recording || recording->
Delete()) {
2908 if (ri->IsDirectory())
2979 ri->SetRecording(riSub->Recording());
3001 virtual void Store(
void);
3022 const char *useSmallFontTexts[3];
3023 const char *keyColorTexts[4];
3034 virtual void Set(
void);
3047 skinDescriptions =
new const char*[numSkins];
3064 delete[] skinDescriptions;
3071 skinDescriptions[Skin->Index()] = Skin->Description();
3072 useSmallFontTexts[0] =
tr(
"never");
3073 useSmallFontTexts[1] =
tr(
"skin dependent");
3074 useSmallFontTexts[2] =
tr(
"always");
3075 keyColorTexts[0] =
tr(
"Key$Red");
3076 keyColorTexts[1] =
tr(
"Key$Green");
3077 keyColorTexts[2] =
tr(
"Key$Yellow");
3078 keyColorTexts[3] =
tr(
"Key$Blue");
3080 SetSection(
tr(
"OSD"));
3083 if (themes.NumThemes())
3084 Add(
new cMenuEditStraItem(
tr(
"Setup.OSD$Theme"), &themeIndex, themes.NumThemes(), themes.Descriptions()));
3093 Add(
new cMenuEditStraItem(
tr(
"Setup.OSD$Default font"), &fontOsdIndex, fontOsdNames.Size(), &fontOsdNames[0]));
3094 Add(
new cMenuEditStraItem(
tr(
"Setup.OSD$Small font"), &fontSmlIndex, fontSmlNames.Size(), &fontSmlNames[0]));
3095 Add(
new cMenuEditStraItem(
tr(
"Setup.OSD$Fixed font"), &fontFixIndex, fontFixNames.Size(), &fontFixNames[0]));
3096 Add(
new cMenuEditPrcItem(
tr(
"Setup.OSD$Default font size (%)"), &data.FontOsdSizeP, 0.01, 0.1, 1));
3120 bool ModifiedAppearance =
false;
3124 if (skinIndex != originalSkinIndex) {
3129 ModifiedAppearance =
true;
3134 Utf8Strn0Cpy(data.OSDTheme, themes.Name(themeIndex),
sizeof(data.OSDTheme));
3135 ModifiedAppearance |= themeIndex != originalThemeIndex;
3138 ModifiedAppearance =
true;
3140 ModifiedAppearance =
true;
3141 Utf8Strn0Cpy(data.FontOsd, fontOsdNames[fontOsdIndex],
sizeof(data.FontOsd));
3142 Utf8Strn0Cpy(data.FontSml, fontSmlNames[fontSmlIndex],
sizeof(data.FontSml));
3143 Utf8Strn0Cpy(data.FontFix, fontFixNames[fontFixIndex],
sizeof(data.FontFix));
3145 ModifiedAppearance =
true;
3147 ModifiedAppearance =
true;
3149 ModifiedAppearance =
true;
3154 int oldSkinIndex = skinIndex;
3155 int oldOsdLanguageIndex = osdLanguageIndex;
3158 if (ModifiedAppearance) {
3163 if (osdLanguageIndex != oldOsdLanguageIndex || skinIndex != oldSkinIndex) {
3170 char *d = themes.NumThemes() ? strdup(themes.Descriptions()[themeIndex]) : NULL;
3171 themes.Load(Skin->
Name());
3172 if (skinIndex != oldSkinIndex)
3173 themeIndex = d ? themes.GetThemeIndex(d) : 0;
3198 for (numLanguages = 0; numLanguages <
I18nLanguages()->
Size() && data.EPGLanguages[numLanguages] >= 0; numLanguages++)
3200 originalNumLanguages = numLanguages;
3201 SetSection(
tr(
"EPG"));
3216 if (data.SetSystemTime)
3217 Add(
new cMenuEditTranItem(
tr(
"Setup.EPG$Use time from transponder"), &data.TimeTransponder, &data.TimeSource));
3220 for (
int i = 0; i < numLanguages; i++)
3231 bool Modified = numLanguages != originalNumLanguages;
3233 for (
int i = 0; i < numLanguages; i++) {
3244 int oldnumLanguages = numLanguages;
3245 int oldSetSystemTime = data.SetSystemTime;
3249 if (numLanguages != oldnumLanguages || data.SetSystemTime != oldSetSystemTime) {
3250 for (
int i = oldnumLanguages; i < numLanguages; i++) {
3251 data.EPGLanguages[i] = 0;
3254 for (k = 0; k < oldnumLanguages; k++) {
3255 if (data.EPGLanguages[k] == l)
3258 if (k >= oldnumLanguages) {
3259 data.EPGLanguages[i] = l;
3264 data.EPGLanguages[numLanguages] = -1;
3284 const char *videoDisplayFormatTexts[3];
3285 const char *updateChannelsTexts[6];
3286 const char *standardComplianceTexts[3];
3295 for (numAudioLanguages = 0; numAudioLanguages <
I18nLanguages()->
Size() && data.AudioLanguages[numAudioLanguages] >= 0; numAudioLanguages++)
3297 for (numSubtitleLanguages = 0; numSubtitleLanguages <
I18nLanguages()->
Size() && data.SubtitleLanguages[numSubtitleLanguages] >= 0; numSubtitleLanguages++)
3299 originalNumAudioLanguages = numAudioLanguages;
3300 originalNumSubtitleLanguages = numSubtitleLanguages;
3301 videoDisplayFormatTexts[0] =
tr(
"pan&scan");
3302 videoDisplayFormatTexts[1] =
tr(
"letterbox");
3303 videoDisplayFormatTexts[2] =
tr(
"center cut out");
3304 updateChannelsTexts[0] =
tr(
"no");
3305 updateChannelsTexts[1] =
tr(
"names only");
3306 updateChannelsTexts[2] =
tr(
"PIDs only");
3307 updateChannelsTexts[3] =
tr(
"names and PIDs");
3308 updateChannelsTexts[4] =
tr(
"add new channels");
3309 updateChannelsTexts[5] =
tr(
"add new transponders");
3310 standardComplianceTexts[0] =
"DVB";
3311 standardComplianceTexts[1] =
"ANSI/SCTE";
3312 standardComplianceTexts[2] =
"NORDIG";
3314 SetSection(
tr(
"DVB"));
3315 SetHelp(NULL,
tr(
"Button$Audio"),
tr(
"Button$Subtitles"), NULL);
3326 Add(
new cMenuEditStraItem(
tr(
"Setup.DVB$Standard compliance"), &data.StandardCompliance, 3, standardComplianceTexts));
3328 if (data.VideoFormat == 0)
3329 Add(
new cMenuEditStraItem(
tr(
"Setup.DVB$Video display format"), &data.VideoDisplayFormat, 3, videoDisplayFormatTexts));
3331 Add(
new cMenuEditStraItem(
tr(
"Setup.DVB$Update channels"), &data.UpdateChannels, 6, updateChannelsTexts));
3333 for (
int i = 0; i < numAudioLanguages; i++)
3336 if (data.DisplaySubtitles) {
3338 for (
int i = 0; i < numSubtitleLanguages; i++)
3341 Add(
new cMenuEditIntItem(
tr(
"Setup.DVB$Subtitle foreground transparency"), &data.SubtitleFgTransparency, 0, 9));
3342 Add(
new cMenuEditIntItem(
tr(
"Setup.DVB$Subtitle background transparency"), &data.SubtitleBgTransparency, 0, 10));
3354 bool newVideoFormat = data.VideoFormat;
3356 bool newDisplaySubtitles = data.DisplaySubtitles;
3357 int oldnumAudioLanguages = numAudioLanguages;
3358 int oldnumSubtitleLanguages = numSubtitleLanguages;
3370 bool DoSetup = data.VideoFormat != newVideoFormat;
3371 DoSetup |= data.DisplaySubtitles != newDisplaySubtitles;
3372 if (numAudioLanguages != oldnumAudioLanguages) {
3373 for (
int i = oldnumAudioLanguages; i < numAudioLanguages; i++) {
3374 data.AudioLanguages[i] = 0;
3377 for (k = 0; k < oldnumAudioLanguages; k++) {
3378 if (data.AudioLanguages[k] == l)
3381 if (k >= oldnumAudioLanguages) {
3382 data.AudioLanguages[i] = l;
3387 data.AudioLanguages[numAudioLanguages] = -1;
3390 if (numSubtitleLanguages != oldnumSubtitleLanguages) {
3391 for (
int i = oldnumSubtitleLanguages; i < numSubtitleLanguages; i++) {
3392 data.SubtitleLanguages[i] = 0;
3395 for (k = 0; k < oldnumSubtitleLanguages; k++) {
3396 if (data.SubtitleLanguages[k] == l)
3399 if (k >= oldnumSubtitleLanguages) {
3400 data.SubtitleLanguages[i] = l;
3405 data.SubtitleLanguages[numSubtitleLanguages] = -1;
3460 int NumSatDevices = 0;
3465 if (NumSatDevices > 1) {
3490 bool DeviceBondingsChanged =
false;
3500 else if (DeviceBondingsChanged)
3525 const char *Activating =
"";
3526 const char *CamName = camSlot->GetCamName();
3528 switch (camSlot->ModuleStatus()) {
3529 case msReset: CamName =
tr(
"CAM reset");
break;
3530 case msPresent: CamName =
tr(
"CAM present");
break;
3531 case msReady: CamName =
tr(
"CAM ready");
break;
3532 default: CamName =
"-";
break;
3535 else if (camSlot->IsActivating())
3537 Activating =
tr(
" (activating)");
3539 if (strcmp(buffer, Text()) != 0) {
3552 void SetHelpKeys(
void);
3560 activationHelp = NULL;
3575 const char *NewActivationHelp =
"";
3579 NewActivationHelp =
tr(
"Button$Cancel activation");
3581 NewActivationHelp =
tr(
"Button$Activate");
3583 if (NewActivationHelp != activationHelp) {
3584 activationHelp = NewActivationHelp;
3585 SetHelp(
tr(
"Button$Menu"),
tr(
"Button$Reset"), activationHelp);
3595 time_t t0 = time(NULL);
3628 if (Device->ProvidesChannel(Channel)) {
3631 if (CamSlot->
Assign(Device,
true)) {
3633 if (CamSlot->
Assign(Device)) {
3634 if (Device->SwitchChannel(Channel,
true)) {
3672 case kRed:
return Menu();
3673 case kGreen: state = Reset();
break;
3674 case kYellow: state = Activate();
break;
3690 const char *pauseKeyHandlingTexts[3];
3691 const char *delTimeshiftRecTexts[3];
3699 pauseKeyHandlingTexts[0] =
tr(
"do not pause live video");
3700 pauseKeyHandlingTexts[1] =
tr(
"confirm pause live video");
3701 pauseKeyHandlingTexts[2] =
tr(
"pause live video");
3702 delTimeshiftRecTexts[0] =
tr(
"no");
3703 delTimeshiftRecTexts[1] =
tr(
"confirm");
3704 delTimeshiftRecTexts[2] =
tr(
"yes");
3728 virtual void Store(
void);
3815 SetSection(
tr(
"Plugins"));
3817 for (
int i = 0; ; i++) {
3839 return AddSubMenu(menu);
3860 virtual void Set(
void);
3878 snprintf(buffer,
sizeof(buffer),
"%s - VDR %s",
tr(
"Setup"),
VDRVERSION);
3948 #define STOP_RECORDING trNOOP(" Stop recording ") 4014 for (
int i = 0; ; i++) {
4038 bool result =
false;
4041 if (Force || NewReplaying !=
replaying) {
4076 const char *s = NULL;
4157 default:
switch (Key) {
4159 case kRed:
if (!HadSubMenu)
4162 case kGreen:
if (!HadSubMenu) {
4167 case kYellow:
if (!HadSubMenu)
4170 case kBlue:
if (!HadSubMenu)
4224 int indexSubtitle = 0;
4228 case 2:
if (p->
type == 0x05)
4372 if (n <= ch->Number() && ch->
Number() < n + m) {
4407 int SaveGroup =
group;
4486 if ((Key & (k_Repeat |
k_Release)) == 0) {
4506 bool PositionerMoving = Positioner && Positioner->
IsMoving();
4508 if (!PositionerMoving) {
4524 #define VOLUMETIMEOUT 1000 //ms 4525 #define MUTETIMEOUT 5000 //ms 4591 #define TRACKTIMEOUT 5000 //ms 4606 if (TrackId && TrackId->
id) {
4609 if (i == CurrentAudioTrack)
4658 int oldTrack =
track;
4675 static int ac[] = { 1, 0, 2 };
4702 if (
track != oldTrack) {
4727 if (TrackId && TrackId->
id) {
4730 if (i == CurrentSubtitleTrack)
4776 int oldTrack =
track;
4803 if (
track != oldTrack) {
4828 timer =
new cTimer(
true, Pause);
4832 timer->SetPending(
true);
4833 timer->SetRecording(
true);
4834 event = timer->Event();
4836 if (event || GetEvent())
4837 dsyslog(
"Title: '%s' Subtitle: '%s'", event->Title(),
event->ShortText());
4839 fileName = strdup(Recording.FileName());
4843 isyslog(
"already recording: '%s'", fileName);
4845 timer->SetPending(
false);
4846 timer->SetRecording(
false);
4859 isyslog(
"record %s", fileName);
4861 const cChannel *ch = timer->Channel();
4862 recorder =
new cRecorder(fileName, ch, timer->Priority());
4863 if (device->AttachReceiver(recorder)) {
4864 Recording.WriteInfo();
4870 char *Directory = strdup(fileName);
4872 if (
char *p = strrchr(Directory,
'/')) {
4873 while (p > Directory && *--p !=
'/')
4877 dsyslog(
"setting %s to be sorted by time", Directory);
4902 #define INSTANT_REC_EPG_LOOKAHEAD 300 // seconds to look into the EPG data for an instant recording 4906 const cChannel *channel = timer->Channel();
4918 dsyslog(
"got EPG info after %d seconds", seconds);
4925 dsyslog(
"waiting for EPG info...");
4928 dsyslog(
"no EPG info available");
4936 timer->SetRecording(
false);
4939 if (ExecuteUserCommand)
4947 if (!recorder || !recorder->IsAttached() || !timer || !timer->Matches(t)) {
4949 timer->SetPending(
false);
4963 static time_t LastNoDiskSpaceMessage = 0;
4972 isyslog(
"not enough disk space to start recording%s%s", Timer ?
" timer " :
"", Timer ? *Timer->
ToDescr() :
"");
4974 LastNoDiskSpaceMessage = time(NULL);
4978 LastNoDiskSpaceMessage = 0;
4993 if (!Timer || Timer->
Matches()) {
4995 if (!RecordControls[i]) {
4997 return RecordControls[i]->Process(time(NULL));
5002 else if (!Timer || !Timer->
Pending()) {
5003 isyslog(
"no free DVB device to record channel %d (%s)!", ch, channel->
Name());
5008 esyslog(
"ERROR: channel %d not defined!", ch);
5016 if (RecordControls[i]) {
5017 const char *
id = RecordControls[i]->InstantId();
5018 if (
id && strcmp(
id, InstantId) == 0) {
5019 cTimer *timer = RecordControls[i]->Timer();
5020 RecordControls[i]->
Stop();
5036 if (Start(NULL,
true)) {
5050 if (RecordControls[i]) {
5051 if (!LastInstantId && RecordControls[i]->InstantId())
5052 return RecordControls[i]->InstantId();
5053 if (LastInstantId && LastInstantId == RecordControls[i]->InstantId())
5054 LastInstantId = NULL;
5064 if (RecordControls[i] && strcmp(RecordControls[i]->FileName(), FileName) == 0)
5065 return RecordControls[i];
5074 if (RecordControls[i] && RecordControls[i]->Timer() == Timer)
5075 return RecordControls[i];
5083 if (RecordControls[i]) {
5084 if (!RecordControls[i]->
Process(t)) {
5095 if (RecordControls[i]) {
5096 if (RecordControls[i]->Timer() && RecordControls[i]->Timer()->Channel() == Channel) {
5097 if (RecordControls[i]->Device()->ProvidesTransponder(Channel)) {
5098 isyslog(
"stopping recording due to modification of channel %d (%s)", Channel->
Number(), Channel->
Name());
5099 RecordControls[i]->Stop();
5112 if (RecordControls[i])
5127 int NewState = state;
5128 bool Result = State != NewState;
5137 initialValue = NULL;
5139 framesPerSecond = 0;
5145 initialValue = InitialValue;
5146 framesPerSecond = FramesPerSecond;
5155 currentValue = int(round(*initialValue * framesPerSecond));
5158 else if (Key != lastKey) {
5166 return max(currentValue, 1);
5224 if (recording->
Delete()) {
5305 bool NormalPlay = (Play && Speed == -1);
5328 if (
GetIndex(Current, Total) && Total > 0) {
5346 Index = Current - Index;
5369 strcpy(buf,
tr(
"Jump: "));
5370 int len = strlen(buf);
5379 sprintf(buf + len,
"%c%c:%c%c", ch10, ch1, cm10, cm1);
5385 #define STAY_SECONDS_OFF_END 10 5458 if (
GetIndex(Current, Total,
true)) {
5472 Goto(Current,
true);
5491 Goto(m->Position());
5495 Goto(m->Position(),
true);
5502 Goto(Forward ? Total : 0,
true);
5538 else if (!MarkRequired)
5628 bool DoShowMode =
true;
int Find(const char *s) const
cDisplaySubtitleTracks(void)
void ShowTimed(int Seconds=0)
const cEvent * GetPresentEvent(void) const
static cString ToString(int Code)
bool Replaying(void) const
Returns true if we are currently replaying.
int DeviceNumber(void) const
Returns the number of this device (0 ... numDevices - 1).
virtual void SetTrack(int Index, const char *const *Tracks)=0
< This class implements the track display.
cOsdItem * stopReplayItem
eOSState ProcessKey(eKeys Key)
cList< cNestedItem > * commands
virtual cSkinDisplayVolume * DisplayVolume(void)=0
Creates and returns a new object for displaying the current volume.
const char * Text(void) const
virtual eOSState ProcessKey(eKeys Key)
void TimeSearchDisplay(void)
bool Confirm(const char *s, int Seconds=10, bool WaitForTimeout=false)
static void ResetVersions(void)
int GetPrevGroup(int Idx)
int I18nCurrentLanguage(void)
Returns the index of the current language.
virtual void StartActivation(void)
Puts the CAM in this slot into a mode where an inserted smart card can be activated.
void DisplayChannel(void)
cMark * GetPrev(int Position)
virtual void GetData(cChannel *Channel)=0
Copies all source specific parameters to the given Channel.
void SetRecordingsSortMode(const char *Directory, eRecordingsSortMode SortMode)
const cRecordingInfo * Info(void) const
void ResetResume(const char *ResumeFileName=NULL)
cRecordControl(cDevice *Device, cTimer *Timer=NULL, bool Pause=false)
virtual const cRecording * GetRecording(void)
Returns the cRecording that is currently being replayed, or NULL if this player is not playing a cRec...
cOsdItem * stopRecordingItem
void Add(cListObject *Object, cListObject *After=NULL)
static cString ToText(const cChannel *Channel)
double FramesPerSecond(void)
cSourceParam * Get(char Source) const
virtual void SetVolume(int Current, int Total, bool Mute)=0
< This class implements the volume/mute display.
static void Shutdown(void)
int Ca(int Index=0) const
static void InvokeCommand(const char *State, const char *RecordingFileName, const char *SourceFileName=NULL)
double FramesPerSecond(void) const
virtual const char * Version(void)=0
eRecordingsSortMode RecordingsSortMode
char language[MAXLANGCODE2]
const char * Title(char Delimiter= ' ', bool NewIndicator=false, int Level=-1) const
#define RUC_BEFORERECORDING
#define TIMERMACRO_EPISODE
static cString sprintf(const char *fmt,...) __attribute__((format(printf
virtual void Append(T Data)
const char * DefaultFontSml
virtual cOsdObject * MainMenuAction(void)
static cDisplayVolume * Create(void)
cMenuMain(eOSState State=osUnknown, bool OpenSubMenus=false)
cString PrintFirstDay(void) const
cTimer * GetMatch(time_t t)
const cEvent * Event(void) const
static void SetupChanged(void)
virtual void SetVideoDisplayFormat(eVideoDisplayFormat VideoDisplayFormat)
Sets the video display format to the given one (only useful if this device has an MPEG decoder)...
bool ChangePriorityLifetime(int NewPriority, int NewLifetime)
Changes the priority and lifetime of this recording to the given values.
static void ChannelDataModified(cChannel *Channel)
bool Parse(const char *s)
bool Matches(time_t t=0, bool Directly=false, int Margin=0) const
static cDevice * GetDevice(int Index)
Gets the device with the given Index.
cOsdItem * Get(int Index) const
const char * ShortName(bool OrName=false) const
static cControl * Control(bool Hidden=false)
Returns the current replay control (if any) in case it is currently visible.
static void Process(time_t t)
virtual bool CanActivate(void)
Returns true if there is a CAM in this slot that can be put into activation mode. ...
char FontSml[MAXFONTNAME]
int AlwaysSortFoldersFirst
bool SetAvailableTrack(eTrackType Type, int Index, uint16_t Id, const char *Language=NULL, const char *Description=NULL)
Sets the track of the given Type and Index to the given values.
int EPGLanguages[I18N_MAX_LANGUAGES+1]
bool GroupSep(void) const
const cComponents * Components(void) const
virtual eOSState ProcessKey(eKeys Key)
eTrackType types[ttMaxTrackTypes]
tComponent * Component(int Index) const
void SetSubItems(bool On)
cSkinDisplayReplay * displayReplay
eOSState ProcessKey(eKeys Key)
static void Process(eKeys Key)
static cDisplayChannel * currentDisplayChannel
static int NumDevices(void)
Returns the total number of devices.
virtual void SetMode(bool Play, bool Forward, int Speed)=0
Sets the current replay mode, which can be used to display some indicator, showing the user whether w...
void SetPending(bool Pending)
eTrackType GetCurrentSubtitleTrack(void) const
const cPositioner * positioner
void Exit(int ExitCode)
Set VDR exit code and initiate end of VDR main loop.
int weekdays
bitmask, lowest bits: SSFTWTM (the 'M' is the LSB)
time_t StartTime(void) const
void SetPosition(int Position)
void SetText(const char *Text)
static bool StateChanged(int &State)
virtual void SetVideoFormat(bool VideoFormat16_9)
Sets the output video format to either 16:9 or 4:3 (only useful if this device has an MPEG decoder)...
cString ChannelString(const cChannel *Channel, int Number)
static bool OsdSizeChanged(int &State)
Checks if the OSD size has changed and a currently displayed OSD needs to be redrawn.
virtual bool Filter(const cRecording *Recording) const =0
Returns true if the given Recording shall be displayed in the Recordings menu.
virtual void SetJump(const char *Jump)=0
Sets the prompt that allows the user to enter a jump point.
void Add(cTimer *Timer, cTimer *After=NULL)
virtual eOSState ProcessKey(eKeys Key)
void SetNeedsFastResponse(bool NeedsFastResponse)
void I18nSetLocale(const char *Locale)
Sets the current locale to Locale.
static const cSchedules * Schedules(cSchedulesLock &SchedulesLock)
Caller must provide a cSchedulesLock which has to survive the entire time the returned cSchedules is ...
virtual void SetRecording(const cRecording *Recording)
Sets the recording that is currently being played.
cNestedItemList RecordingCommands
cString IndexToHMSF(int Index, bool WithFrame, double FramesPerSecond)
const cChannel * Channel(void) const
bool SetCurrentAudioTrack(eTrackType Type)
Sets the current audio track to the given Type.
static void SetRecording(const char *FileName)
static int CurrentVolume(void)
bool ChangeName(const char *NewName)
Changes the name of this recording to the given value.
A steerable satellite dish generally points to the south on the northern hemisphere, and to the north on the southern hemisphere (unless you're located directly on the equator, in which case the general direction is "up").
void EnsureSubtitleTrack(void)
Makes sure one of the preferred language subtitle tracks is selected.
static const char * Name(void)
virtual int Compare(const cListObject &ListObject) const
Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".
virtual const char * Description(void)=0
void SetEventFromSchedule(const cSchedules *Schedules=NULL)
cDisplayChannel(int Number, bool Switched)
bool Transferring(void) const
Returns true if we are currently in Transfer Mode.
virtual void SetMarks(const cMarks *Marks)
Sets the editing marks to Marks, which shall be used to display the progress bar through a cProgressB...
const char * Text(void) const
int PathIsInUse(const char *Path)
Checks whether any recording in the given Path is currently in use and therefore the whole Path shall...
bool Recording(void) const
cTimer * GetTimer(cTimer *Timer)
cRecording * GetByName(const char *FileName)
static int CurrentChannel(void)
Returns the number of the current channel on the primary device.
const char * Name(void) const
const char * I18nLocale(int Language)
Returns the locale code of the given Language (which is an index as returned by I18nCurrentLanguage()...
static cPlugin * CallFirstService(const char *Id, void *Data=NULL)
cMark * GetNext(int Position)
T * Next(const T *object) const
static cDisplayTracks * currentDisplayTracks
void MarkMove(int Frames, bool MarkRequired)
void GetRecordingsSortMode(const char *Directory)
cMenuCommands(const char *Title, cList< cNestedItem > *Commands, const char *Parameters=NULL)
virtual void Flush(void)
Actually draws the OSD display to the output device.
static bool BondDevices(const char *Bondings)
Bonds the devices as defined in the given Bondings string.
char * descriptions[ttMaxTrackTypes+1]
virtual cOsdItem * GetOsdItem(void)=0
Returns all the OSD items necessary for editing the source specific parameters of the channel that wa...
bool Modified(int &State)
Returns true if any of the timers have been modified, which is detected by State being different than...
void DecBeingEdited(void)
int AdaptiveSkipAlternate
virtual ~cDisplayVolume()
virtual bool HasUserIO(void)
Returns true if there is a pending user interaction, which shall be retrieved via GetMenu() or GetEnq...
cListObject * Next(void) const
virtual cOsdObject * GetInfo(void)
Returns an OSD object that displays information about the currently played programme.
virtual cCiMenu * GetMenu(void)
Gets a pending menu, or NULL if there is no menu.
cSkinDisplayTracks * displayTracks
bool FromString(const char *s)
bool SwitchChannel(const cChannel *Channel, bool LiveView)
Switches the device to the given Channel, initiating transfer mode if necessary.
virtual cSkinDisplayReplay * DisplayReplay(bool ModeOnly)=0
Creates and returns a new object for displaying replay progress.
void IncBeingEdited(void)
char FontOsd[MAXFONTNAME]
const char * Description(void)
Returns a user visible, single line description of this theme.
int GetNextNormal(int Idx)
bool TimedOut(void) const
virtual bool IsMoving(void) const
Returns true if the dish is currently moving as a result of a call to GotoPosition() or GotoAngle()...
tChannelID ChannelID(void) const
static cString EditedFileName(const char *FileName)
Returns the full path name of the edited version of the recording with the given FileName.
static int GetMDay(time_t t)
bool HasFlags(uint Flags) const
static void SleepMs(int TimeoutMs)
Creates a cCondWait object and uses it to sleep for TimeoutMs milliseconds, immediately giving up the...
cOsdItem * cancelEditingItem
void SetText(const char *Text, bool Copy=true)
cSkinDisplayVolume * displayVolume
void SetSelectable(bool Selectable)
int GetPrevNormal(int Idx)
const cList< cEvent > * Events(void) const
int GetNumRecordingsInPath(const char *Path)
Returns the total number of recordings in the given Path, including all sub-folders of Path...
static void MsgSetAudioChannel(int AudioChannel)
bool Load(const char *FileName, bool OnlyDescriptions=false)
Loads the theme data from the given file.
void ClrAvailableTracks(bool DescriptionsOnly=false, bool IdsOnly=false)
Clears the list of currently available tracks.
static void UpdateOsdSize(bool Force=false)
Inquires the actual size of the video display and adjusts the OSD and font sizes accordingly.
const cEvent * GetEventAround(time_t Time) const
cSourceParams SourceParams
static const cCursesFont Font
bool Open(const char *Command, const char *Mode)
#define IS_AUDIO_TRACK(t)
virtual cMenuSetupPage * SetupMenu(void)
virtual ~cDisplayChannel()
bool Delete(void)
Changes the file name so that it will no longer be visible in the "Recordings" menu Returns false in ...
cList< cNestedItem > * SubItems(void)
bool Put(uint64_t Code, bool Repeat=false, bool Release=false)
void SetMarks(cMarks *Marks)
cShutdownHandler ShutdownHandler
const char * InstantId(void)
cSkinDisplayTracks * displayTracks
static int IsOpen(void)
Returns true if there is currently a level 0 OSD open.
virtual ~cReplayControl()
void SetModified(bool ByUser=false)
int GetNextGroup(int Idx)
void IncBeingEdited(void)
#define ICON_CLOCK_UH_UTF8
static void Stop(const char *InstantId)
bool HasRecordingsSortMode(const char *Directory)
const char * Provider(void) const
static cDisplaySubtitleTracks * Create(void)
cRecordingsHandler RecordingsHandler
virtual ~cRecordControl()
time_t day
midnight of the day this timer shall hit, or of the first day it shall hit in case of a repeating tim...
#define RUC_AFTERRECORDING
cChannel * GetByChannelID(tChannelID ChannelID, bool TryWithoutRid=false, bool TryWithoutPolarization=false)
cString & CompactChars(char c)
Compact any sequence of characters 'c' to a single character, and strip all of them from the beginnin...
bool MoveRecordings(const char *OldPath, const char *NewPath)
Moves all recordings in OldPath to NewPath.
void Stop(bool ExecuteUserCommand=true)
bool GetIndex(int &Current, int &Total, bool SnapToIFrame=false)
static void Launch(cControl *Control)
void MarkJump(bool Forward)
static const char * LastReplayed(void)
eKeys Message(eMessageType Type, const char *s, int Seconds=0)
Displays the given message, either through a currently visible display object that is capable of doin...
static void MsgOsdTextItem(const char *Text, bool Scroll=false)
virtual eOSState ProcessKey(eKeys Key)
bool HasTimer(void) const
bool ShowProgress(bool Initial)
const char * Title(void) const
virtual bool Reset(void)
Resets the CAM in this slot.
static cDisplaySubtitleTracks * currentDisplayTracks
cString BaseName(void) const
Returns the base name of this recording (without the video directory and folder). ...
int GetUsage(const char *FileName)
Returns the usage type for the given FileName.
eOSState ProcessKey(eKeys Key)
bool GetReplayMode(bool &Play, bool &Forward, int &Speed)
static const char * GetInstantId(const char *LastInstantId)
const char * DefaultFontFix
static bool HasPlugins(void)
static void TriggerLastActivity(void)
Simulates user activity, for instance to keep the current menu open even if no remote control key has...
static void MsgSetAudioTrack(int Index, const char *const *Tracks)
static void MsgOsdProgramme(time_t PresentTime, const char *PresentTitle, const char *PresentSubtitle, time_t FollowingTime, const char *FollowingTitle, const char *FollowingSubtitle)
const char * Description(void) const
static cRecordControl * RecordControls[]
virtual void SetProgress(int Current, int Total)=0
This function will be called whenever the position in or the total length of the recording has change...
const cSchedule * GetSchedule(tChannelID ChannelID) const
void TimeSearchProcess(eKeys Key)
cString ToDescr(void) const
virtual cCiEnquiry * GetEnquiry(void)
Gets a pending enquiry, or NULL if there is no enquiry.
static void ClearLastReplayed(const char *FileName)
static int VideoDiskSpace(int *FreeMB=NULL, int *UsedMB=NULL)
int GetNumSequences(void)
Returns the actual number of sequences to be cut from the recording.
static void MsgOsdChannel(const char *Text)
static void MsgSetSubtitleTrack(int Index, const char *const *Tracks)
void DecBeingEdited(void)
const cEvent * lastFollowing
cAdaptiveSkipper adaptiveSkipper
bool HasUniqueChannelID(cChannel *NewChannel, cChannel *OldChannel=NULL)
virtual eOSState ProcessKey(eKeys Key)
cListObject * Prev(void) const
virtual const char * MainMenuEntry(void)
void Del(cListObject *Object, bool DeleteObject=true)
static void Process(eKeys Key)
void DelAll(void)
Deletes/terminates all operations.
char FontFix[MAXFONTNAME]
int ShowChannelNamesWithSource
static void Process(eKeys Key)
static void MsgOsdClear(void)
cChannel * GetByNumber(int Number, int SkipGap=0)
void EnsureAudioTrack(bool Force=false)
Makes sure an audio track is selected that is actually available.
static cOsdObject * pluginOsdObject
void Reply(const char *s)
cMark * Get(int Position)
static cDevice * PrimaryDevice(void)
Returns the primary device.
void SetFlags(uint Flags)
virtual void SetTotal(const char *Total)=0
Sets the total length of the recording, as a user readable string if the form "h:mm:ss".
static bool GetAvailableFontNames(cStringList *FontNames, bool Monospaced=false)
Queries the font configuration for a list of available font names, which is returned in FontNames...
#define MAXEPGBUGFIXLEVEL
const cStringList * I18nLanguages(void)
Returns the list of available languages.
virtual bool HasMMI(void)
Returns 'true' if the CAM in this slot has an active MMI.
cChannel * NextAvailableChannel(cChannel *Channel, int Direction)
virtual ~cDisplayTracks()
static cDisplayTracks * Create(void)
void StopReplay(void)
Stops the current replay session (if any).
const tTrackId * GetTrack(eTrackType Type)
Returns a pointer to the given track id, or NULL if Type is not less than ttMaxTrackTypes.
virtual const char * GetCamName(void)
Returns the name of the CAM in this slot, or NULL if there is no ready CAM in this slot...
cSkinDisplayChannel * displayChannel
const char * File(void) const
int GetAudioChannel(void)
Gets the current audio channel, which is stereo (0), mono left (1) or mono right (2).
bool IsSingleEvent(void) const
int I18nNumLanguagesWithLocale(void)
Returns the number of entries in the list returned by I18nLanguages() that actually have a locale...
virtual void Move(int From, int To)
cRecordings Recordings
Any access to Recordings that loops through the list of recordings needs to hold a thread lock on thi...
bool ConfirmRestart(bool Ask)
Check for background activity that blocks restart.
static cReplayControl * currentReplayControl
static void SetCurrentChannel(const cChannel *Channel)
Sets the number of the current channel on the primary device, without actually switching to it...
void Add(int Position)
If this cMarks object is used by multiple threads, the caller must Lock() it before calling Add() and...
cString GetTimeString(void) const
void IncRecordingsSortMode(const char *Directory)
int NumComponents(void) const
const char * Description(void) const
const char * Name(void) const
Returns the full name of the recording (without the video directory.
virtual void CancelActivation(void)
Cancels a previously started activation (if any).
void AssertFreeDiskSpace(int Priority, bool Force)
The special Priority value -1 means that we shall get rid of any deleted recordings faster than norma...
virtual void SetAudioChannel(int AudioChannel)=0
Sets the audio channel indicator.
eTrackType types[ttMaxTrackTypes]
static cRecordControl * GetRecordControl(const char *FileName)
void DelByName(const char *FileName)
static cPlugin * GetPlugin(int Index)
virtual ~cDisplaySubtitleTracks()
const char * Description(void) const
void Sort(bool IgnoreCase=false)
void ClearSortNames(void)
int SecondsToFrames(int Seconds, double FramesPerSecond)
static cDevice * ActualDevice(void)
Returns the actual receiving device in case of Transfer Mode, or the primary device otherwise...
bool StateChanged(int &State)
int Priority(void)
Returns the priority of the device this slot is currently assigned to, or IDLEPRIORITY if it is not a...
void SetKeepTracks(bool KeepTracks)
Controls whether the current audio and subtitle track settings shall be kept as they currently are...
const cComponents * Components(void) const
cString Folder(void) const
Returns the name of the folder this recording is stored in (without the video directory).
virtual void SetPositioner(const cPositioner *Positioner)
Sets the Positioner used to move the satellite dish.
char language[MAXLANGCODE2]
void I18nSetLanguage(int Language)
Sets the current language index to Language.
bool Load(const char *RecordingFileName, double FramesPerSecond=DEFAULTFRAMESPERSECOND, bool IsPesRecording=false)
bool SwitchTo(int Number)
time_t FirstDay(void) const
static cOsdObject * PluginOsdObject(void)
bool DeleteMarks(void)
Deletes the editing marks from this recording (if any).
virtual bool ProvidesSource(int Source) const
Returns true if this device can provide the given source.
#define ICON_RUNNING_UTF8
virtual void SetCurrent(const char *Current)=0
Sets the current position within the recording, as a user readable string if the form "h:mm:ss...
char NameInstantRecord[NAME_MAX+1]
bool Active(void)
Checks whether there is currently any operation running and starts the next one form the list if the ...
virtual bool EnterMenu(void)
Requests the CAM in this slot to start its menu.
virtual void SetEvents(const cEvent *Present, const cEvent *Following)=0
Sets the Present and Following EPG events.
void SetAudioChannel(int AudioChannel)
Sets the audio channel to stereo (0), mono left (1) or mono right (2).
cReplayControl(bool PauseLive=false)
void Goto(int Index, bool Still=false)
int SkipFrames(int Frames)
#define IS_DOLBY_TRACK(t)
void Initialize(int *InitialValue, double FramesPerSecond)
char * ExchangeChars(char *s, bool ToFileSystem)
const char * ShortText(void) const
bool SetCurrentSubtitleTrack(eTrackType Type, bool Manual=false)
Sets the current subtitle track to the given Type.
const char * DefaultFontOsd
#define MAXVIDEOFILESIZETS
static bool PauseLiveVideo(void)
cSkin * Current(void)
Returns a pointer to the current skin.
bool Assign(cDevice *Device, bool Query=false)
Assigns this CAM slot to the given Device, if this is possible.
const char * FileName(void) const
Returns the full path name to the recording directory, including the video directory and the actual '...
static void ForceCheck(void)
To avoid unnecessary load, the video disk usage is only actually checked every DISKSPACECHEK seconds...
virtual bool IsActivating(void)
Returns true if this CAM slot is currently activating a smart card.
void Del(cTimer *Timer, bool DeleteObject=true)
void SkipSeconds(int Seconds)
bool Update(bool Force=false)
eTrackType GetCurrentAudioTrack(void) const
const cEvent * lastPresent
virtual cSkinDisplayTracks * DisplayTracks(const char *Title, int NumTracks, const char *const *Tracks)=0
Creates and returns a new object for displaying the available tracks.
T * Prev(const T *object) const
bool SetCurrent(const char *Name=NULL)
Sets the current skin to the one indicated by name.
static void Shutdown(void)
virtual cSkinDisplayChannel * DisplayChannel(bool WithInfo)=0
Creates and returns a new object for displaying the current channel.
void Del(const char *FileName)
Deletes the given FileName from the list of operations.
void AddByName(const char *FileName, bool TriggerUpdate=true)
bool IsPesRecording(void) const
int IsInUse(void) const
Checks whether this recording is currently in use and therefore shall not be tampered with...
void RequestEmergencyExit(void)
Requests an emergency exit of the VDR main loop.
static cDisplayVolume * currentDisplayVolume
int SlotNumber(void)
Returns the number of this CAM slot within the whole system.
virtual const cPositioner * Positioner(void) const
Returns a pointer to the positioner (if any) this device has used to move the satellite dish to the r...
The cDevice class is the base from which actual devices can be derived.
bool Add(int Usage, const char *FileNameSrc, const char *FileNameDst=NULL)
Adds the given FileNameSrc to the recordings handler for (later) processing.
static void MsgRecording(const cDevice *Device, const char *Name, const char *FileName, bool On)
#define ICON_TV_CRYPTED_UTF8
static const char * NowReplaying(void)
char * descriptions[ttMaxTrackTypes+1]
uint64_t Elapsed(void) const
virtual void SetData(cChannel *Channel)=0
Sets all source specific parameters to those of the given Channel.
bool HasMarks(void)
Returns true if this recording has any editing marks.
static void MsgReplaying(const cControl *Control, const char *Name, const char *FileName, bool On)
static cString PrintDay(time_t Day, int WeekDays, bool SingleByteChars)
virtual void SetChannel(const cChannel *Channel, int Number)=0
Sets the current channel to Channel.
cDevice * Device(void)
Returns the device this CAM slot is currently assigned to.
const cEvent * GetFollowingEvent(void) const
static bool Start(cTimer *Timer=NULL, bool Pause=false)