MythTV  master
Classes | Functions | Variables
diseqcsettings.cpp File Reference
#include <cmath>
#include <utility>
#include "mythdbcon.h"
#include "mythlogging.h"
#include "diseqcsettings.h"
Include dependency graph for diseqcsettings.cpp:

Go to the source code of this file.

Classes

class  DeviceTypeSetting
 
class  DeviceDescrSetting
 
class  DeviceRepeatSetting
 
class  SwitchTypeSetting
 
class  SwitchAddressSetting
 
class  SwitchPortsSetting
 
class  RotorTypeSetting
 
class  RotorLoSpeedSetting
 
class  RotorHiSpeedSetting
 
class  RotorPosTextEdit
 
class  SCRUserBandSetting
 
class  SCRFrequencySetting
 
class  SCRPINSetting
 
class  lnb_preset
 
class  LNBPresetSetting
 
class  LNBTypeSetting
 
class  LNBLOFSwitchSetting
 
class  LNBLOFLowSetting
 
class  LNBLOFHighSetting
 
class  LNBPolarityInvertedSetting
 
class  SwitchSetting
 
class  RotorSetting
 
class  USALSRotorSetting
 
class  SCRPositionSetting
 

Functions

static GlobalTextEditSettingDiSEqCLatitude (void)
 
static GlobalTextEditSettingDiSEqCLongitude (void)
 
static QString AngleToString (double angle)
 
static double AngleToEdit (double angle, QString &hemi)
 
static double AngleToFloat (const QString &angle, bool translated=true)
 
static uint FindPreset (const DiSEqCDevLNB &lnb)
 

Variables

static const std::array< const lnb_preset, 7 > lnb_presets
 

Function Documentation

◆ DiSEqCLatitude()

static GlobalTextEditSetting* DiSEqCLatitude ( void  )
static

Definition at line 18 of file diseqcsettings.cpp.

Referenced by RotorConfig::RotorConfig().

◆ DiSEqCLongitude()

static GlobalTextEditSetting* DiSEqCLongitude ( void  )
static

Definition at line 28 of file diseqcsettings.cpp.

Referenced by RotorConfig::RotorConfig().

◆ AngleToString()

static QString AngleToString ( double  angle)
static

Definition at line 424 of file diseqcsettings.cpp.

Referenced by RotorSetting::Load(), and RotorPosMap::PopulateList().

◆ AngleToEdit()

static double AngleToEdit ( double  angle,
QString &  hemi 
)
static

Definition at line 440 of file diseqcsettings.cpp.

Referenced by USALSRotorSetting::Load().

◆ AngleToFloat()

static double AngleToFloat ( const QString &  angle,
bool  translated = true 
)
static

Definition at line 452 of file diseqcsettings.cpp.

Referenced by USALSRotorSetting::Save(), and RotorPosMap::valueChanged().

◆ FindPreset()

static uint FindPreset ( const DiSEqCDevLNB lnb)
static

Definition at line 712 of file diseqcsettings.cpp.

Referenced by LNBPresetSetting::Load().

Variable Documentation

◆ lnb_presets

const std::array<const lnb_preset,7> lnb_presets
static
Initial value:
{
lnb_preset(QT_TRANSLATE_NOOP("DeviceTree", "Universal (Europe)"),
11700000, 9750000, 10600000),
lnb_preset(QT_TRANSLATE_NOOP("DeviceTree", "Single (Europe)"),
lnb_preset(QT_TRANSLATE_NOOP("DeviceTree", "Circular (N. America)"),
lnb_preset(QT_TRANSLATE_NOOP("DeviceTree", "Linear (N. America)"),
lnb_preset(QT_TRANSLATE_NOOP("DeviceTree", "C Band"),
lnb_preset(QT_TRANSLATE_NOOP("DeviceTree", "DishPro Bandstacked"),
DiSEqCDevLNB::kTypeBandstacked, 0, 11250000, 14350000),
}

Definition at line 692 of file diseqcsettings.cpp.

Referenced by FindPreset(), LNBPresetSetting::LNBPresetSetting(), and LNBConfig::SetPreset().

lnb_preset
Definition: diseqcsettings.cpp:674
DiSEqCDevLNB::kTypeBandstacked
@ kTypeBandstacked
Definition: diseqc.h:458
DiSEqCDevLNB::kTypeVoltageAndToneControl
@ kTypeVoltageAndToneControl
Definition: diseqc.h:457
DiSEqCDevLNB::kTypeVoltageControl
@ kTypeVoltageControl
Definition: diseqc.h:456