summaryrefslogtreecommitdiff
path: root/epgsearchcfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'epgsearchcfg.c')
-rw-r--r--epgsearchcfg.c187
1 files changed, 90 insertions, 97 deletions
diff --git a/epgsearchcfg.c b/epgsearchcfg.c
index c48889e..c0e4457 100644
--- a/epgsearchcfg.c
+++ b/epgsearchcfg.c
@@ -28,77 +28,77 @@ cEPGSearchConfig EPGSearchConfig;
cEPGSearchConfig::cEPGSearchConfig(void)
{
- hidemenu = 0;
- redkeymode = 0;
- bluekeymode = 1;
- showProgress = 1;
- showChannelNr = 0;
- useSearchTimers = 0;
- UpdateIntervall = 30;
- SVDRPPort = 6419;
- timeShiftValue = 30;
- toggleGreenYellow = 1;
- StartMenu = 0;
- DefPriority = Setup.DefaultPriority;
- DefLifetime = Setup.DefaultLifetime;
- DefMarginStart = Setup.MarginStart;
- DefMarginStop = Setup.MarginStop;
- checkTimerConflictsAfterUpdate = 0;
- checkMinPriority = 0;
- checkMinDuration = 0;
- checkMaxDays = 14;
- ignorePayTV = 0;
- useExternalSVDRP = 0;
- ignorePrimary = 0;
- strcpy(defrecdir,"");
- useVDRTimerEditMenu = 0;
- showChannelGroups = 0;
- showDaySeparators = 0;
- showEmptyChannels = 0;
- DefSearchTemplateID = -1;
- addSubtitleToTimer = addSubtitleSmart;
- strcpy(mainmenuentry, "");
- WarEagle = 0;
- showRadioChannels = 1;
- onePressTimerCreation = 1;
- conflictCheckIntervall = 30;
- conflictCheckWithinLimit = 60;
- conflictCheckIntervall2 = 15;
- checkTimerConflAfterTimerProg = 0;
- checkTimerConflOnRecording = 0;
- showFavoritesMenu = 0;
- FavoritesMenuTimespan = 24;
- useOkForSwitch = 0;
- strcpy(MailAddress, "");
- strcpy(MailAddressTo, "");
- strcpy(MailServer, "");
- MailUseAuth = 0;
- strcpy(MailAuthUser, "");
- strcpy(MailAuthPass, "");
- strcpy(LastMailConflicts, "");
- mailViaScript = 1;
- manualTimerCheckDefault = 0;
- noAnnounceWhileReplay = 0;
- TimerProgRepeat = 0;
- maxChannelMenuNow = 0;
- noConflMsgWhileReplay = 0;
- sendMailOnSearchtimerHours = 0;
- lastMailOnSearchtimerAt = 0;
- checkEPGHours = 6;
- checkEPGWarnByOSD = 1;
- checkEPGWarnByMail = 0;
- checkEPGchannelGroupNr = -1;
- strcpy(conflCheckCmd, "");
- ReplaceOrgSchedule = 0;
- sendMailOnSearchtimers = 0;
- sendMailOnConflicts = 0;
- RemoteConflictCheck = 0;
+ hidemenu = 0;
+ redkeymode = 0;
+ bluekeymode = 1;
+ showProgress = 1;
+ showChannelNr = 0;
+ useSearchTimers = 0;
+ UpdateIntervall = 30;
+ SVDRPPort = 6419;
+ timeShiftValue = 30;
+ toggleGreenYellow = 1;
+ StartMenu = 0;
+ DefPriority = Setup.DefaultPriority;
+ DefLifetime = Setup.DefaultLifetime;
+ DefMarginStart = Setup.MarginStart;
+ DefMarginStop = Setup.MarginStop;
+ checkTimerConflictsAfterUpdate = 0;
+ checkMinPriority = 0;
+ checkMinDuration = 0;
+ checkMaxDays = 14;
+ ignorePayTV = 0;
+ useExternalSVDRP = 0;
+ ignorePrimary = 0;
+ strcpy(defrecdir, "");
+ useVDRTimerEditMenu = 0;
+ showChannelGroups = 0;
+ showDaySeparators = 0;
+ showEmptyChannels = 0;
+ DefSearchTemplateID = -1;
+ addSubtitleToTimer = addSubtitleSmart;
+ strcpy(mainmenuentry, "");
+ WarEagle = 0;
+ showRadioChannels = 1;
+ onePressTimerCreation = 1;
+ conflictCheckIntervall = 30;
+ conflictCheckWithinLimit = 60;
+ conflictCheckIntervall2 = 15;
+ checkTimerConflAfterTimerProg = 0;
+ checkTimerConflOnRecording = 0;
+ showFavoritesMenu = 0;
+ FavoritesMenuTimespan = 24;
+ useOkForSwitch = 0;
+ strcpy(MailAddress, "");
+ strcpy(MailAddressTo, "");
+ strcpy(MailServer, "");
+ MailUseAuth = 0;
+ strcpy(MailAuthUser, "");
+ strcpy(MailAuthPass, "");
+ strcpy(LastMailConflicts, "");
+ mailViaScript = 1;
+ manualTimerCheckDefault = 0;
+ noAnnounceWhileReplay = 0;
+ TimerProgRepeat = 0;
+ maxChannelMenuNow = 0;
+ noConflMsgWhileReplay = 0;
+ sendMailOnSearchtimerHours = 0;
+ lastMailOnSearchtimerAt = 0;
+ checkEPGHours = 6;
+ checkEPGWarnByOSD = 1;
+ checkEPGWarnByMail = 0;
+ checkEPGchannelGroupNr = -1;
+ strcpy(conflCheckCmd, "");
+ ReplaceOrgSchedule = 0;
+ sendMailOnSearchtimers = 0;
+ sendMailOnConflicts = 0;
+ RemoteConflictCheck = 0;
}
cShowMode& cShowMode::operator= (const cShowMode &ShowMode)
{
- this->mode = ShowMode.mode;
- this->seekTime = ShowMode.seekTime;
+ this->mode = ShowMode.mode;
+ this->seekTime = ShowMode.seekTime;
memcpy(this->description, ShowMode.description, sizeof(ShowMode.description));
this->useIt = ShowMode.useIt;
this->itime = ShowMode.itime;
@@ -108,39 +108,32 @@ cShowMode& cShowMode::operator= (const cShowMode &ShowMode)
int cShowMode::Compare(const cListObject &ListObject) const
{
cShowMode *p = (cShowMode *)&ListObject;
- if (EPGSearchConfig.showFavoritesMenu == 1)
- {
- if (mode == showFavorites)
- {
- if (p->mode <= showNext) return 1;
- else return -1;
- }
- if (p->mode == showFavorites)
- {
- if (mode <= showNext) return -1;
- else return 1;
- }
+ if (EPGSearchConfig.showFavoritesMenu == 1) {
+ if (mode == showFavorites) {
+ if (p->mode <= showNext) return 1;
+ else return -1;
+ }
+ if (p->mode == showFavorites) {
+ if (mode <= showNext) return -1;
+ else return 1;
+ }
}
- if (EPGSearchConfig.showFavoritesMenu == 2)
- {
- if (mode == showFavorites && p->mode != showFavorites) return 1;
- if (p->mode == showFavorites && mode != showFavorites) return -1;
+ if (EPGSearchConfig.showFavoritesMenu == 2) {
+ if (mode == showFavorites && p->mode != showFavorites) return 1;
+ if (p->mode == showFavorites && mode != showFavorites) return -1;
}
- if (EPGSearchConfig.showFavoritesMenu == 3)
- {
- if (mode == showFavorites)
- {
- if (p->mode < showNext) return 1;
- else return -1;
- }
- if (p->mode == showFavorites)
- {
- if (mode < showNext) return -1;
- else return 1;
- }
+ if (EPGSearchConfig.showFavoritesMenu == 3) {
+ if (mode == showFavorites) {
+ if (p->mode < showNext) return 1;
+ else return -1;
+ }
+ if (p->mode == showFavorites) {
+ if (mode < showNext) return -1;
+ else return 1;
+ }
}
if (mode > showNext && p->mode > showNext)
- return seekTime - p->seekTime;
+ return seekTime - p->seekTime;
else
- return mode - p->mode;
+ return mode - p->mode;
}