void cSkinDesignerSetup::Store(void) { config.numLogosPerSizeInitial = numLogosPerSizeInitial; config.limitLogoCache = limitLogoCache; config.numLogosMax = numLogosMax; config.debugImageLoading = debugImageLoading; config.rerunAmount = rerunAmount; config.rerunDistance = rerunDistance; config.rerunMaxChannel = rerunMaxChannel; config.blockFlush = blockFlush; config.framesPerSecond = framesPerSecond; config.InitSetupIterator(); cSkinSetup *skinSetup = NULL; while (skinSetup = config.GetNextSkinSetup()) { string skin = skinSetup->GetSkin(); skinSetup->InitParameterIterator(); cSkinSetupParameter *param = NULL; while (param = skinSetup->GetNextParameter()) { cString paramName = cString::sprintf("%s.%s", skin.c_str(), param->name.c_str()); SetupStore(*paramName, param->value); config.UpdateSkinSetupParameter(*paramName, param->value); } } config.UpdateGlobals(); SetupStore("DebugImageLoading", debugImageLoading); SetupStore("LimitChannelLogoCache", limitLogoCache); SetupStore("NumberLogosInitially", numLogosPerSizeInitial); SetupStore("NumberLogosMax", numLogosMax); SetupStore("RerunAmount", rerunAmount); SetupStore("RerunDistance", rerunDistance); SetupStore("RerunMaxChannel", rerunMaxChannel); SetupStore("BlockFlush", blockFlush); SetupStore("FramesPerSecond", framesPerSecond); }
void cMenuSetupMcli::Store (void) { SetupStore ("DVB-C", m_cmd->tuner_type_limit[FE_QAM]); SetupStore ("DVB-T", m_cmd->tuner_type_limit[FE_OFDM]); SetupStore ("DVB-S", m_cmd->tuner_type_limit[FE_QPSK]); SetupStore ("DVB-S2", m_cmd->tuner_type_limit[FE_DVBS2]); reconf = 1; }
void cMenuChannelscanSetup::Store(void) { ScanSetup = data_; #ifdef REELVDR //SetupStore("ServiceType", "channelscan", ScanSetup.ServiceType); SetupStore("Logfile", "channelscan", ScanSetup.EnableLogfile); #else //SetupStore("ServiceType", ScanSetup.ServiceType); SetupStore("Logfile", ScanSetup.EnableLogfile); #endif }
void cVdrcdMenuSetupPage::Store(void) { mediaplugin *pPlugin = _setup.mediaplugins.First(); while(pPlugin) { char *pluginName; asprintf(&pluginName, "AutoStart%s", pPlugin->getName()); pPlugin->setAutoStart(_AutoStartMode==1); SetupStore(pluginName, pPlugin->isAutoStart()); free(pluginName); asprintf(&pluginName, "Activated%s", pPlugin->getName()); pPlugin->setActive(true); // never deactivate a plugin, handle !autostart in hal.c SetupStore(pluginName, pPlugin->isActive()); free(pluginName); pPlugin = _setup.mediaplugins.Next(pPlugin); } SetupStore("HideMenu", _setup.HideMenu); SetupStore("AutoStartMode", _AutoStartMode); #ifndef REELVDR SetupStore("RequestDvdAction", RequestDvdAction); #else SetupStore("RequestDvdAction", "mediad", RequestDvdAction); SetupStore("RequestCdAction", "mediad", RequestCdAction); #endif AutoStartMode = _AutoStartMode; VdrcdSetup = _setup; }
void cSatipPluginSetup::Store(void) { // Store values into setup.conf SetupStore("OperatingMode", operatingModeM); SetupStore("EnableCIExtension", ciExtensionM); SetupStore("EnableEITScan", eitScanM); StoreCicams("CICAM", cicamsM); StoreSources("DisabledSources", disabledSourcesM); StoreFilters("DisabledFilters", disabledFilterIndexesM); // Update global config SatipConfig.SetOperatingMode(operatingModeM); SatipConfig.SetCIExtension(ciExtensionM); SatipConfig.SetEITScan(eitScanM); for (int i = 0; i < MAX_CICAM_COUNT; ++i) SatipConfig.SetCICAM(i, cicamsM[i]); for (int i = 0; i < MAX_DISABLED_SOURCES_COUNT; ++i) SatipConfig.SetDisabledSources(i, disabledSourcesM[i]); for (int i = 0; i < SECTION_FILTER_TABLE_SIZE; ++i) SatipConfig.SetDisabledFilters(i, disabledFilterIndexesM[i]); }
void cMpvPluginSetup::Store() { SetupStore("HideMainMenuEntry", MpvPluginConfig->HideMainMenuEntry = SetupHideMainMenuEntry); SetupStore("UsePassthrough", MpvPluginConfig->UsePassthrough = SetupUsePassthrough); SetupStore("UseDtsHdPassthrough", MpvPluginConfig->UseDtsHdPassthrough = SetupUseDtsHdPassthrough); SetupStore("StereoDownmix", MpvPluginConfig->StereoDownmix = SetupStereoDownmix); SetupStore("PlaylistOnNextKey", MpvPluginConfig->PlaylistOnNextKey = SetupPlaylistOnNextKey); SetupStore("PlaylistIfNoChapters", MpvPluginConfig->PlaylistIfNoChapters = SetupPlaylistIfNoChapters); SetupStore("ShowMediaTitle", MpvPluginConfig->ShowMediaTitle = SetupShowMediaTitle); }
void cText2SkinSetupPage::Store(void) { SetupStore("MenuScrollbar", mData.MenuScrollbar); SetupStore("MarqueeLeftRight", mData.MarqueeLeftRight); SetupStore("MarqueeReset", mData.MarqueeReset); SetupStore("ShowAux", mData.ShowAux); SetupStore("StripAux", mData.StripAux); SetupStore("CheckTimerConflict", mData.CheckTimerConflict); SetupStore("MaxCacheFill", mData.MaxCacheFill); Text2SkinSetup = mData; }
void cSatipPluginSetup::StoreCicams(const char *nameP, int *cicamsP) { cString buffer = ""; int n = 0; for (int i = 0; i < MAX_CICAM_COUNT; ++i) { if (cicamsP[i] < 0) break; if (n++ > 0) buffer = cString::sprintf("%s %d", *buffer, cicamsP[i]); else buffer = cString::sprintf("%d", cicamsP[i]); } debug3("%s (%s, %s)", __PRETTY_FUNCTION__, nameP, *buffer); SetupStore(nameP, *buffer); }
void cSatipPluginSetup::StoreSources(const char *nameP, int *sourcesP) { cString buffer = ""; int n = 0; for (int i = 0; i < MAX_DISABLED_SOURCES_COUNT; ++i) { if (sourcesP[i] == cSource::stNone) break; if (n++ > 0) buffer = cString::sprintf("%s %s", *buffer, *cSource::ToString(sourcesP[i])); else buffer = cString::sprintf("%s", *cSource::ToString(sourcesP[i])); } debug3("%s (%s, %s)", __PRETTY_FUNCTION__, nameP, *buffer); SetupStore(nameP, *buffer); }
void cSatipPluginSetup::StoreFilters(const char *nameP, int *valuesP) { cString buffer = ""; int n = 0; for (int i = 0; i < SECTION_FILTER_TABLE_SIZE; ++i) { if (valuesP[i] < 0) break; if (n++ > 0) buffer = cString::sprintf("%s %d", *buffer, valuesP[i]); else buffer = cString::sprintf("%d", valuesP[i]); } debug3("%s (%s, %s)", __PRETTY_FUNCTION__, nameP, *buffer); SetupStore(nameP, *buffer); }
void cPvrMenuSetup::Store() { cachedPvrSetup = newPvrSetup; SetupStore("HideMainMenuEntry", PvrSetup.HideMainMenuEntry = newPvrSetup.HideMainMenuEntry); SetupStore("UseOnlyCard", PvrSetup.UseOnlyCard = newPvrSetup.UseOnlyCard); SetupStore("LogLevel", PvrSetup.LogLevel = newPvrSetup.LogLevel); SetupStore("TunerAudioMode", PvrSetup.TunerAudioMode = newPvrSetup.TunerAudioMode); SetupStore("StreamType", PvrSetup.StreamType.value = newPvrSetup.StreamType.value); SetupStore("AudioVolumeTVExceptionCard", PvrSetup.AudioVolumeTVExceptionCard = newPvrSetup.AudioVolumeTVExceptionCard); SetupStore("HDPVR_AudioInput", PvrSetup.HDPVR_AudioInput = newPvrSetup.HDPVR_AudioInput); SetupStore("SliceVBI", PvrSetup.SliceVBI = newPvrSetup.SliceVBI); SetupStore("UseExternChannelSwitchScript", PvrSetup.UseExternChannelSwitchScript = newPvrSetup.UseExternChannelSwitchScript); /* The following code makes sure that we don't write a zero value into setup.conf, which would happen if it is still INVALID_VALUE because no device is present. The macro SETUPSTORE(n,v) is a abbreviation for the 'if .. then' comparison. */ #define SETUPSTORE(n, v) if (v.query_isvalid) SetupStore(n, v.value) PvrSetup.Brightness.value = Percent2IntVal(newPvrSetup.Brightness.value, PvrSetup.Brightness.queryctrl.minimum, PvrSetup.Brightness.queryctrl.maximum); SETUPSTORE("Brightness", PvrSetup.Brightness); PvrSetup.Contrast.value = Percent2IntVal(newPvrSetup.Contrast.value, PvrSetup.Contrast.queryctrl.minimum, PvrSetup.Contrast.queryctrl.maximum); SETUPSTORE("Contrast", PvrSetup.Contrast); PvrSetup.Saturation.value = Percent2IntVal(newPvrSetup.Saturation.value, PvrSetup.Saturation.queryctrl.minimum, PvrSetup.Saturation.queryctrl.maximum); SETUPSTORE("Saturation", PvrSetup.Saturation); PvrSetup.Hue.value = Percent2IntVal(newPvrSetup.Hue.value, PvrSetup.Hue.queryctrl.minimum, PvrSetup.Hue.queryctrl.maximum); SETUPSTORE("Hue", PvrSetup.Hue); PvrSetup.AudioVolumeTVCommon.value = Percent2IntVal(newPvrSetup.AudioVolumeTVCommon.value, PvrSetup.AudioVolumeTVCommon.queryctrl.minimum, PvrSetup.AudioVolumeTVCommon.queryctrl.maximum); SETUPSTORE("AudioVolumeTVCommon", PvrSetup.AudioVolumeTVCommon); PvrSetup.AudioVolumeTVException.value = Percent2IntVal(newPvrSetup.AudioVolumeTVException.value, PvrSetup.AudioVolumeTVException.queryctrl.minimum, PvrSetup.AudioVolumeTVException.queryctrl.maximum); SETUPSTORE("AudioVolumeTVException", PvrSetup.AudioVolumeTVException); PvrSetup.AudioVolumeFM.value = Percent2IntVal(newPvrSetup.AudioVolumeFM.value, PvrSetup.AudioVolumeFM.queryctrl.minimum, PvrSetup.AudioVolumeFM.queryctrl.maximum); SETUPSTORE("AudioVolumeFM", PvrSetup.AudioVolumeFM); // videobitrate in setup.conf is 0..27000, but ivtv 0..27000000 PvrSetup.VideoBitrateTV.value = newPvrSetup.VideoBitrateTV.value * 1000; SETUPSTORE("VideoBitrateTV", newPvrSetup.VideoBitrateTV); PvrSetup.AudioBitrate.value = newPvrSetup.AudioBitrate.value; SETUPSTORE("AudioBitrate", PvrSetup.AudioBitrate); PvrSetup.AudioSampling.value = newPvrSetup.AudioSampling.value; SETUPSTORE("AudioSampling", PvrSetup.AudioSampling); // HDPVR audio encoding in setup.conf is 0..1, but driver needs 3..4 // if audio input SPDIF is selected, audio encoding must be AAC if (newPvrSetup.HDPVR_AudioInput == 2) newPvrSetup.HDPVR_AudioEncoding.value = 0; PvrSetup.HDPVR_AudioEncoding.value = newPvrSetup.HDPVR_AudioEncoding.value + 3; SETUPSTORE("HDPVR_AudioEncoding", newPvrSetup.HDPVR_AudioEncoding); PvrSetup.BitrateMode.value = newPvrSetup.BitrateMode.value; SETUPSTORE("BitrateMode", PvrSetup.BitrateMode); PvrSetup.AspectRatio.value = newPvrSetup.AspectRatio.value; SETUPSTORE("AspectRatio", PvrSetup.AspectRatio); PvrSetup.FilterSpatialMode.value = newPvrSetup.FilterSpatialMode.value; SETUPSTORE("FilterSpatialMode", PvrSetup.FilterSpatialMode); PvrSetup.FilterSpatial.value = newPvrSetup.FilterSpatial.value; SETUPSTORE("FilterSpatial", PvrSetup.FilterSpatial); PvrSetup.FilterLumaSpatialType.value = newPvrSetup.FilterLumaSpatialType.value; SETUPSTORE("FilterLumaSpatialType", PvrSetup.FilterLumaSpatialType); PvrSetup.FilterChromaSpatialType.value = newPvrSetup.FilterChromaSpatialType.value; SETUPSTORE("FilterChromaSpatialType", PvrSetup.FilterChromaSpatialType); PvrSetup.FilterTemporalMode.value = newPvrSetup.FilterTemporalMode.value; SETUPSTORE("FilterTemporalMode", PvrSetup.FilterTemporalMode); PvrSetup.FilterTemporal.value = newPvrSetup.FilterTemporal.value; SETUPSTORE("FilterTemporal", PvrSetup.FilterTemporal); PvrSetup.FilterMedianType.value = newPvrSetup.FilterMedianType.value; SETUPSTORE("FilterMedianType", PvrSetup.FilterMedianType); PvrSetup.FilterLumaMedianBottom.value = newPvrSetup.FilterLumaMedianBottom.value; SETUPSTORE("FilterLumaMedianBottom", PvrSetup.FilterLumaMedianBottom); PvrSetup.FilterLumaMedianTop.value = newPvrSetup.FilterLumaMedianTop.value; SETUPSTORE("FilterLumaMedianTop", PvrSetup.FilterLumaMedianTop); PvrSetup.FilterChromaMedianBottom.value = newPvrSetup.FilterChromaMedianBottom.value; SETUPSTORE("FilterChromaMedianBottom", PvrSetup.FilterChromaMedianBottom); PvrSetup.FilterChromaMedianTop.value = newPvrSetup.FilterChromaMedianTop.value; SETUPSTORE("FilterChromaMedianTop", PvrSetup.FilterChromaMedianTop); cPvrDevice::ReInitAll(); PvrSetup.repeat_ReInitAll_after_next_encoderstop = true; }
bool cPluginMcli::Service (const char *Id, void *Data) { //printf ("Mcli::%s: \"%s\"\n", __FUNCTION__, Id); mclituner_info_t *infos = (mclituner_info_t *) Data; if (Id && strcmp (Id, "GetTunerInfo") == 0) { int j=0; time_t now = time (NULL); netceiver_info_list_t *nc_list = nc_get_list (); nc_lock_list (); for (int n = 0; n < nc_list->nci_num; n++) { netceiver_info_t *nci = nc_list->nci + n; if ((now - nci->lastseen) > MCLI_DEVICE_TIMEOUT) { continue; } for (int i = 0; i < nci->tuner_num && j < MAX_TUNERS_IN_MENU; i++) { strcpy (infos->name[j], nci->tuner[i].fe_info.name); infos->type[j] = nci->tuner[i].fe_info.type; infos->preference[j++] = nci->tuner[i].preference; printf("Mcli::%s: Tuner: %s\n", __FUNCTION__, nci->tuner[i].fe_info.name); } } nc_unlock_list (); return true; } else if (Id && strcmp (Id, "Reinit") == 0) { if (Data && strlen ((char *) Data) && (strncmp ((char *) Data, "eth", 3) || strncmp ((char *) Data, "br", 2))) { strncpy (m_cmd.iface, (char *) Data, IFNAMSIZ - 1); } reconfigure (); return true; } else if (Id && strcmp (Id, "Set tuner count") == 0) { if (Data) { mcli_tuner_count_t *tuner_count = (mcli_tuner_count_t*)Data; int count; count = tuner_count->dvb_c; if (count < 0) count = MCLI_MAX_DEVICES; //SetupParse("DVB-C", itoa(count)); m_cmd.tuner_type_limit[FE_QAM] = count; /* save settings to .conf*/ SetupStore("DVB-C", count); count = tuner_count->dvb_t; if (count < 0) count = MCLI_MAX_DEVICES; //SetupParse("DVB-T", itoa(count)); m_cmd.tuner_type_limit[FE_OFDM] = count; /* save settings to .conf*/ SetupStore("DVB-T", count); count = tuner_count->dvb_s; if (count < 0) count = MCLI_MAX_DEVICES; //SetupParse("DVB-S", itoa(count)); m_cmd.tuner_type_limit[FE_QPSK] = count; /* save settings to .conf*/ SetupStore("DVB-S", count); count = tuner_count->dvb_s2; if (count < 0) count = MCLI_MAX_DEVICES; //SetupParse("DVB-S2", itoa(count)); m_cmd.tuner_type_limit[FE_DVBS2] = count; /* save settings to .conf*/ SetupStore("DVB-S2", count); } return true; } // set tuner count else if (Id && strcmp (Id, "Get tuner count") == 0) { if (Data) { mcli_tuner_count_t *tuner_count = (mcli_tuner_count_t*)Data; tuner_count->dvb_c = TunerCountByType(FE_QAM); tuner_count->dvb_t = TunerCountByType(FE_OFDM); tuner_count->dvb_s = TunerCountByType(FE_QPSK); tuner_count->dvb_s2 = TunerCountByType((fe_type_t)FE_DVBS2); } return true; } // Handle custom service requests from other plugins return false; }
void myMenuSetup::Store() { SetupStore("HideMainMenuEntry",mysetup.HideMainMenuEntry=hidemainmenuentry); SetupStore("PatchNew",mysetup.PatchNew=patchnew); SetupStore("ReplaceOrgRecMenu",mysetup.ReplaceOrgRecMenu=replaceorgrecmenu); char varname[16]; char* tmp=NULL; for(int i=0; i<MAX_RECLIST_COLUMNS; i++) { if(asprintf(&tmp,"type=%d,name=%s,width=%d,align=%d,op1=%s,op2=%s", reclistcolumn[i].Type, reclistcolumn[i].Name && (reclistcolumn[i].Type==COLTYPE_FILE || reclistcolumn[i].Type==COLTYPE_FILETHENCOMMAND) ? reclistcolumn[i].Name : "", reclistcolumn[i].Width, reclistcolumn[i].Align, reclistcolumn[i].Op1 && (reclistcolumn[i].Type==COLTYPE_FILE || reclistcolumn[i].Type==COLTYPE_FILETHENCOMMAND) ? reclistcolumn[i].Op1 : "", reclistcolumn[i].Op2 && reclistcolumn[i].Type==COLTYPE_FILETHENCOMMAND ? reclistcolumn[i].Op2 : "") != -1) { mysetup.RecListColumn[i].Type = reclistcolumn[i].Type; STRN0CPY(mysetup.RecListColumn[i].Name, reclistcolumn[i].Name); mysetup.RecListColumn[i].Width = reclistcolumn[i].Width; mysetup.RecListColumn[i].Align = reclistcolumn[i].Align; STRN0CPY(mysetup.RecListColumn[i].Op1, reclistcolumn[i].Op1); STRN0CPY(mysetup.RecListColumn[i].Op2, reclistcolumn[i].Op2); snprintf(varname, 16, "RecListColumn.%d", i); SetupStore(varname, tmp); free(tmp); } } SetupStore("ShowNewRecs",mysetup.ShowNewRecs=shownewrecs); SetupStore("RecsPerDir",mysetup.RecsPerDir=recsperdir); SetupStore("DescendSorting",mysetup.DescendSorting=descendsorting); SetupStore("GoLastReplayed",mysetup.GoLastReplayed=golastreplayed); SetupStore("ReturnToPlugin",mysetup.ReturnToPlugin=returntoplugin); SetupStore("LimitBandwidth",mysetup.LimitBandwidth=limitbandwidth); SetupStore("UseVDRsRecInfoMenu",mysetup.UseVDRsRecInfoMenu=usevdrsrecinfomenu); SetupStore("PatchFont",mysetup.PatchFont=patchfont); SetupStore("FileSystemFreeMB",mysetup.FileSystemFreeMB=filesystemfreemb); SetupStore("UseCutterQueue",mysetup.UseCutterQueue=usecutterqueue); }
void cMenuSetupHello::Store(void) { SetupStore("GreetingTime", GreetingTime = newGreetingTime); SetupStore("UseAlternateGreeting", UseAlternateGreeting = newUseAlternateGreeting); }
void cGraphLCDMenuSetup::Store() { SetupStore("PluginActive", GraphLCDSetup.PluginActive = newGraphLCDSetup.PluginActive); SetupStore("ShowDateTime",GraphLCDSetup.ShowDateTime = newGraphLCDSetup.ShowDateTime); SetupStore("ShowChannel", GraphLCDSetup.ShowChannel = newGraphLCDSetup.ShowChannel); SetupStore("ShowChannelLogo", GraphLCDSetup.ShowChannelLogo = newGraphLCDSetup.ShowChannelLogo); SetupStore("ShowSymbols", GraphLCDSetup.ShowSymbols = newGraphLCDSetup.ShowSymbols); SetupStore("ShowProgram", GraphLCDSetup.ShowProgram = newGraphLCDSetup.ShowProgram); SetupStore("ShowTimebar", GraphLCDSetup.ShowTimebar = newGraphLCDSetup.ShowTimebar); SetupStore("ShowMenu", GraphLCDSetup.ShowMenu = newGraphLCDSetup.ShowMenu); SetupStore("ShowMessages",GraphLCDSetup.ShowMessages = newGraphLCDSetup.ShowMessages); SetupStore("ShowColorButtons",GraphLCDSetup.ShowColorButtons = newGraphLCDSetup.ShowColorButtons); SetupStore("ShowVolume", GraphLCDSetup.ShowVolume = newGraphLCDSetup.ShowVolume); SetupStore("ShowNotRecording", GraphLCDSetup.ShowNotRecording = newGraphLCDSetup.ShowNotRecording); SetupStore("IdentifyReplayType", GraphLCDSetup.IdentifyReplayType = newGraphLCDSetup.IdentifyReplayType); SetupStore("ReplayLogo", GraphLCDSetup.ShowReplayLogo = newGraphLCDSetup.ShowReplayLogo); SetupStore("ModifyReplayString", GraphLCDSetup.ModifyReplayString = newGraphLCDSetup.ModifyReplayString); SetupStore("ScrollMode", GraphLCDSetup.ScrollMode = newGraphLCDSetup.ScrollMode); SetupStore("ScrollSpeed", GraphLCDSetup.ScrollSpeed = newGraphLCDSetup.ScrollSpeed); SetupStore("ScrollTime", GraphLCDSetup.ScrollTime = newGraphLCDSetup.ScrollTime); SetupStore("BrightnessActive", GraphLCDSetup.BrightnessActive = newGraphLCDSetup.BrightnessActive); SetupStore("BrightnessIdle", GraphLCDSetup.BrightnessIdle = newGraphLCDSetup.BrightnessIdle); SetupStore("BrightnessDelay", GraphLCDSetup.BrightnessDelay = newGraphLCDSetup.BrightnessDelay); }
void cHdffSetupPage::Store(void) { if (mNewHdffSetup.TvFormat == HDFF_TV_FORMAT_16_BY_9) { switch (mVideoConversion) { case 0: mNewHdffSetup.VideoConversion = HDFF_VIDEO_CONVERSION_PILLARBOX; break; case 1: mNewHdffSetup.VideoConversion = HDFF_VIDEO_CONVERSION_CENTRE_CUT_OUT; break; case 2: mNewHdffSetup.VideoConversion = HDFF_VIDEO_CONVERSION_ALWAYS_16_BY_9; break; case 3: mNewHdffSetup.VideoConversion = HDFF_VIDEO_CONVERSION_ZOOM_16_BY_9; break; } } else { switch (mVideoConversion) { case 0: mNewHdffSetup.VideoConversion = HDFF_VIDEO_CONVERSION_LETTERBOX_16_BY_9; break; case 1: mNewHdffSetup.VideoConversion = HDFF_VIDEO_CONVERSION_LETTERBOX_14_BY_9; break; case 2: mNewHdffSetup.VideoConversion = HDFF_VIDEO_CONVERSION_CENTRE_CUT_OUT; break; } } SetupStore("Resolution", mNewHdffSetup.Resolution); SetupStore("VideoModeAdaption", mNewHdffSetup.VideoModeAdaption); SetupStore("TvFormat", mNewHdffSetup.TvFormat); SetupStore("VideoConversion", mNewHdffSetup.VideoConversion); SetupStore("AnalogueVideo", mNewHdffSetup.AnalogueVideo); SetupStore("AudioDelay", mNewHdffSetup.AudioDelay); SetupStore("AudioDownmix", mNewHdffSetup.AudioDownmix); SetupStore("AvSyncShift", mNewHdffSetup.AvSyncShift); SetupStore("OsdSize", mNewHdffSetup.OsdSize); SetupStore("CecEnabled", mNewHdffSetup.CecEnabled); SetupStore("CecTvOn", mNewHdffSetup.CecTvOn); SetupStore("CecTvOff", mNewHdffSetup.CecTvOff); SetupStore("RemoteProtocol", mNewHdffSetup.RemoteProtocol); SetupStore("RemoteAddress", mNewHdffSetup.RemoteAddress); SetupStore("HighLevelOsd", mNewHdffSetup.HighLevelOsd); SetupStore("TrueColorOsd", mNewHdffSetup.TrueColorOsd); SetupStore("TrueColorFormat", mNewHdffSetup.TrueColorFormat); SetupStore("HideMainMenu", mNewHdffSetup.HideMainMenu); if (mHdffCmdIf) { if (mNewHdffSetup.Resolution != gHdffSetup.Resolution) { mHdffCmdIf->CmdHdmiSetVideoMode(mNewHdffSetup.GetVideoMode()); } HdffHdmiConfig_t hdmiConfig; mNewHdffSetup.SetVideoFormat(mHdffCmdIf); mHdffCmdIf->CmdAvSetAudioDelay(mNewHdffSetup.AudioDelay); mHdffCmdIf->CmdAvSetAudioDownmix((HdffAudioDownmixMode_t) mNewHdffSetup.AudioDownmix); mHdffCmdIf->CmdAvSetSyncShift(mNewHdffSetup.AvSyncShift); mHdffCmdIf->CmdMuxSetVideoOut((HdffVideoOut_t) mNewHdffSetup.AnalogueVideo); memset(&hdmiConfig, 0, sizeof(hdmiConfig)); hdmiConfig.TransmitAudio = true; hdmiConfig.ForceDviMode = false; hdmiConfig.CecEnabled = mNewHdffSetup.CecEnabled; hdmiConfig.VideoModeAdaption = (HdffVideoModeAdaption_t) mNewHdffSetup.VideoModeAdaption; mHdffCmdIf->CmdHdmiConfigure(&hdmiConfig); mHdffCmdIf->CmdRemoteSetProtocol((HdffRemoteProtocol_t) mNewHdffSetup.RemoteProtocol); mHdffCmdIf->CmdRemoteSetAddressFilter(mNewHdffSetup.RemoteAddress >= 0, mNewHdffSetup.RemoteAddress); } gHdffSetup = mNewHdffSetup; }
void cMenuSetupRadio::Store(void) { #ifndef REELVDR SetupStore("Activate", S_Activate = newS_Activate); SetupStore("UseStillPic", S_StillPic = newS_StillPic); SetupStore("HideMenuEntry", S_HMEntry = newS_HMEntry); #endif SetupStore("RDSText-Function", S_RtFunc = newS_RtFunc); SetupStore("RDSText-OsdTitle", S_RtOsdTitle = newS_RtOsdTitle); SetupStore("RDSText-OsdTags", S_RtOsdTags = newS_RtOsdTags); SetupStore("RDSText-OsdPosition", S_RtOsdPos = newS_RtOsdPos); SetupStore("RDSText-OsdRows", S_RtOsdRows = newS_RtOsdRows); SetupStore("RDSText-OsdLooping", S_RtOsdLoop = newS_RtOsdLoop); #ifndef REELVDR SetupStore("RDSText-OsdSkinColor", S_RtSkinColor = newS_RtSkinColor); SetupStore("RDSText-OsdBackgrColor", S_RtBgCol = newS_RtBgCol); SetupStore("RDSText-OsdBackgrTrans", S_RtBgTra = newS_RtBgTra); SetupStore("RDSText-OsdForegrColor", S_RtFgCol = newS_RtFgCol); #endif SetupStore("RDSText-OsdTimeout", S_RtOsdTO = newS_RtOsdTO); SetupStore("RDSText-Display", S_RtDispl = newS_RtDispl); SetupStore("RDSText-MsgItems", S_RtMsgItems = newS_RtMsgItems); //SetupStore("RDSplus-MemNumber", S_RtpMemNo = newS_RtpMemNo); SetupStore("RDSText-Rass", S_RassText = newS_RassText); SetupStore("ExtInfo-Req", S_ExtInfo = newS_ExtInfo); }
void cMenuSqueezeSetup::Store(void) { free(cfg.lmcHost); cfg.lmcHost = strdup(lmcHost); free(cfg.squeezeCmd); cfg.squeezeCmd = strdup(squeezeCmd); free(cfg.playerName); cfg.playerName = strdup(playerName); free(cfg.mac); cfg.mac = strdup(mac); free(cfg.audioDevice); cfg.audioDevice = strdup(audioDevice); free(cfg.alsaOptions); cfg.alsaOptions = strdup(alsaOptions); SetupStore("logLevel", cfg.logLevel); SetupStore("lmcHost", cfg.lmcHost); SetupStore("lmcPort", cfg.lmcPort); SetupStore("lmcHttpPort", cfg.lmcHttpPort); SetupStore("shadeTime", cfg.shadeTime); SetupStore("shadeLevel", cfg.shadeLevel); SetupStore("squeezeCmd", cfg.squeezeCmd); SetupStore("playerName", cfg.playerName); SetupStore("playerMac", cfg.mac); SetupStore("audioDevice", cfg.audioDevice); SetupStore("alsaOptions", cfg.alsaOptions); }
void cMenuSetupPictures::Store(void) { SetupStore("PictureDirectory", strn0cpy(PictureDirectory, newPictureDirectory, sizeof(PictureDirectory))); SetupStore("SlideShowDelay", SlideShowDelay = newSlideShowDelay); }
void cMenuFemonSetup::Store(void) { debug1("%s", __PRETTY_FUNCTION__); // Store values into setup.conf SetupStore("HideMenu", hideMenuM); SetupStore("DisplayMode", displayModeM); SetupStore("Skin", skinM); SetupStore("Theme", themeM); SetupStore("Position", positionM); SetupStore("Downscale", downscaleM); SetupStore("RedLimit", redLimitM); SetupStore("GreenLimit", greenLimitM); SetupStore("UpdateInterval", updateIntervalM); SetupStore("AnalStream", analyzeStreamM); SetupStore("CalcInterval", calcIntervalM); SetupStore("UseSvdrp", useSvdrpM); SetupStore("ServerPort", svdrpPortM); SetupStore("ServerIp", svdrpIpM); // Update global config FemonConfig.SetHideMenu(hideMenuM); FemonConfig.SetDisplayMode(displayModeM); FemonConfig.SetSkin(skinM); FemonConfig.SetTheme(themeM); FemonConfig.SetPosition(positionM); FemonConfig.SetDownscale(downscaleM); FemonConfig.SetRedLimit(redLimitM); FemonConfig.SetGreenLimit(greenLimitM); FemonConfig.SetUpdateInterval(updateIntervalM); FemonConfig.SetAnalyzeStream(analyzeStreamM); FemonConfig.SetCalcInterval(calcIntervalM); FemonConfig.SetUseSvdrp(useSvdrpM); FemonConfig.SetSvdrpPort(svdrpPortM); FemonConfig.SetSvdrpIp(svdrpIpM); }
void cMainMenuShortcutSetupPage::Store() { SetupStore(_setupEntry, *_setupValue); }
void cPinPlugin::StorePin() { SetupStore("pinCode", cPinPlugin::pinCode); }
void cMenuEPGSearchSetup::Store(void) { bool RestartSearchTimerThread = false; if (EPGSearchConfig.useSearchTimers != data.useSearchTimers) { RestartSearchTimerThread = true; cSearchTimerThread::Exit(); } bool RestartConflictCheckThread = false; if (EPGSearchConfig.checkTimerConflictsAfterUpdate != data.checkTimerConflictsAfterUpdate || EPGSearchConfig.conflictCheckIntervall != data.conflictCheckIntervall) { RestartConflictCheckThread = true; cConflictCheckThread::Exit(); } EPGSearchConfig = data; if (strcmp(EPGSearchConfig.mainmenuentry, tr("Standard EPG")) == 0) strcpy(EPGSearchConfig.mainmenuentry,""); if (isempty(EPGSearchConfig.MailAddressTo)) strcpy(EPGSearchConfig.MailAddressTo, EPGSearchConfig.MailAddress); SetupStore("HideMenu", EPGSearchConfig.hidemenu); SetupStore("MainMenuEntry", EPGSearchConfig.mainmenuentry); SetupStore("ReplaceOrgSchedule", EPGSearchConfig.ReplaceOrgSchedule); SetupStore("StartMenu", EPGSearchConfig.StartMenu); //SetupStore("RedKeyMode", EPGSearchConfig.redkeymode); //SetupStore("BlueKeyMode", EPGSearchConfig.bluekeymode); SetupStore("ShowProgress", EPGSearchConfig.showProgress); SetupStore("ShowChannelNr", EPGSearchConfig.showChannelNr); SetupStore("OnePressTimerCreation", EPGSearchConfig.onePressTimerCreation); SetupStore("ShowFavoritesMenu", EPGSearchConfig.showFavoritesMenu); SetupStore("FavoritesMenuTimespan", EPGSearchConfig.FavoritesMenuTimespan); SetupStore("UseOkForSwitch", EPGSearchConfig.useOkForSwitch); SetupStore("MaxChannelMenuNow", EPGSearchConfig.maxChannelMenuNow); SetupStore("UserMode1UseIt", EPGSearchConfig.ShowModes[showUserMode1].GetUsage()); SetupStore("UserMode1Description", EPGSearchConfig.ShowModes[showUserMode1].GetDescription()); SetupStore("UserMode1Time", EPGSearchConfig.ShowModes[showUserMode1].GetTime()); SetupStore("UserMode2UseIt", EPGSearchConfig.ShowModes[showUserMode2].GetUsage()); SetupStore("UserMode2Description", EPGSearchConfig.ShowModes[showUserMode2].GetDescription()); SetupStore("UserMode2Time", EPGSearchConfig.ShowModes[showUserMode2].GetTime()); SetupStore("UserMode3UseIt", EPGSearchConfig.ShowModes[showUserMode3].GetUsage()); SetupStore("UserMode3Description", EPGSearchConfig.ShowModes[showUserMode3].GetDescription()); SetupStore("UserMode3Time", EPGSearchConfig.ShowModes[showUserMode3].GetTime()); SetupStore("UserMode4UseIt", EPGSearchConfig.ShowModes[showUserMode4].GetUsage()); SetupStore("UserMode4Description", EPGSearchConfig.ShowModes[showUserMode4].GetDescription()); SetupStore("UserMode4Time", EPGSearchConfig.ShowModes[showUserMode4].GetTime()); SetupStore("UseSearchTimers", EPGSearchConfig.useSearchTimers); SetupStore("UpdateIntervall", EPGSearchConfig.UpdateIntervall); SetupStore("SVDRPPort", EPGSearchConfig.SVDRPPort); SetupStore("CheckTimerConflicts", EPGSearchConfig.checkTimerConflictsAfterUpdate); SetupStore("CheckTimerConflictsPriority", EPGSearchConfig.checkMinPriority); SetupStore("CheckTimerConflictsDays", EPGSearchConfig.checkMaxDays); SetupStore("CheckConflictsIntervall", EPGSearchConfig.conflictCheckIntervall); SetupStore("CheckConflictsWithinLimit", EPGSearchConfig.conflictCheckWithinLimit); SetupStore("CheckConflictsIntervall2", EPGSearchConfig.conflictCheckIntervall2); SetupStore("CheckConflictsMinDuration", EPGSearchConfig.checkMinDuration); SetupStore("CheckConflictsAfterTimerProg", EPGSearchConfig.checkTimerConflAfterTimerProg); SetupStore("CheckConflictsOnRecording", EPGSearchConfig.checkTimerConflOnRecording); SetupStore("NoConflMsgWhileReplay", EPGSearchConfig.noConflMsgWhileReplay); SetupStore("DefMarginStart", EPGSearchConfig.DefMarginStart); SetupStore("DefMarginStop", EPGSearchConfig.DefMarginStop); SetupStore("NoAnnounceWhileReplay", EPGSearchConfig.noAnnounceWhileReplay); #ifdef REELVDR SetupStore("ShowPipOnAnnounce", EPGSearchConfig.showPipOnAnnounce); #endif SetupStore("TimerProgRepeat", EPGSearchConfig.TimerProgRepeat); SetupStore("TimeIntervallFRFF", EPGSearchConfig.timeShiftValue); SetupStore("ToggleGreenYellow", EPGSearchConfig.toggleGreenYellow); SetupStore("ShowRadioChannels", EPGSearchConfig.showRadioChannels); SetupStore("IgnorePayTV", EPGSearchConfig.ignorePayTV); SetupStore("DefRecordingDir", EPGSearchConfig.defrecdir); SetupStore("UseVDRTimerEditMenu", EPGSearchConfig.useVDRTimerEditMenu); SetupStore("ShowChannelGroups", EPGSearchConfig.showChannelGroups); SetupStore("ShowDaySeparators", EPGSearchConfig.showDaySeparators); SetupStore("ShowEmptyChannels", EPGSearchConfig.showEmptyChannels); SetupStore("DefSearchTemplateID", EPGSearchConfig.DefSearchTemplateID); SetupStore("AddSubtitleToTimerMode", EPGSearchConfig.addSubtitleToTimer); cTemplFile::Reset(); char* templateFilename = strdup(AddDirectory(CONFIGDIR, "epgsearchmenu.conf")); if (access(templateFilename, F_OK) == 0) { cTemplFile templFile; if (!templFile.Load(templateFilename)) LogFile.eSysLog("could not load '%s'", templateFilename); } cTemplFile::PrepareDefaultTemplates(); free(templateFilename); cPluginEpgsearch *p = (cPluginEpgsearch*) cPluginManager::GetPlugin("epgsearch"); if (RestartSearchTimerThread) cSearchTimerThread::Init(p); if (RestartConflictCheckThread) cConflictCheckThread::Init(p); }
void cMenuSetupDirector::Store(void) { SetupStore("HideMenu", new_hide = hide); SetupStore("SwapKeys", swapKeys); SetupStore("SwapKeysInMenu", swapKeysInMenu); SetupStore("PortalMode", portalmode); SetupStore("DisplayChannelInfo", displayChannelInfo); SetupStore("SwitchChannelOnItemSelect", switchChannelOnItemSelect); SetupStore("DisplayShortcutNumbers", hidePluginAfterChannelSwitch); SetupStore("HidePluginAfterChannelSwitch", displayShortcutNumbers); SetupStore("DisplayEpgInfo", displayEpgInfo); SetupStore("ShowPluginButton", showPluginButton); SetupStore("AutoStart", autoStart); SetupStore("AutoStartRef", autoStartRef); SetupStore("AutoStartAsk", autoStartAsk); SetupStore("AvoidStartOnNoLinkChannels", avoidStartOnNoLinkChannels); }