19 #define dbgsdt(a...) if (DebugSdt) fprintf(stderr, a)
62 bool ChannelsModified =
false;
94 char *p = strchr(pn,
'>');
101 for (
char *p = ShortNameBuf; *p; p++) {
110 ChannelsModified |= Channel->
SetName(pn, ps, pp);
121 ChannelsModified =
true;
149 ChannelsModified =
true;
155 ChannelsModified =
true;
178 StateKey.
Remove(ChannelsModified);
static cString ToString(int Code)
bool SetName(const char *Name, const char *ShortName, const char *Provider)
StructureLoop< Service > serviceLoop
void Add(cListObject *Object, cListObject *After=NULL)
int getServiceType() const
void Remove(bool IncState=true)
Removes this key from the lock it was previously used with.
StructureLoop< Service > serviceLoop
const cChannel * Channel(void)
Returns the channel of the data delivered to this filter.
bool SetId(cChannels *Channels, int Nid, int Tid, int Sid, int Rid=0)
DescriptorTag getDescriptorTag() const
int Transponder(void) const
Returns the transponder frequency in MHz, plus the polarization in case of sat.
cSectionSyncer sectionSyncer
static cChannels * GetChannelsWrite(cStateKey &StateKey, int TimeoutMs=0)
Gets the list of channels for write access.
int getSectionNumber() const
bool Sync(uchar Version, int Number, int LastNumber)
cChannel * NewChannel(const cChannel *Transponder, const char *Name, const char *ShortName, const char *Provider, int Nid, int Tid, int Sid, int Rid=0)
const cChannel * GetByChannelID(tChannelID ChannelID, bool TryWithoutRid=false, bool TryWithoutPolarization=false) const
int Source(void)
Returns the source of the data delivered to this filter.
DescriptorLoop serviceDescriptors
int getOriginalNetworkId() const
virtual void SetStatus(bool On)
Turns this filter on or off, depending on the value of On.
virtual void SetStatus(bool On)
Turns this filter on or off, depending on the value of On.
int getTransportStreamId() const
int getVersionNumber() const
virtual void Process(u_short Pid, u_char Tid, const u_char *Data, int Length)
Processes the data delivered to this filter.
static bool IsCable(int Code)
int getLastSectionNumber() const
int getTransportStream() const
bool SetLinkChannels(cLinkChannels *LinkChannels)
bool SetSource(int Source)
int Transponder(void)
Returns the transponder of the data delivered to this filter.
void Set(u_short Pid, u_char Tid, u_char Mask=0xFF)
Sets the given filter data by calling Add() with Sticky = true.
bool MarkObsoleteChannels(int Source, int Nid, int Tid)
cSdtFilter(cPatFilter *PatFilter)
Descriptor * getNext(Iterator &it)
int getOriginalNetworkId() const