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

DVB-S device settings class. More...

#include <libmythtv/diseqc.h>

Collaboration diagram for DiSEqCDevSettings:
[legend]

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_inputId {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 36 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 128 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 162 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 204 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 219 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 47 of file diseqc.h.

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

◆ m_inputId

uint DiSEqCDevSettings::m_inputId {1}
protected

current input id

Definition at line 48 of file diseqc.h.

Referenced by Load(), and SetValue().


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