#include <diseqc.h>

Definition at line 131 of file diseqc.h.
Public Types | |
| enum | dvbdev_t { kTypeSwitch = 0, kTypeRotor = 1, kTypeLNB = 2 } |
Public Member Functions | |
| DiSEqCDevDevice (DiSEqCDevTree &tree, uint devid) | |
| virtual | ~DiSEqCDevDevice () |
| virtual void | Reset (void) |
| Resets to the last known settings for this device. | |
| virtual bool | Execute (const DiSEqCDevSettings &, const DTVMultiplex &)=0 |
| Applies DiSEqC settings to this node and any children. | |
| virtual bool | Load (void)=0 |
| Loads this device from the database. | |
| virtual bool | Store (void) const =0 |
| Stores this device to the database. | |
| void | SetDeviceType (dvbdev_t type) |
| void | SetParent (DiSEqCDevDevice *parent) |
| void | SetOrdinal (uint ordinal) |
| void | SetDescription (const QString &desc) |
| void | SetRepeatCount (uint repeat) |
| virtual bool | SetChild (uint, DiSEqCDevDevice *) |
| Changes the nth child of this node. | |
| dvbdev_t | GetDeviceType (void) const |
| uint | GetDeviceID (void) const |
| bool | IsRealDeviceID (void) const |
| DiSEqCDevDevice * | GetParent (void) const |
| uint | GetOrdinal (void) const |
| QString | GetDescription (void) const |
| uint | GetRepeatCount (void) const |
| virtual uint | GetChildCount (void) const |
| Retrieves the proper number of children for this node. | |
| virtual bool | IsCommandNeeded (const DiSEqCDevSettings &, const DTVMultiplex &) const |
| Determines if this device or any child will be sending a command for the given configuration chain. | |
| virtual uint | GetVoltage (const DiSEqCDevSettings &, const DTVMultiplex &) const =0 |
| Retrives the desired voltage for this config. | |
| DiSEqCDevDevice * | FindDevice (uint dev_id) |
| Returns a device by ID. | |
| virtual DiSEqCDevDevice * | GetSelectedChild (const DiSEqCDevSettings &) const |
| Retrieves the selected child for this configuration, if any. | |
| virtual DiSEqCDevDevice * | GetChild (uint) |
| Retrieves the nth child of this node. | |
Static Public Member Functions | |
| static QString | DevTypeToString (dvbdev_t type) |
| static dvbdev_t | DevTypeFromString (const QString &type) |
| static DiSEqCDevDevice * | CreateById (DiSEqCDevTree &tree, uint devid) |
| static DiSEqCDevDevice * | CreateByType (DiSEqCDevTree &tree, dvbdev_t type, uint devid=0) |
Protected Member Functions | |
| void | SetDeviceID (uint devid) const |
Static Protected Member Functions | |
| static QString | TableToString (uint type, const TypeTable *table) |
| static uint | TableFromString (const QString &type, const TypeTable *table) |
Protected Attributes | |
| uint | m_devid |
| dvbdev_t | m_dev_type |
| QString | m_desc |
| DiSEqCDevTree & | m_tree |
| DiSEqCDevDevice * | m_parent |
| uint | m_ordinal |
| uint | m_repeat |
Static Private Attributes | |
| static const TypeTable | dvbdev_lookup [4] |
Classes | |
| struct | TypeTable |
| DiSEqCDevDevice::DiSEqCDevDevice | ( | DiSEqCDevTree & | tree, | |
| uint | devid | |||
| ) |
| tree | Parent reference to tree object. | |
| devid | Device ID of this node. |
Definition at line 761 of file diseqc.cpp.
| DiSEqCDevDevice::~DiSEqCDevDevice | ( | ) | [virtual] |
Definition at line 769 of file diseqc.cpp.
| DiSEqCDevDevice::Reset | ( | void | ) | [inline, virtual] |
Resets to the last known settings for this device.
Device will not actually have commands issued until next Execute() method.
Reimplemented in DiSEqCDevSwitch, and DiSEqCDevRotor.
Definition at line 138 of file diseqc.h.
Referenced by DiSEqCDevLNB::DiSEqCDevLNB(), DiSEqCDevRotor::Reset(), and DiSEqCDevTree::Reset().
| DiSEqCDevDevice::Execute | ( | const DiSEqCDevSettings & | , | |
| const DTVMultiplex & | ||||
| ) | [pure virtual] |
Applies DiSEqC settings to this node and any children.
| settings | Configuration chain to apply. | |
| tuning | Tuning parameters. |
Implemented in DiSEqCDevSwitch, DiSEqCDevRotor, and DiSEqCDevLNB.
Referenced by DiSEqCDevRotor::Execute(), and DiSEqCDevTree::Execute().
| DiSEqCDevDevice::Load | ( | void | ) | [pure virtual] |
Loads this device from the database.
Implemented in DiSEqCDevSwitch, DiSEqCDevRotor, and DiSEqCDevLNB.
Referenced by CreateById().
| DiSEqCDevDevice::Store | ( | void | ) | const [pure virtual] |
Stores this device to the database.
Implemented in DiSEqCDevSwitch, DiSEqCDevRotor, and DiSEqCDevLNB.
Referenced by DiSEqCDevRotor::Store(), and DiSEqCDevTree::Store().
| void DiSEqCDevDevice::SetDeviceType | ( | dvbdev_t | type | ) | [inline] |
Definition at line 145 of file diseqc.h.
Referenced by CreateByType(), and DeviceTypeSetting::save().
| void DiSEqCDevDevice::SetParent | ( | DiSEqCDevDevice * | parent | ) | [inline] |
Definition at line 146 of file diseqc.h.
Referenced by DiSEqCDevRotor::SetChild(), and DiSEqCDevSwitch::SetChild().
| void DiSEqCDevDevice::SetOrdinal | ( | uint | ordinal | ) | [inline] |
Definition at line 147 of file diseqc.h.
Referenced by DiSEqCDevRotor::SetChild(), and DiSEqCDevSwitch::SetChild().
| void DiSEqCDevDevice::SetDescription | ( | const QString & | desc | ) | [inline] |
Definition at line 148 of file diseqc.h.
Referenced by convert_diseqc_db(), CreateById(), CreateByType(), and DeviceDescrSetting::save().
| void DiSEqCDevDevice::SetRepeatCount | ( | uint | repeat | ) | [inline] |
| DiSEqCDevDevice::SetChild | ( | uint | , | |
| DiSEqCDevDevice * | ||||
| ) | [inline, virtual] |
Changes the nth child of this node.
| ordinal | Child number (starting at 0). | |
| device | New child device. (may be NULL) |
Reimplemented in DiSEqCDevSwitch, and DiSEqCDevRotor.
Definition at line 150 of file diseqc.h.
Referenced by convert_diseqc_db(), DeviceTree::CreateNewNodeDialog(), and DeviceTree::del().
| dvbdev_t DiSEqCDevDevice::GetDeviceType | ( | void | ) | const [inline] |
Definition at line 153 of file diseqc.h.
Referenced by DTVDeviceConfigGroup::AddNodes(), DeviceTree::EditNodeDialog(), DiSEqCDevTree::IsInNeedOfConf(), and DeviceTypeSetting::load().
| uint DiSEqCDevDevice::GetDeviceID | ( | void | ) | const [inline] |
Definition at line 154 of file diseqc.h.
Referenced by DTVDeviceConfigGroup::AddNodes(), convert_diseqc_db(), DeviceTree::CreateNewNodeDialog(), DeviceTree::CreateRootNodeDialog(), DiSEqCDevRotor::Execute(), FindDevice(), DiSEqCDevSwitch::GetPosition(), DiSEqCDevRotor::IsCommandNeeded(), DiSEqCDevRotor::IsMoving(), DiSEqCDevLNB::Load(), DiSEqCDevRotor::Load(), DiSEqCDevSwitch::Load(), DeviceTree::PopulateTree(), DiSEqCDevLNB::Store(), DiSEqCDevRotor::Store(), DiSEqCDevSwitch::Store(), DiSEqCDevTree::Store(), DVBChannel::Tune(), and ~DiSEqCDevDevice().
| bool DiSEqCDevDevice::IsRealDeviceID | ( | void | ) | const [inline] |
Definition at line 155 of file diseqc.h.
Referenced by DiSEqCDevLNB::Store(), DiSEqCDevRotor::Store(), DiSEqCDevSwitch::Store(), and ~DiSEqCDevDevice().
| DiSEqCDevDevice* DiSEqCDevDevice::GetParent | ( | void | ) | const [inline] |
| uint DiSEqCDevDevice::GetOrdinal | ( | void | ) | const [inline] |
| QString DiSEqCDevDevice::GetDescription | ( | void | ) | const [inline] |
Definition at line 159 of file diseqc.h.
Referenced by DeviceDescrSetting::load(), DeviceTree::PopulateTree(), RotorSetting::RotorSetting(), DiSEqCDevLNB::Store(), DiSEqCDevRotor::Store(), DiSEqCDevSwitch::Store(), and SwitchSetting::SwitchSetting().
| uint DiSEqCDevDevice::GetRepeatCount | ( | void | ) | const [inline] |
| DiSEqCDevDevice::GetChildCount | ( | void | ) | const [inline, virtual] |
Retrieves the proper number of children for this node.
Reimplemented in DiSEqCDevSwitch, and DiSEqCDevRotor.
Definition at line 161 of file diseqc.h.
Referenced by DTVDeviceConfigGroup::AddNodes(), FindDevice(), DeviceTree::PopulateTree(), and SwitchSetting::SwitchSetting().
| DiSEqCDevDevice::IsCommandNeeded | ( | const DiSEqCDevSettings & | settings, | |
| const DTVMultiplex & | tuning | |||
| ) | const [inline, virtual] |
Determines if this device or any child will be sending a command for the given configuration chain.
| settings | Configuration chain in effect. |
Reimplemented in DiSEqCDevSwitch, and DiSEqCDevRotor.
Definition at line 162 of file diseqc.h.
Referenced by DiSEqCDevTree::Execute(), and DiSEqCDevRotor::IsCommandNeeded().
| DiSEqCDevDevice::GetVoltage | ( | const DiSEqCDevSettings & | , | |
| const DTVMultiplex & | ||||
| ) | const [pure virtual] |
Retrives the desired voltage for this config.
| settings | Configuration chain in effect. | |
| tuning | Tuning parameters. |
Implemented in DiSEqCDevSwitch, DiSEqCDevRotor, and DiSEqCDevLNB.
Referenced by DiSEqCDevTree::ApplyVoltage(), DiSEqCDevRotor::GetVoltage(), and DiSEqCDevSwitch::GetVoltage().
| DiSEqCDevDevice::FindDevice | ( | uint | dev_id | ) |
Returns a device by ID.
| dev_id | Device ID to find. |
Definition at line 775 of file diseqc.cpp.
Referenced by FindDevice(), and DiSEqCDevTree::FindDevice().
| DiSEqCDevDevice::GetSelectedChild | ( | const DiSEqCDevSettings & | ) | const [inline, virtual] |
Retrieves the selected child for this configuration, if any.
| settings | Configuration chain in effect. |
Reimplemented in DiSEqCDevSwitch, and DiSEqCDevRotor.
Definition at line 170 of file diseqc.h.
Referenced by DiSEqCDevTree::FindLNB(), and DiSEqCDevTree::FindRotor().
| DiSEqCDevDevice::GetChild | ( | uint | ) | [inline, virtual] |
Retrieves the nth child of this node.
| ordinal | Child number (starting at 0). |
Reimplemented in DiSEqCDevSwitch, and DiSEqCDevRotor.
Definition at line 172 of file diseqc.h.
Referenced by DTVDeviceConfigGroup::AddNodes(), convert_diseqc_db(), FindDevice(), DeviceTree::PopulateTree(), and SwitchSetting::SwitchSetting().
| static QString DiSEqCDevDevice::DevTypeToString | ( | dvbdev_t | type | ) | [inline, static] |
| static dvbdev_t DiSEqCDevDevice::DevTypeFromString | ( | const QString & | type | ) | [inline, static] |
| DiSEqCDevDevice * DiSEqCDevDevice::CreateById | ( | DiSEqCDevTree & | tree, | |
| uint | devid | |||
| ) | [static] |
Definition at line 799 of file diseqc.cpp.
Referenced by DiSEqCDevRotor::Load(), DiSEqCDevSwitch::Load(), and DiSEqCDevTree::Load().
| DiSEqCDevDevice * DiSEqCDevDevice::CreateByType | ( | DiSEqCDevTree & | tree, | |
| dvbdev_t | type, | |||
| uint | devid = 0 | |||
| ) | [static] |
Definition at line 835 of file diseqc.cpp.
Referenced by convert_diseqc_db(), CreateById(), DeviceTree::CreateNewNodeDialog(), and DeviceTree::CreateRootNodeDialog().
| void DiSEqCDevDevice::SetDeviceID | ( | uint | devid | ) | const [inline, protected] |
Definition at line 187 of file diseqc.h.
Referenced by DiSEqCDevLNB::Store(), DiSEqCDevRotor::Store(), and DiSEqCDevSwitch::Store().
Definition at line 88 of file diseqc.cpp.
Referenced by DevTypeToString(), DiSEqCDevLNB::LNBTypeToString(), DiSEqCDevRotor::RotorTypeToString(), and DiSEqCDevSwitch::SwitchTypeToString().
| uint DiSEqCDevDevice::TableFromString | ( | const QString & | type, | |
| const TypeTable * | table | |||
| ) | [static, protected] |
Definition at line 98 of file diseqc.cpp.
Referenced by DevTypeFromString(), DiSEqCDevLNB::LNBTypeFromString(), DiSEqCDevRotor::RotorTypeFromString(), and DiSEqCDevSwitch::SwitchTypeFromString().
uint DiSEqCDevDevice::m_devid [mutable, protected] |
Definition at line 189 of file diseqc.h.
Referenced by GetDeviceID(), IsRealDeviceID(), and SetDeviceID().
dvbdev_t DiSEqCDevDevice::m_dev_type [protected] |
QString DiSEqCDevDevice::m_desc [protected] |
DiSEqCDevTree& DiSEqCDevDevice::m_tree [protected] |
Definition at line 192 of file diseqc.h.
Referenced by DiSEqCDevLNB::Execute(), DiSEqCDevSwitch::ExecuteDiseqc(), DiSEqCDevSwitch::ExecuteLegacy(), DiSEqCDevSwitch::ExecuteMiniDiSEqC(), DiSEqCDevRotor::ExecuteRotor(), DiSEqCDevSwitch::ExecuteTone(), DiSEqCDevRotor::ExecuteUSALS(), DiSEqCDevSwitch::ExecuteVoltage(), DiSEqCDevRotor::GetProgress(), DiSEqCDevRotor::Load(), DiSEqCDevSwitch::Load(), DiSEqCDevSwitch::ShouldSwitch(), and ~DiSEqCDevDevice().
DiSEqCDevDevice* DiSEqCDevDevice::m_parent [protected] |
Definition at line 193 of file diseqc.h.
Referenced by GetParent(), SetParent(), DiSEqCDevLNB::Store(), DiSEqCDevRotor::Store(), and DiSEqCDevSwitch::Store().
uint DiSEqCDevDevice::m_ordinal [protected] |
Definition at line 194 of file diseqc.h.
Referenced by GetOrdinal(), SetOrdinal(), DiSEqCDevLNB::Store(), DiSEqCDevRotor::Store(), and DiSEqCDevSwitch::Store().
uint DiSEqCDevDevice::m_repeat [protected] |
Definition at line 195 of file diseqc.h.
Referenced by DiSEqCDevSwitch::ExecuteDiseqc(), DiSEqCDevRotor::ExecuteRotor(), DiSEqCDevRotor::ExecuteUSALS(), GetRepeatCount(), DiSEqCDevLNB::Load(), DiSEqCDevRotor::Load(), DiSEqCDevSwitch::Load(), SetRepeatCount(), DiSEqCDevLNB::Store(), DiSEqCDevRotor::Store(), and DiSEqCDevSwitch::Store().
const DiSEqCDevDevice::TypeTable DiSEqCDevDevice::dvbdev_lookup [static, private] |
Initial value:
{
{ "switch", kTypeSwitch },
{ "rotor", kTypeRotor },
{ "lnb", kTypeLNB },
{ QString::null, kTypeLNB },
}
Definition at line 203 of file diseqc.h.
Referenced by DevTypeFromString(), and DevTypeToString().
1.5.5