94 if (ch->Source() == Channel->
Source() && ch->Transponder() == Channel->
Transponder()) {
147 time_t now = time(NULL);
158 Device->SetPowerSaveIfUnused();
184 const cChannel *Channel = ScanData->GetChannel();
197 if (!MaySwitchTransponder) {
#define LOCK_CHANNELS_READ
#define ISTRANSPONDER(f1, f2)
int Ca(int Index=0) const
int Transponder(void) const
Returns the transponder frequency in MHz, plus the polarization in case of sat.
static const cChannels * GetChannelsRead(cStateKey &StateKey, int TimeoutMs=0)
Gets the list of channels for read access.
int Priority(bool IgnoreOccupied=false) const
Returns the priority of the current receiving session (-MAXPRIORITY..MAXPRIORITY),...
virtual const cPositioner * Positioner(void) const
Returns a pointer to the positioner (if any) this device has used to move the satellite dish to the r...
static cDevice * ActualDevice(void)
Returns the actual receiving device in case of Transfer Mode, or the primary device otherwise.
virtual bool MaySwitchTransponder(const cChannel *Channel) const
Returns true if it is ok to switch to the Channel's transponder on this device, without disturbing an...
static cDevice * GetDevice(int Index)
Gets the device with the given Index.
bool SwitchChannel(const cChannel *Channel, bool LiveView)
Switches the device to the given Channel, initiating transfer mode if necessary.
int DeviceNumber(void) const
Returns the number of this device (0 ... numDevices - 1).
virtual bool ProvidesEIT(void) const
Returns true if this device provides EIT data and thus wants to be tuned to the channels it can recei...
static int CurrentChannel(void)
Returns the number of the current channel on the primary device.
void StopReplay(void)
Stops the current replay session (if any).
virtual bool ProvidesTransponderExclusively(const cChannel *Channel) const
Returns true if this is the only device that is able to provide the given channel's transponder.
static int NumDevices(void)
Returns the total number of devices.
virtual bool IsTunedToTransponder(const cChannel *Channel) const
Returns true if this device is currently tuned to the given Channel's transponder.
static cDevice * PrimaryDevice(void)
Returns the primary device.
virtual bool ProvidesTransponder(const cChannel *Channel) const
Returns true if this device can provide the transponder of the given Channel (which implies that it c...
void AddTransponder(cChannel *Channel)
cTransponderList * transponderList
void Del(cListObject *Object, bool DeleteObject=true)
void Add(cListObject *Object, cListObject *After=NULL)
const T * Next(const T *Object) const
< Returns the element immediately before Object in this list, or NULL if Object is the first element ...
const T * First(void) const
Returns the first element in this list, or NULL if the list is empty.
A steerable satellite dish generally points to the south on the northern hemisphere,...
const cChannel * GetChannel(void) const
int Transponder(void) const
cScanData(const cChannel *Channel)
virtual int Compare(const cListObject &ListObject) const override
Must return 0 if this object is equal to ListObject, a positive value if it is "greater",...
bool HasDeviceForChannelEIT(const cChannel *Channel) const
void AddTransponder(const cChannel *Channel)
void AddTransponders(const cList< cChannel > *Channels)
eKeys Message(eMessageType Type, const char *s, int Seconds=0)
Displays the given message, either through a currently visible display object that is capable of doin...
int Position(void)
Returns the orbital position of the satellite in case this is a DVB-S source (zero otherwise).
void Remove(bool IncState=true)
Removes this key from the lock it was previously used with.
void AddTransponder(cChannel *Channel)