MythTV  master
Public Member Functions | Protected Attributes | List of all members
DiSEqCDevSettings Class Reference

DVB-S device settings class. More...

#include <diseqc.h>

Public Member Functions

 DiSEqCDevSettings ()=default
 
bool Load (uint card_input_id)
 Loads configuration chain from DB for specified card input id. More...
 
bool Store (uint card_input_id) const
 Stores configuration chain to DB for specified card input id. More...
 
double GetValue (uint devid) const
 Retrieves a value from this configuration chain by device id. More...
 
void SetValue (uint devid, double value)
 Sets a value for this configuration chain by device id. More...
 

Protected Attributes

uint_to_dbl_t m_config
 
uint m_input_id {1}
 current input id More...
 

Detailed Description

DVB-S device settings class.

Represents a single possible configuration of a given network of DVB-S devices.

Definition at line 35 of file diseqc.h.

Constructor & Destructor Documentation

◆ DiSEqCDevSettings()

DiSEqCDevSettings::DiSEqCDevSettings ( )
default

Member Function Documentation

◆ Load()

bool DiSEqCDevSettings::Load ( uint  card_input_id)

Loads configuration chain from DB for specified card input id.

Parameters
card_input_idDesired capture card input ID.
Returns
True if successful.

Definition at line 130 of file diseqc.cpp.

Referenced by clone_capturecard(), CardInput::loadByID(), and DVBChannel::Tune().

◆ Store()

bool DiSEqCDevSettings::Store ( uint  card_input_id) const

Stores configuration chain to DB for specified card input id.

Parameters
card_input_idDesired capture card input ID.
Returns
True if successful.

Definition at line 164 of file diseqc.cpp.

Referenced by clone_capturecard(), and CardInput::Save().

◆ GetValue()

double DiSEqCDevSettings::GetValue ( uint  devid) const

Retrieves a value from this configuration chain by device id.

Parameters
devidDevice id.
Returns
Device scalar value.

Definition at line 207 of file diseqc.cpp.

Referenced by DiSEqCDevRotor::Execute(), DiSEqCDevSCR::Execute(), DiSEqCDevSwitch::GetPosition(), DiSEqCDevRotor::IsCommandNeeded(), DiSEqCDevRotor::IsMoving(), SwitchSetting::Load(), RotorSetting::Load(), USALSRotorSetting::Load(), and SCRPositionSetting::Load().

◆ SetValue()

void DiSEqCDevSettings::SetValue ( uint  devid,
double  value 
)

Sets a value for this configuration chain by device id.

Parameters
devidDevice id.
valueDevice scalar value.

Definition at line 222 of file diseqc.cpp.

Referenced by SwitchSetting::Save(), RotorSetting::Save(), USALSRotorSetting::Save(), and SCRPositionSetting::Save().

Member Data Documentation

◆ m_config

uint_to_dbl_t DiSEqCDevSettings::m_config
protected

Definition at line 46 of file diseqc.h.

Referenced by GetValue(), Load(), SetValue(), and Store().

◆ m_input_id

uint DiSEqCDevSettings::m_input_id {1}
protected

current input id

Definition at line 47 of file diseqc.h.

Referenced by Load(), and SetValue().


The documentation for this class was generated from the following files: