36#define MAXWAIT4EPGINFO 3
38#define NEWTIMERLIMIT 120
43#define MAXRECORDCONTROLS (MAXDEVICES * MAXRECEIVERS)
44#define MAXINSTANTRECTIME (24 * 60 - 1)
45#define MAXWAITFORCAMMENU 10
46#define CAMMENURETRYTIMEOUT 3
47#define CAMRESPONSETIMEOUT 5
48#define PROGRESSTIMEOUT 100
49#define MINFREEDISK 300
50#define NODISKSPACEDELTA 300
51#define MAXCHNAMWIDTH 16
53#define CHNUMWIDTH (numdigits(cChannels::MaxNumber()) + 1)
54#define CHNAMWIDTH (min(MAXCHNAMWIDTH, cChannels::MaxShortChannelNameLength() + 1))
60 virtual void Set(
void)
override;
103 virtual void Set(
void)
override;
195 *
data.portalName = 0;
242 int oldSource =
data.source;
248 bool Modified =
false;
299 virtual void Set(
void)
override;
352#define CHANNELNUMBERTIMEOUT 1000
359 void Set(
bool Force =
false);
368 virtual void Move(
int From,
int To)
override;
397 for (
const cChannel *Channel = Channels->First(); Channel; Channel = Channels->
Next(Channel)) {
401 if (Channel == CurrentChannel)
411 SetHelp(
tr(
"Button$Edit"),
tr(
"Button$New"),
tr(
"Button$Delete"),
tr(
"Button$Mark"));
446 if (!ci->Channel()->GroupSep() && ci->Channel()->Number() ==
number) {
500 bool Deleted =
false;
503 int DeletedChannel = Channel->
Number();
505 if (Timers->UsesChannel(Channel)) {
511 if (CurrentChannel && Channel == CurrentChannel) {
515 CurrentChannel = Channels->
Get(n);
516 CurrentChannelNr = 0;
518 Channels->
Del(Channel);
521 isyslog(
"channel %d deleted", DeletedChannel);
523 if (CurrentChannel && CurrentChannel->
Number() != CurrentChannelNr) {
539 cChannel *CurrentChannel = Channels->GetByNumber(CurrentChannelNr);
542 if (FromChannel && ToChannel) {
543 int FromNumber = FromChannel->
Number();
544 int ToNumber = ToChannel->
Number();
545 if (Channels->MoveNeedsDecrement(FromChannel, ToChannel)) {
546 ToChannel = Channels->
Prev(ToChannel);
549 Channels->Move(FromChannel, ToChannel);
553 isyslog(
"channel %d moved to %d", FromNumber, ToNumber);
554 if (CurrentChannel && CurrentChannel->
Number() != CurrentChannelNr) {
556 Channels->SwitchTo(CurrentChannel->
Number());
574 if (
cChannel *Channel = MenuEditChannel->Channel()) {
601 if (!ci->Channel()->GroupSep() && ci->Channel()->Number() == CurrentChannelNr) {
634 text = Text ? strdup(Text) : NULL;
679 virtual void Set(
void)
override;
714:
cOsdMenu(Folder ?
tr(
"Edit folder") :
tr(
"New folder"), 12)
743 if (strcmp(Folder->Text(),
name) == 0) {
748 char *p = strpbrk(
name,
"\\{}#~");
823#define FOLDERDELIMCHARSUBST 0x01
831 for (Folder =
List->First(); Folder; Folder =
List->Next(Folder)) {
832 if (strcmp(Path, Folder->
Text()) == 0)
844 for (
const cRecording *Recording = Recordings->
First(); Recording; Recording = Recordings->
Next(Recording)) {
845 cString Folder = Recording->Folder();
847 if (Dirs.
Find(Folder) < 0)
848 Dirs.
Append(strdup(Folder));
851 for (
int i = 0; i < Dirs.
Size(); i++) {
852 if (
char *s = Dirs[i])
864 RecordingsStateKey.
Remove();
877 Add(FolderItem, CurrentFolder ? strcmp(Folder->Text(), CurrentFolder) == 0 :
false);
889 if (strncmp(Folder->Folder()->Text(), Path, p - Path) == 0) {
926 if (Folder &&
Interface->Confirm(Folder->
Folder()->
SubItems() ?
tr(
"Delete folder and all sub folders?") :
tr(
"Delete folder?"))) {
953 Set(mef->GetFolder());
1071 SetHelp(
tr(
"Button$Folder"),
data.weekdays ?
tr(
"Button$Single") :
tr(
"Button$Repeating"), *
data.pattern ?
tr(
"Button$Regular") :
tr(
"Button$Pattern"));
1089 if (Initial && !*
data.pattern) {
1098 if (!*
data.pattern) {
1120 cString Folder = mf->GetFolder();
1124 else if (p !=
data.file)
1125 memmove(
data.file, p, strlen(p) + 1);
1166 data.channel = Channel;
1172 strcpy(
data.file,
data.Channel()->ShortName(
true));
1180 Timers->Del(
timer,
false);
1192 if (
data.Local() && !
timer->IsPatternTimer() &&
data.IsPatternTimer())
1193 data.SetEvent(NULL);
1196 timer->TriggerRespawn();
1198 timer->SetEventFromSchedule(Schedules);
1205 day->ToggleRepeating();
1233 virtual void Set(
void)
override;
1252 if (
timer->WeekDays())
1253 day =
timer->PrintDay(0,
timer->WeekDays(),
false);
1260 time_t Day =
timer->Day();
1261 localtime_r(&Day, &tm_r);
1263 strftime(buffer,
sizeof(buffer),
"%Y%m%d", &tm_r);
1266 const char *File =
timer->Pattern();
1270 File =
timer->Event()->Title();
1276 File =
timer->File();
1281 timer->Channel()->Number(),
1283 *name && **name ?
" " :
"",
1285 timer->Start() / 100,
1286 timer->Start() % 100,
1287 timer->Stop() / 100,
1288 timer->Stop() % 100,
1290 timer->IsPatternTimer() ?
"{" :
"",
1292 timer->IsPatternTimer() ?
"}" :
""));
1345 for (
const cTimer *Timer = Timers->First(); Timer; Timer = Timers->
Next(Timer)) {
1349 if (CurrentTimer && Timer->
Id() == CurrentTimer->
Id() && (!Timer->Remote() && !CurrentTimer->
Remote() || Timer->Remote() && CurrentTimer->
Remote() && strcmp(Timer->Remote(), CurrentTimer->
Remote()) == 0))
1370 int NewHelpKeys = 0;
1409 StateKey.
Remove(Timer != NULL);
1425 if (
Setup.SVDRPPeering && *
Setup.SVDRPDefaultHost)
1436 bool TimerRecording = Timer->
Recording();
1438 if (
Interface->Confirm(
tr(
"Delete timer?")) && (!TimerRecording ||
Interface->Confirm(
tr(
"Timer still recording - really delete?")))) {
1470 if (Timer && Timer->
Event())
1498 Add(CurrentItem,
true);
1526 SetHelp(TimerMatch ==
tmFull ?
tr(
"Button$Timer") :
tr(
"Button$Record"), NULL, NULL, CanSwitch ?
tr(
"Button$Switch") : NULL);
1537 if (
event->Description())
1627 if (
event->Schedule() &&
event->Schedule()->HasTimer())
1635 char v =
event->Vps() && (
event->Vps() -
event->StartTime()) ?
'V' :
' ';
1636 char r =
event->SeenWithin(30) &&
event->IsRunning() ?
'*' :
' ';
1638 cString eds =
event->GetDateString();
1640 buffer =
cString::sprintf(
"%d\t%.*s\t%.*s\t%s\t%c%c%c\t%s",
channel->Number(),
Utf8SymChars(csn, 999), csn,
Utf8SymChars(eds, 6), *eds, *
event->GetTimeString(), t, v, r,
event->Title());
1692 for (
const cChannel *Channel = Channels->
First(); Channel; Channel = Channels->
Next(Channel)) {
1693 if (!Channel->GroupSep()) {
1695 if (
const cEvent *Event = Now ? Schedule->GetPresentEvent() : Schedule->GetFollowingEvent())
1706 bool result =
false;
1721 int NewHelpKeys = 0;
1724 NewHelpKeys |= 0x02;
1726 NewHelpKeys |= 0x01;
1728 NewHelpKeys |= 0x04;
1730 NewHelpKeys |= 0x08;
1733 NewHelpKeys |= 0x10;
1739 const char *Red[] = { NULL,
tr(
"Button$Record"),
tr(
"Button$Timer") };
1740 SetHelp(Red[NewHelpKeys & 0x03],
now ?
tr(
"Button$Next") :
tr(
"Button$Now"),
tr(
"Button$Schedule"),
canSwitch ?
tr(
"Button$Switch") : NULL);
1775 Timers->SetExplicitModify();
1776 if (item->timerMatch ==
tmFull) {
1777 if (
cTimer *Timer = Timers->GetMatch(item->event))
1781 if (
Setup.SVDRPPeering && *
Setup.SVDRPDefaultHost)
1783 if (
cTimer *t = Timers->GetTimer(Timer)) {
1791 Timers->SetModified();
1796 else if (Timer->
Remote())
1859 if (HadSubMenu &&
Update())
1907 Set(Timers, Channels, NULL,
true);
1923 const cEvent *Event = NULL;
1926 Event = CurrentItem->
event;
1932 bool Refresh =
false;
1958 const cEvent *PresentEvent = Event ? Event : Schedule->GetPresentEvent();
1959 time_t
now = time(NULL) -
Setup.EPGLinger * 60;
1960 for (
const cEvent *ev = Schedule->Events()->First(); ev; ev = Schedule->Events()->
Next(ev)) {
1961 if (ev->EndTime() >
now || ev == PresentEvent)
1978 time_t
now = time(NULL) -
Setup.EPGLinger * 60;
1979 for (
const cEvent *ev = Schedule->Events()->First(); ev; ev = Schedule->Events()->
Next(ev)) {
1980 if ((ev->EndTime() >
now || ev == Event) && !strcmp(ev->Title(), Event->
Title()))
1997 for (
const cChannel *ch = Channels->First(); ch; ch = Channels->
Next(ch)) {
1999 time_t
now = time(NULL) -
Setup.EPGLinger * 60;
2000 for (
const cEvent *ev = Schedule->Events()->First(); ev; ev = Schedule->Events()->
Next(ev)) {
2001 if ((ev->EndTime() >
now || ev == Event) && !strcmp(ev->Title(), Event->
Title()))
2017 for (
const cChannel *ch = Channels->First(); ch; ch = Channels->
Next(ch)) {
2019 time_t
now = time(NULL) -
Setup.EPGLinger * 60;
2020 for (
const cEvent *ev = Schedule->Events()->First(); ev; ev = Schedule->Events()->
Next(ev)) {
2021 if (ev->EndTime() >
now || ev == Event)
2031 bool result =
false;
2046 int NewHelpKeys = 0;
2049 NewHelpKeys |= 0x02;
2051 NewHelpKeys |= 0x01;
2055 NewHelpKeys |= 0x10;
2061 const char *Red[] = { NULL,
tr(
"Button$Record"),
tr(
"Button$Timer") };
2062 SetHelp(Red[NewHelpKeys & 0x03],
tr(
"Button$Now"),
tr(
"Button$Next"),
canSwitch ?
tr(
"Button$Switch") : NULL);
2072 Set(Timers, Channels, NULL,
true);
2082 Timers->SetExplicitModify();
2083 if (item->timerMatch ==
tmFull) {
2084 if (
cTimer *Timer = Timers->GetMatch(item->event))
2088 if (
Setup.SVDRPPeering && *
Setup.SVDRPDefaultHost)
2090 if (
cTimer *t = Timers->GetTimer(Timer)) {
2098 Timers->SetModified();
2103 else if (Timer->
Remote())
2120 if ((Channel = Channels->GetByChannelID(item->
event->
ChannelID(),
true)) != NULL) {
2121 if (!Channels->SwitchTo(Channel->
Number()))
2136 Set(Timers, Channels);
2154 ChannelNr = Channel->Number();
2179 Set(Timers, Channels, Channel,
true);
2198 if (
const cChannel *Channel = Channels->GetByChannelID(ei->ChannelID(),
true)) {
2200 Set(Timers, Channels, Channel,
true);
2203 else if (HadSubMenu &&
Update())
2222 const char *s = Command->Text();
2223 if (Command->SubItems())
2237 const char *p = strchr(s,
':');
2244 if (l > 1 && t[l - 1] ==
'?') {
2272 const char *cmd = *cmdbuf ? *cmdbuf : *
command;
2273 dsyslog(
"executing command '%s'", cmd);
2275 if (p.
Open(cmd,
"r")) {
2278 while ((c = fgetc(p)) != EOF) {
2280 if (
char *NewBuffer = (
char *)realloc(
result, l + 21))
2283 esyslog(
"ERROR: out of memory");
2294 esyslog(
"ERROR: can't open pipe for command '%s'", cmd);
2396 dsyslog(
"CAM %d: Menu ------------------",
camSlot->SlotNumber());
2406 for (
int i = 0; i <
ciMenu->NumEntries(); i++) {
2418 int Length =
ciEnquiry->ExpectedLength();
2422 dsyslog(
"CAM %d: Enquiry ------------------",
camSlot->SlotNumber());
2435 const char *p = strchr(s,
'\n');
2436 int l = p ? p - s : strlen(s);
2439 item->
SetText(strndup(s, l),
false);
2448 if (
ciMenu->Selectable()) {
2458 snprintf(buffer,
sizeof(buffer),
tr(
"Please enter %d digits!"),
ciEnquiry->ExpectedLength());
2484 else if (state ==
osBack) {
2511 if (CamSlot->HasUserIO())
2524#define osUserRecRenamed osUser1
2525#define osUserRecMoved osUser2
2526#define osUserRecRemoved osUser3
2527#define osUserRecEmpty osUser4
2574 for (
const cRecording *Recording = Recordings->First(); Recording; Recording = Recordings->
Next(Recording)) {
2575 if (Recording->IsInPath(
path)) {
2576 int FileSizeMB = Recording->FileSizeMB();
2577 if (FileSizeMB > 0 )
2578 DirSize += FileSizeMB;
2619 if (strcmp(NewPath,
path)) {
2620 int NumRecordings = 0;
2623 NumRecordings = Recordings->GetNumRecordingsInPath(
path);
2625 if (NumRecordings > 1 && !
Interface->Confirm(
cString::sprintf(
tr(
"Move entire folder containing %d recordings?"), NumRecordings)))
2630 Recordings->SetExplicitModify();
2631 Error = !Recordings->MoveRecordings(
path, NewPath);
2633 Recordings->SetModified();
2657 else if (Key ==
kOk)
2739 Add(
new cOsdItem(
tr(
"This recording is currently in use - no changes are possible!"),
osUnknown,
false));
2809 Skins.Message(
mtError,
tr(
"Not enough free disk space to start editing process!"));
2811 Skins.Message(
mtError,
tr(
"Error while queueing recording for cutting!"));
2819 if (strcmp(NewName,
recording->Name())) {
2823 if (access(*FileName, F_OK) != 0 ||
Interface->Confirm(
tr(
"Edited version already exists - overwrite?"))) {
2825 Skins.Message(
mtError,
tr(
"Error while queueing recording for copying!"));
2828 Recordings->AddByName(FileName);
2842 if (
Interface->Confirm(
tr(
"Rename recording to folder name?"))) {
2872 if (
const cRecording *Recording = Control->GetRecording()) {
2873 if (strcmp(
recording->FileName(), Recording->FileName()) == 0)
2874 Control->ClearEditingMarks();
2879 Skins.Message(
mtError,
tr(
"Error while deleting editing marks!"));
2895 bool Modified =
false;
2898 StateKey.
Remove(Modified);
2899 Skins.Message(
mtError,
tr(
"Error while changing priority/lifetime!"));
2911 if (strcmp(NewName, Recording->
Name())) {
2913 StateKey.
Remove(Modified);
2921 if (strcmp(Recording->
Folder(), OldFolder))
2924 StateKey.
Remove(Modified);
2927 StateKey.
Remove(Modified);
2965 virtual void Display(
void)
override;
2979 SetHelp(
tr(
"Button$Play"),
tr(
"Button$Rewind"), NULL,
tr(
"Button$Edit"));
3078 if (*
Text() ==
'\t')
3113:
cOsdMenu(Base ? Base :
tr(
"Recordings"), 9, 6, 6)
3116 base = Base ? strdup(Base) : NULL;
3136 if (!ri->IsDirectory())
3145 int NewHelpKeys = 0;
3153 switch (NewHelpKeys) {
3155 case 1:
SetHelp(
tr(
"Button$Open"), NULL, NULL,
tr(
"Button$Edit"));
break;
3168 const char *CurrentRecording = NULL;
3170 CurrentRecording = ri->Recording()->FileName();
3171 if (!CurrentRecording)
3179 for (
const cRecording *Recording = Recordings->
First(); Recording; Recording = Recordings->
Next(Recording)) {
3186 if (p->Name() && strcmp(p->Name(), Item->
Name()) == 0) {
3192 if (*Item->
Text() && !LastDir) {
3200 if (LastItem || LastDir) {
3202 if (strcmp(
path, Recording->Folder()) == 0)
3203 CurrentItem = LastDir ? LastDir : LastItem;
3205 else if (CurrentRecording && strcmp(CurrentRecording, Recording->FileName()) == 0)
3206 CurrentItem = LastDir ? LastDir : LastItem;
3242 const char *t = ri->
Name();
3286 if (
Interface->Confirm(
tr(
"Timer still recording - really delete?"))) {
3288 if (
cTimer *Timer = rc->Timer()) {
3291 if (Timer->IsSingleEvent()) {
3293 isyslog(
"deleted timer %s", *Timer->ToDescr());
3305 char *RemoteBuf = NULL;
3307 if (2 == sscanf(TimerId,
"%d@%m[^ \n]", &Id, &RemoteBuf) && Id != 0) {
3310 if (
Interface->Confirm(
tr(
"Timer still recording - really delete?"))) {
3312 if (
cTimer *Timer = Timers->GetById(Id, Remote)) {
3313 cTimer OldTimer = *Timer;
3316 if (Timer->IsSingleEvent()) {
3340 if (
Interface->Confirm(
tr(
"Delete recording?"))) {
3347 FileName = Recording->FileName();
3349 if (!
Interface->Confirm(
tr(
"Recording is being edited - really delete?")))
3363 if (!Recording || Recording->
Delete()) {
3389 if (ri->IsDirectory())
3467 ri->SetRecording(riSub->Recording());
3495 virtual void Store(
void)
override;
3530 virtual void Set(
void);
3621 bool ModifiedAppearance =
false;
3630 ModifiedAppearance =
true;
3633 if (
themes.NumThemes() &&
Skins.Current()->Theme()) {
3639 ModifiedAppearance =
true;
3641 ModifiedAppearance =
true;
3646 ModifiedAppearance =
true;
3648 ModifiedAppearance =
true;
3650 ModifiedAppearance =
true;
3651 if (
data.AlwaysSortFoldersFirst !=
Setup.AlwaysSortFoldersFirst ||
data.RecordingDirs !=
Setup.RecordingDirs ||
data.RecSortingDirection !=
Setup.RecSortingDirection) {
3653 Recordings->ClearSortNames();
3661 if (ModifiedAppearance)
3719 if (
data.SetSystemTime)
3737 if (
data.EPGLanguages[i] !=
::Setup.EPGLanguages[i]) {
3748 int oldSetSystemTime =
data.SetSystemTime;
3752 if (
numLanguages != oldnumLanguages ||
data.SetSystemTime != oldSetSystemTime) {
3754 data.EPGLanguages[i] = 0;
3757 for (k = 0; k < oldnumLanguages; k++) {
3758 if (
data.EPGLanguages[k] == l)
3761 if (k >= oldnumLanguages) {
3762 data.EPGLanguages[i] = l;
3822 SetHelp(NULL,
tr(
"Button$Audio"),
tr(
"Button$Subtitles"), NULL);
3835 if (
data.VideoFormat == 0)
3858 int oldVideoDisplayFormat =
::Setup.VideoDisplayFormat;
3859 bool oldVideoFormat =
::Setup.VideoFormat;
3860 bool newVideoFormat =
data.VideoFormat;
3861 int oldDisplaySubtitles =
::Setup.DisplaySubtitles;
3862 int newDisplaySubtitles =
data.DisplaySubtitles;
3876 bool DoSetup =
data.VideoFormat != newVideoFormat;
3877 DoSetup |=
data.DisplaySubtitles != newDisplaySubtitles;
3880 data.AudioLanguages[i] = 0;
3883 for (k = 0; k < oldnumAudioLanguages; k++) {
3884 if (
data.AudioLanguages[k] == l)
3887 if (k >= oldnumAudioLanguages) {
3888 data.AudioLanguages[i] = l;
3898 data.SubtitleLanguages[i] = 0;
3901 for (k = 0; k < oldnumSubtitleLanguages; k++) {
3902 if (
data.SubtitleLanguages[k] == l)
3905 if (k >= oldnumSubtitleLanguages) {
3906 data.SubtitleLanguages[i] = l;
3920 if (
::Setup.VideoDisplayFormat != oldVideoDisplayFormat)
3922 if (
::Setup.VideoFormat != oldVideoFormat)
3924 if (
::Setup.DisplaySubtitles != oldDisplaySubtitles)
3964 int NumSatDevices = 0;
3969 if (NumSatDevices > 1) {
3979 if (
data.UsePositioner) {
3992 int oldDiSEqC =
data.DiSEqC;
3993 int oldUsePositioner =
data.UsePositioner;
3994 bool DeviceBondingsChanged =
false;
3997 DeviceBondingsChanged = strcmp(
data.DeviceBondings, NewDeviceBondings) != 0;
3998 data.DeviceBondings = NewDeviceBondings;
4002 if (Key !=
kNone && (
data.DiSEqC != oldDiSEqC ||
data.UsePositioner != oldUsePositioner))
4004 else if (DeviceBondingsChanged)
4030 const char *Activating =
"";
4031 const char *CamName =
camSlot->GetCamName();
4033 switch (
camSlot->ModuleStatus()) {
4034 case msReset: CamName =
tr(
"CAM reset");
break;
4035 case msPresent: CamName =
tr(
"CAM present");
break;
4036 case msReady: CamName =
tr(
"CAM ready");
break;
4037 default: CamName =
"-";
break;
4040 else if (
camSlot->IsActivating())
4042 Activating =
tr(
" (activating)");
4046 CamSlot->Devices(DeviceNumbers);
4048 if (DeviceNumbers.
Size() > 0) {
4051 for (
int i = 0; i < DeviceNumbers.
Size(); i++)
4052 AssignedDevice =
cString::sprintf(
"%s %d", *AssignedDevice, DeviceNumbers[i]);
4056 if (strcmp(buffer,
Text()) != 0) {
4085 if (CamSlot->IsMasterSlot())
4096 const char *NewActivationHelp =
"";
4100 NewActivationHelp =
tr(
"Button$Cancel activation");
4102 NewActivationHelp =
tr(
"Button$Activate");
4116 time_t t0 = time(NULL);
4150 if (Device->ProvidesChannel(Channel)) {
4152 if (CamSlot->
Assign(Device,
true)) {
4155 if (CamSlot->
Assign(Device)) {
4156 if (Device->SwitchChannel(Channel,
true)) {
4256 virtual void Store(
void)
override;
4273 Add(
new cMenuEditIntItem(
tr(
"Setup.Replay$Initial duration for adaptive skipping (s)"), &
data.AdaptiveSkipInitial, 10, 600));
4274 Add(
new cMenuEditIntItem(
tr(
"Setup.Replay$Reset timeout for adaptive skipping (s)"), &
data.AdaptiveSkipTimeout, 0, 10));
4278 Add(
new cMenuEditIntItem(
tr(
"Setup.Replay$Skip distance with Green/Yellow keys in repeat (s)"), &
data.SkipSecondsRepeat, 5, 600));
4286 Recordings->ResetResume();
4325 if (
data.SVDRPPeering) {
4338 Add(
new cMenuEditIntItem(
tr(
"Setup.Miscellaneous$Initial volume"), &
data.InitialVolume, -1, 255,
tr(
"Setup.Miscellaneous$as before")));
4350 bool OldSVDRPPeering =
data.SVDRPPeering;
4351 bool ModifiedSVDRPSettings =
false;
4352 bool ModifiedShowChannelNamesWithSource =
false;
4354 ModifiedSVDRPSettings =
data.SVDRPPeering !=
Setup.SVDRPPeering || strcmp(
data.SVDRPHostName,
Setup.SVDRPHostName);
4355 ModifiedShowChannelNamesWithSource =
data.ShowChannelNamesWithSource !=
Setup.ShowChannelNamesWithSource;
4358 if (ModifiedShowChannelNamesWithSource) {
4360 for (
cChannel *Channel = Channels->First(); Channel; Channel = Channels->
Next(Channel))
4361 Channel->UpdateNameSource();
4363 if (
data.SVDRPPeering != OldSVDRPPeering)
4365 if (ModifiedSVDRPSettings) {
4369 Timers->SetExplicitModify();
4370 if (Timers->StoreRemoteTimers(NULL, NULL))
4371 Timers->SetModified();
4407 for (
int i = 0; ; i++) {
4431 Skins.Message(
mtInfo,
tr(
"This plugin has no setup parameters!"));
4449 virtual void Set(
void);
4467 snprintf(buffer,
sizeof(buffer),
"%s - VDR %s",
tr(
"Setup"),
VDRVERSION);
4537#define STOP_RECORDING trNOOP(" Stop recording ")
4603 for (
int i = 0; ; i++) {
4627 bool result =
false;
4629 bool NewReplaying =
false;
4634 if (Force || NewReplaying !=
replaying) {
4669 const char *s = NULL;
4749 default:
switch (Key) {
4751 case kRed:
if (!HadSubMenu)
4754 case kGreen:
if (!HadSubMenu) {
4759 case kYellow:
if (!HadSubMenu)
4762 case kBlue:
if (!HadSubMenu)
4774 bool DoDisplay =
Update();
4795 if (
const cChannel *Channel = Channels->GetByNumber(LiveChannel)) {
4797 if (
const cSchedule *Schedule = Schedules->GetSchedule(Channel)) {
4798 const cEvent *Present = Schedule->GetPresentEvent();
4807 Components = Recording->Info()->Components();
4812 int indexSubtitle = 0;
4816 case 2:
if (p->
type == 0x05)
4849 channel = Channels->GetByNumber(Number);
4902 const cEvent *Present = Schedule->GetPresentEvent();
4903 const cEvent *Following = Schedule->GetFollowingEvent();
4929 Channel = Direction > 0 ? Channels->
Next(Channel) : Channels->
Prev(Channel);
4930 if (!Channel &&
Setup.ChannelsWrap)
4931 Channel = Direction > 0 ? Channels->First() : Channels->Last();
4970 while (ch && (ch = Channels->
Next(ch)) != NULL) {
4972 if (n <= ch->Number() && ch->
Number() < n + m) {
5004 group = Channel->Index();
5007 int SaveGroup =
group;
5069 channel = Channels->Get(Channels->GetNextNormal(
group));
5107 Channels->SwitchTo(NewChannel->
Number());
5112 bool PositionerMoving = Positioner && Positioner->
IsMoving();
5114 if (!PositionerMoving) {
5131#define VOLUMETIMEOUT 1000
5132#define MUTETIMEOUT 5000
5198#define TRACKTIMEOUT 5000
5213 if (TrackId && TrackId->
id) {
5216 if (i == CurrentAudioTrack)
5265 int oldTrack =
track;
5282 static int ac[] = { 1, 0, 2 };
5309 if (
track != oldTrack) {
5334 if (TrackId && TrackId->
id) {
5337 if (i == CurrentSubtitleTrack)
5383 int oldTrack =
track;
5409 if (
track != oldTrack) {
5447 ChannelsStateKey.
Remove();
5449 timer->SetPending(
true);
5450 timer->SetRecording(
true);
5451 event =
timer->Event();
5462 timer->SetPending(
false);
5463 timer->SetRecording(
false);
5472 SchedulesStateKey.
Remove();
5484 if (!
Timer && !LastReplayed)
5486 SchedulesStateKey.
Remove();
5501 SchedulesStateKey.
Remove();
5510#define INSTANT_REC_EPG_LOOKAHEAD 300
5519 if (
const cSchedule *Schedule = Schedules->GetSchedule(Channel)) {
5520 event = Schedule->GetEventAround(Time);
5523 dsyslog(
"got EPG info after %d seconds", seconds);
5529 dsyslog(
"waiting for EPG info...");
5532 dsyslog(
"no EPG info available");
5542 isyslog(
"timer %s %s with %d error%s", *
timer->ToDescr(), Finished ?
"finished" :
"stopped", Errors, Errors != 1 ?
"s" :
"");
5543 if (
timer->HasFlags(
tfAvoid) && Errors == 0 && Finished) {
5549 timer->SetRecording(
false);
5553 if (ExecuteUserCommand && Finished)
5562 timer->SetPending(
false);
5575 static time_t LastNoDiskSpaceMessage = 0;
5584 isyslog(
"not enough disk space to start recording%s%s", Timer ?
" timer " :
"", Timer ? *Timer->
ToDescr() :
"");
5586 LastNoDiskSpaceMessage = time(NULL);
5590 LastNoDiskSpaceMessage = 0;
5597 int Priority = Timer ? Timer->
Priority() : Pause ?
Setup.PausePriority :
Setup.DefaultPriority;
5600 dsyslog(
"switching device %d to channel %d %s (%s)", device->
DeviceNumber() + 1, Channel->Number(), *Channel->GetChannelID().ToString(), Channel->Name());
5608 if (!Timer || Timer->
Matches()) {
5617 else if (!Timer || !Timer->
Pending()) {
5618 isyslog(
"no free DVB device to record channel %d (%s)!", ch, Channel->Name());
5623 esyslog(
"ERROR: channel %d not defined!", ch);
5632 return Start(Timers, NULL, Pause);
5642 if (
id && strcmp(
id, InstantId) == 0) {
5689 if (LastInstantId && LastInstantId ==
RecordControls[i]->InstantId())
5690 LastInstantId = NULL;
5718 bool Result =
false;
5737 isyslog(
"stopping recording due to modification of channel %d (%s)", Channel->
Number(), Channel->
Name());
5766 int NewState =
state;
5767 bool Result = State != NewState;
5799 if (
Setup.AdaptiveSkipAlternate)
5834 if (
Setup.ProgressDisplayTime)
5850 Timers->SetExplicitModify();
5852 Timers->SetModified();
5866 if (
Setup.DelTimeshiftRec == 2 ||
Interface->Confirm(
tr(
"Delete timeshift recording?"))) {
5875 Recordings->SetExplicitModify();
5877 if (Recording->Delete()) {
5880 Recordings->SetModified();
5900 marks.Lock(StateKey);
5920 if (!Recordings->GetByName(
fileName))
5973 bool NormalPlay = (
Play && Speed == -1);
6014 int NumErrors = Errors ? Errors->
Size() : 0;
6018 if (
Setup.ShowRemainingTime)
6019 Index = Current - Index;
6041 strcpy(buf,
tr(
"Jump: "));
6042 int len = strlen(buf);
6051 sprintf(buf + len,
"%c%c:%c%c", ch10, ch1, cm10, cm1);
6057#define STAY_SECONDS_OFF_END 10
6130 if (
GetIndex(Current, Total,
true)) {
6133 marks.Lock(StateKey);
6141 Goto(Current,
true);
6156 if (
marks.Count()) {
6158 if (!
Setup.PauseOnMarkJump) {
6162 Goto(m->Position());
6166 Goto(m->Position(),
true);
6193 if ((m2 =
marks.Next(m)) != NULL)
6201 if ((m2 =
marks.Prev(m)) != NULL)
6210 else if (!MarkRequired)
6218 int NumErrors = Errors ? Errors->
Size() : 0;
6219 if (NumErrors > 0) {
6224 for (
int i = 0; i < NumErrors; i++) {
6225 int Position = Errors->
At(i);
6226 if (Position > Current + Offset) {
6227 int NextIFrame =
SkipFrames(Position - Current) + Offset;
6228 if (NextIFrame > Position) {
6230 Offset = NextIFrame - Current;
6234 Goto(Position,
true);
6238 if (Current < Total)
6242 for (
int i = NumErrors - 1; i >= 0; i--) {
6243 if (Errors->
At(i) < Current) {
6244 int Position = Errors->
At(i);
6245 Goto(Position,
true);
6263 else if (!
marks.GetNumSequences())
6268 Skins.Message(
mtError,
tr(
"Not enough free disk space to start editing process!"));
6286 m =
marks.GetNext(Current);
6288 if ((m->
Index() & 0x01) != 0 && !
Setup.SkipEdited)
6344 bool DoShowMode =
true;
6353 if (
Setup.MultiSpeedMode)
break;
6358 if (
Setup.MultiSpeedMode)
break;
6377 case kPrev:
if (
Setup.AdaptiveSkipPrevNext) {
6385 case kNext:
if (
Setup.AdaptiveSkipPrevNext) {
cString ChannelString(const cChannel *Channel, int Number)
#define LOCK_CHANNELS_READ
#define LOCK_CHANNELS_WRITE
void Initialize(int *InitialValue, double FramesPerSecond)
int Priority(void)
Returns the priority of the device this slot is currently assigned to, or IDLEPRIORITY if it is not a...
virtual bool EnterMenu(void)
Requests the CAM in this slot to start its menu.
virtual bool HasUserIO(void)
Returns true if there is a pending user interaction, which shall be retrieved via GetMenu() or GetEnq...
virtual bool Assign(cDevice *Device, bool Query=false)
Assigns this CAM slot to the given Device, if this is possible.
cDevice * Device(void)
Returns the device this CAM slot is currently assigned to.
virtual bool Reset(void)
Resets the CAM in this slot.
virtual void StartActivation(void)
Puts the CAM in this slot into a mode where an inserted smart card can be activated.
virtual bool IsActivating(void)
Returns true if this CAM slot is currently activating a smart card.
virtual bool CanActivate(void)
Returns true if there is a CAM in this slot that can be put into activation mode.
cCamSlot * MtdSpawn(void)
If this CAM slot can do MTD ("Multi Transponder Decryption"), a call to this function returns a cMtdC...
int SlotNumber(void)
Returns the number of this CAM slot within the whole system.
virtual void CancelActivation(void)
Cancels a previously started activation (if any).
const char * Name(void) const
bool GroupSep(void) const
const char * Provider(void) const
static cChannels * GetChannelsWrite(cStateKey &StateKey, int TimeoutMs=0)
Gets the list of channels for write access.
bool HasUniqueChannelID(const cChannel *NewChannel, const cChannel *OldChannel=NULL) const
static int MaxNumber(void)
int GetPrevNormal(int Idx) const
Get previous normal channel (not group)
static const cChannels * GetChannelsRead(cStateKey &StateKey, int TimeoutMs=0)
Gets the list of channels for read access.
void ReNumber(void)
Recalculate 'number' based on channel type.
const cChannel * GetByNumber(int Number, int SkipGap=0) const
void SetModifiedByUser(void)
const cChannel * GetByChannelID(tChannelID ChannelID, bool TryWithoutRid=false, bool TryWithoutPolarization=false) const
bool SwitchTo(int Number) const
void Del(cChannel *Channel)
Delete the given Channel from the list.
int GetNextNormal(int Idx) const
Get next normal channel (not group)
tComponent * Component(int Index) const
int NumComponents(void) const
static void SleepMs(int TimeoutMs)
Creates a cCondWait object and uses it to sleep for TimeoutMs milliseconds, immediately giving up the...
static cControl * Control(cMutexLock &MutexLock, bool Hidden=false)
Returns the current replay control (if any) in case it is currently visible.
double FramesPerSecond(void) const
static void Shutdown(void)
static void Launch(cControl *Control)
static cString EditedFileName(const char *FileName)
Returns the full path name of the edited version of the recording with the given FileName.
void SetKeepTracks(bool KeepTracks)
Controls whether the current audio and subtitle track settings shall be kept as they currently are,...
bool SetCurrentSubtitleTrack(eTrackType Type, bool Manual=false)
Sets the current subtitle track to the given Type.
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...
static cDevice * ActualDevice(void)
Returns the actual receiving device in case of Transfer Mode, or the primary device otherwise.
static cDevice * PrimaryDevice(void)
Returns the primary device.
eTrackType GetCurrentSubtitleTrack(void) const
static cDevice * GetDevice(int Index)
Gets the device with the given Index.
eTrackType GetCurrentAudioTrack(void) const
bool SwitchChannel(const cChannel *Channel, bool LiveView)
Switches the device to the given Channel, initiating transfer mode if necessary.
int DeviceNumber(void) const
Returns the number of this device (0 ... numDevices - 1).
static int CurrentChannel(void)
Returns the number of the current channel on the primary device.
void StopReplay(void)
Stops the current replay session (if any).
int GetAudioChannel(void)
Gets the current audio channel, which is stereo (0), mono left (1) or mono right (2).
void EnsureAudioTrack(bool Force=false)
Makes sure an audio track is selected that is actually available.
const tTrackId * GetTrack(eTrackType Type)
Returns a pointer to the given track id, or NULL if Type is not less than ttMaxTrackTypes.
static void SetCurrentChannel(int ChannelNumber)
Sets the number of the current channel on the primary device, without actually switching to it.
void SetAudioChannel(int AudioChannel)
Sets the audio channel to stereo (0), mono left (1) or mono right (2).
static int NumDevices(void)
Returns the total number of devices.
virtual void SetVideoDisplayFormat(eVideoDisplayFormat VideoDisplayFormat)
Sets the video display format to the given one (only useful if this device has an MPEG decoder).
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).
void ClrAvailableTracks(bool DescriptionsOnly=false, bool IdsOnly=false)
Clears the list of currently available tracks.
void EnsureSubtitleTrack(void)
Makes sure one of the preferred language subtitle tracks is selected.
static int CurrentVolume(void)
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.
bool SetCurrentAudioTrack(eTrackType Type)
Sets the current audio track to the given Type.
const cEvent * lastPresent
void DisplayChannel(void)
const cEvent * lastFollowing
cSkinDisplayChannel * displayChannel
virtual ~cDisplayChannel() override
virtual eOSState ProcessKey(eKeys Key) override
const cPositioner * positioner
static cDisplayChannel * currentDisplayChannel
cDisplayChannel(int Number, bool Switched)
const cChannel * NextAvailableChannel(const cChannel *Channel, int Direction)
virtual void Show(void) override
cSkinDisplayTracks * displayTracks
cDisplaySubtitleTracks(void)
static void Process(eKeys Key)
char * descriptions[ttMaxTrackTypes+1]
eTrackType types[ttMaxTrackTypes]
static cDisplaySubtitleTracks * currentDisplayTracks
static cDisplaySubtitleTracks * Create(void)
virtual ~cDisplaySubtitleTracks() override
eOSState ProcessKey(eKeys Key)
char * descriptions[ttMaxTrackTypes+1]
static cDisplayTracks * Create(void)
eOSState ProcessKey(eKeys Key)
static cDisplayTracks * currentDisplayTracks
virtual void Show(void) override
cSkinDisplayTracks * displayTracks
static void Process(eKeys Key)
virtual ~cDisplayTracks() override
eTrackType types[ttMaxTrackTypes]
static cDisplayVolume * Create(void)
cSkinDisplayVolume * displayVolume
virtual void Show(void) override
eOSState ProcessKey(eKeys Key)
static void Process(eKeys Key)
static cDisplayVolume * currentDisplayVolume
virtual ~cDisplayVolume() override
static bool BondDevices(const char *Bondings)
Bonds the devices as defined in the given Bondings string.
void SetMarks(const cMarks *Marks)
bool GetIndex(int &Current, int &Total, bool SnapToIFrame=false)
const cErrors * GetErrors(void)
void SkipSeconds(int Seconds)
cDvbPlayerControl(const char *FileName, bool PauseLive=false)
bool GetReplayMode(bool &Play, bool &Forward, int &Speed)
int SkipFrames(int Frames)
void Goto(int Index, bool Still=false)
bool GetFrameNumber(int &Current, int &Total)
static void SetupChanged(void)
const char * ShortText(void) const
const cComponents * Components(void) const
time_t StartTime(void) const
tChannelID ChannelID(void) const
const char * Title(void) const
static bool GetAvailableFontNames(cStringList *FontNames, bool Monospaced=false)
Queries the font configuration for a list of available font names, which is returned in FontNames.
bool Contains(const cListObject *Object) const
If a pointer to an object contained in this list has been obtained while holding a lock,...
virtual void Move(int From, int To)
void SetExplicitModify(void)
If you have obtained a write lock on this list, and you don't want it to be automatically marked as m...
void SetModified(void)
Unconditionally marks this list as modified.
void SetSyncStateKey(cStateKey &StateKey)
When making changes to this list (while holding a write lock) that shall not affect some other code t...
void Add(cListObject *Object, cListObject *After=NULL)
cListObject(const cListObject &ListObject)
cListObject * Prev(void) const
cListObject * Next(void) const
const cOsdItem * First(void) const
cList(const char *NeedsLocking=NULL)
const T * Next(const T *Object) const
< Returns the element immediately before Object in this list, or NULL if Object is the first element ...
const cOsdItem * Get(int Index) const
void SetPosition(int Position)
static bool DeleteMarksFile(const cRecording *Recording)
virtual eOSState ProcessKey(eKeys Key) override
cList< cNestedItem > * commands
virtual ~cMenuCommands() override
cMenuCommands(const char *Title, cList< cNestedItem > *Commands, const char *Parameters=NULL)
bool Parse(const char *s)
cOsdItem * cancelEditingItem
cOsdItem * stopRecordingItem
cOsdItem * stopReplayItem
virtual eOSState ProcessKey(eKeys Key) override
bool Update(bool Force=false)
cMenuMain(eOSState State=osUnknown, bool OpenSubMenus=false)
static cOsdObject * pluginOsdObject
static cOsdObject * PluginOsdObject(void)
void SetSubItems(bool On)
cList< cNestedItem > * SubItems(void)
const char * Text(void) const
const char * Text(void) const
void SetSelectable(bool Selectable)
virtual eOSState ProcessKey(eKeys Key)
bool Selectable(void) const
void SetText(const char *Text, bool Copy=true)
cOsdItem(eOSState State=osUnknown)
void SetNeedsFastResponse(bool NeedsFastResponse)
cOsdObject(bool FastResponse=false)
static bool OsdSizeChanged(int &State)
Checks if the OSD size has changed and a currently displayed OSD needs to be redrawn.
static void UpdateOsdSize(bool Force=false)
Inquires the actual size of the video display and adjusts the OSD and font sizes accordingly.
static int IsOpen(void)
Returns true if there is currently a level 0 OSD open.
bool Open(const char *Command, const char *Mode)
static bool HasPlugins(void)
static cPlugin * CallFirstService(const char *Id, void *Data=NULL)
static cPlugin * GetPlugin(int Index)
virtual cMenuSetupPage * SetupMenu(void)
virtual const char * Version(void)=0
virtual const char * MainMenuEntry(void)
virtual cOsdObject * MainMenuAction(void)
virtual const char * Description(void)=0
A steerable satellite dish generally points to the south on the northern hemisphere,...
virtual bool IsMoving(void) const
Returns true if the dish is currently moving as a result of a call to GotoPosition() or GotoAngle().
virtual ~cRecordControl()
const char * InstantId(void)
void Stop(bool ExecuteUserCommand=true)
cRecordControl(cDevice *Device, cTimers *Timers, cTimer *Timer=NULL, bool Pause=false)
static bool StateChanged(int &State)
static const char * GetInstantId(const char *LastInstantId)
static void ChannelDataModified(const cChannel *Channel)
static bool Process(cTimers *Timers, time_t t)
static bool PauseLiveVideo(void)
static void Shutdown(void)
static bool Start(cTimers *Timers, cTimer *Timer, bool Pause=false)
static cRecordControl * RecordControls[]
static void Stop(const char *InstantId)
static cRecordControl * GetRecordControl(const char *FileName)
static void ChangeState(void)
static void InvokeCommand(const char *State, const char *RecordingFileName, const char *SourceFileName=NULL)
bool ChangePriorityLifetime(int NewPriority, int NewLifetime)
Changes the priority and lifetime of this recording to the given values.
bool WriteInfo(const char *OtherFileName=NULL)
Writes in info file of this recording.
bool ChangeName(const char *NewName)
Changes the name of this recording to the given value.
bool Delete(void)
Changes the file name so that it will no longer be visible in the "Recordings" menu Returns false in ...
cString Folder(void) const
Returns the name of the folder this recording is stored in (without the video directory).
const char * Name(void) const
Returns the full name of the recording (without the video directory).
const char * FileName(void) const
Returns the full path name to the recording directory, including the video directory and the actual '...
double FramesPerSecond(void) const
bool IsPesRecording(void) const
static const cRecordings * GetRecordingsRead(cStateKey &StateKey, int TimeoutMs=0)
Gets the list of recordings for read access.
static cRecordings * GetRecordingsWrite(cStateKey &StateKey, int TimeoutMs=0)
Gets the list of recordings for write access.
static void TouchUpdate(void)
Touches the '.update' file in the video directory, so that other instances of VDR that access the sam...
void DelByName(const char *FileName)
const cRecording * GetByName(const char *FileName) const
bool Put(uint64_t Code, bool Repeat=false, bool Release=false)
static void TriggerLastActivity(void)
Simulates user activity, for instance to keep the current menu open even if no remote control key has...
static void SetRecording(const char *FileName)
static const char * LastReplayed(void)
virtual void Show(void) override
void TimeSearchDisplay(void)
static void ClearLastReplayed(const char *FileName)
virtual eOSState ProcessKey(eKeys Key) override
void MarkMove(int Frames, bool MarkRequired)
static cReplayControl * currentReplayControl
virtual const cRecording * GetRecording(void) override
Returns the cRecording that is currently being replayed, or NULL if this player is not playing a cRec...
void TimeSearchProcess(eKeys Key)
void MarkJump(bool Forward)
cSkinDisplayReplay * displayReplay
void ShowTimed(int Seconds=0)
static cTimer * timeshiftTimer
virtual cOsdObject * GetInfo(void) override
Returns an OSD object that displays information about the currently played programme.
virtual void Hide(void) override
bool ShowProgress(bool Initial)
static void DelTimeshiftTimer(void)
cAdaptiveSkipper adaptiveSkipper
virtual void ClearEditingMarks(void) override
Clears any editing marks this player might be showing.
virtual ~cReplayControl() override
void ErrorJump(bool Forward)
static const char * NowReplaying(void)
cReplayControl(bool PauseLive=false)
const cSchedule * GetSchedule(tChannelID ChannelID) const
static const cSchedules * GetSchedulesRead(cStateKey &StateKey, int TimeoutMs=0)
Gets the list of schedules for read access.
static void ResetVersions(void)
static cString ToString(int Code)
void Remove(bool IncState=true)
Removes this key from the lock it was previously used with.
static void MsgMarksModified(const cMarks *Marks)
static void MsgOsdChannel(const char *Text)
static void MsgSetAudioChannel(int AudioChannel)
static void MsgOsdProgramme(time_t PresentTime, const char *PresentTitle, const char *PresentSubtitle, time_t FollowingTime, const char *FollowingTitle, const char *FollowingSubtitle)
static void MsgReplaying(const cControl *Control, const char *Name, const char *FileName, bool On)
static void MsgRecording(const cDevice *Device, const char *Name, const char *FileName, bool On)
static void MsgOsdClear(void)
static void MsgSetAudioTrack(int Index, const char *const *Tracks)
static void MsgOsdTextItem(const char *Text, bool Scroll=false)
static void MsgSetSubtitleTrack(int Index, const char *const *Tracks)
void Sort(bool IgnoreCase=false)
int Find(const char *s) const
cString & CompactChars(char c)
Compact any sequence of characters 'c' to a single character, and strip all of them from the beginnin...
static cString sprintf(const char *fmt,...) __attribute__((format(printf
cString PrintFirstDay(void) const
void SetPending(bool Pending)
time_t FirstDay(void) const
bool Recording(void) const
void SetRemote(const char *Remote)
const cEvent * Event(void) const
const cChannel * Channel(void) const
cString ToDescr(void) const
bool SetEventFromSchedule(const cSchedules *Schedules)
bool HasFlags(uint Flags) const
const char * Remote(void) const
cString ToText(bool UseChannelID=false) const
void Add(cTimer *Timer, cTimer *After=NULL)
static cTimers * GetTimersWrite(cStateKey &StateKey, int TimeoutMs=0)
Gets the list of timers for write access.
void Del(cTimer *Timer, bool DeleteObject=true)
static const cTimers * GetTimersRead(cStateKey &StateKey, int TimeoutMs=0)
Gets the list of timers for read access.
const cTimer * GetMatch(time_t t) const
void Sort(__compar_fn_t Compare)
virtual void Append(T Data)
static const char * Name(void)
static int VideoDiskSpace(int *FreeMB=NULL, int *UsedMB=NULL)
static void ForceCheck(void)
To avoid unnecessary load, the video disk usage is only actually checked every DISKSPACECHEK seconds.
cNestedItemList RecordingCommands
#define TIMERMACRO_BEFORE
#define TIMERMACRO_EPISODE
#define IS_AUDIO_TRACK(t)
#define IS_DOLBY_TRACK(t)
#define LOCK_SCHEDULES_READ
#define MAXEPGBUGFIXLEVEL
const char * DefaultFontOsd
const char * DefaultFontSml
const char * DefaultFontFix
const char * I18nLocale(int Language)
Returns the locale code of the given Language (which is an index as returned by I18nCurrentLanguage()...
const cStringList * I18nLanguages(void)
Returns the list of available languages.
int I18nNumLanguagesWithLocale(void)
Returns the number of entries in the list returned by I18nLanguages() that actually have a locale.
int I18nCurrentLanguage(void)
Returns the index of the current language.
void I18nSetLocale(const char *Locale)
Sets the current locale to Locale.
void I18nSetLanguage(int Language)
Sets the current language index to Language.
cString GetRecordingTimerId(const char *Directory)
cString IndexToHMSF(int Index, bool WithFrame, double FramesPerSecond)
void AssertFreeDiskSpace(int Priority, bool Force)
The special Priority value -1 means that we shall get rid of any deleted recordings faster than norma...
void GetRecordingsSortMode(const char *Directory)
int SecondsToFrames(int Seconds, double FramesPerSecond)
eRecordingsSortMode RecordingsSortMode
bool EnoughFreeDiskSpaceForEdit(const char *FileName)
char * ExchangeChars(char *s, bool ToFileSystem)
void IncRecordingsSortMode(const char *Directory)
cDoneRecordings DoneRecordingsPattern
cRecordingsHandler RecordingsHandler
void SetRecordingTimerId(const char *Directory, const char *TimerId)
#define RUC_BEFORERECORDING
#define RUC_AFTERRECORDING
#define LOCK_RECORDINGS_READ
#define MAXVIDEOFILESIZETS
#define LOCK_RECORDINGS_WRITE
cShutdownHandler ShutdownHandler
static const cCursesFont Font
cSourceParams SourceParams
char language[MAXLANGCODE2]
char language[MAXLANGCODE2]
void StopSVDRPHandler(void)
bool GetSVDRPServerNames(cStringList *ServerNames)
Gets a list of all available VDRs this VDR is connected to via SVDRP, and stores it in the given Serv...
bool ExecSVDRPCommand(const char *ServerName, const char *Command, cStringList *Response)
Sends the given SVDRP Command string to the remote VDR identified by ServerName and collects all of t...
void StartSVDRPHandler(void)
int SVDRPCode(const char *s)
Returns the value of the three digit reply code of the given SVDRP response string.
cStateKey StateKeySVDRPRemoteTimersPoll
Controls whether a change to the local list of timers needs to result in sending a POLL to the remote...
bool HandleRemoteTimerModifications(cTimer *NewTimer, cTimer *OldTimer, cString *Msg)
Performs any operations necessary to synchronize changes to a timer between peer VDR machines.
#define LOCK_TIMERS_WRITE