Go to the documentation of this file.
29 #include "libmythbase/mythconfig.h"
31 #include <QScriptEngine>
42 Q_INVOKABLE
explicit Channel( QObject * =
nullptr ) {}
56 bool OnlyTunable )
override;
63 const QString &CallSign,
64 const QString &ChannelName,
65 const QString &ChannelNumber,
67 uint ATSCMajorChannel,
68 uint ATSCMinorChannel,
71 const QString &ExtendedVisible,
72 const QString &FrequencyID,
75 const QString &XMLTVID,
76 const QString &DefaultAuthority,
77 uint ServiceType )
override;
82 const QString &CallSign,
83 const QString &ChannelName,
84 const QString &ChannelNumber,
86 uint ATSCMajorChannel,
87 uint ATSCMinorChannel,
90 const QString &ExtendedVisible,
91 const QString &FrequencyID,
94 const QString &XMLTVID,
95 const QString &DefaultAuthority,
96 uint ServiceType )
override;
107 const QString &SourceName,
108 const QString &Grabber,
109 const QString &UserId,
111 const QString &LineupId,
114 const QString &ConfigPath,
122 const QString &Grabber,
123 const QString &UserId,
125 const QString &LineupId,
128 const QString &ConfigPath,
139 const QString & )
override;
143 bool WaitForFinish )
override;
149 uint Count )
override;
173 class ScriptableChannel :
public QObject
180 QScriptEngine *m_pEngine;
184 Q_INVOKABLE
explicit ScriptableChannel( QScriptEngine *pEngine, QObject *parent =
nullptr ) : QObject( parent )
191 QObject* GetChannelInfoList (
int SourceID = 0,
192 int ChannelGroupID = 0,
195 bool OnlyVisible =
false,
196 bool Details =
false,
197 bool OrderByName =
false,
198 bool GroupByCallsign =
false,
199 bool OnlyTunable =
false
203 return m_obj.
GetChannelInfoList(
SourceID, ChannelGroupID, StartIndex, Count, OnlyVisible, Details, OrderByName, GroupByCallsign, OnlyTunable );
207 QObject* GetChannelInfo (
int ChanID )
214 bool UpdateDBChannel (
uint MplexID,
217 const QString &CallSign,
218 const QString &ChannelName,
219 const QString &ChannelNumber,
221 uint ATSCMajorChannel,
222 uint ATSCMinorChannel,
225 const QString &ExtendedVisible,
226 const QString &FrequencyID,
229 const QString &XMLTVID,
230 const QString &DefaultAuthority,
235 CallSign, ChannelName, ChannelNumber,
236 ServiceID, ATSCMajorChannel, ATSCMinorChannel,
238 XMLTVID, DefaultAuthority, ServiceType);
242 bool AddDBChannel (
uint MplexID,
245 const QString &CallSign,
246 const QString &ChannelName,
247 const QString &ChannelNumber,
249 uint ATSCMajorChannel,
250 uint ATSCMinorChannel,
253 const QString &ExtendedVisible,
254 const QString &FrequencyID,
257 const QString &XMLTVID,
258 const QString &DefaultAuthority,
263 CallSign, ChannelName, ChannelNumber,
264 ServiceID, ATSCMajorChannel, ATSCMinorChannel,
266 XMLTVID, DefaultAuthority, ServiceType);
277 QObject* GetVideoSourceList (
void )
292 const QString &SourceName,
293 const QString &Grabber,
294 const QString &UserId,
296 const QString &LineupId,
299 const QString &ConfigPath,
309 UseEIT, ConfigPath, NITId, BouquetId, RegionId,
314 bool AddVideoSource (
const QString &SourceName,
315 const QString &Grabber,
316 const QString &UserId,
318 const QString &LineupId,
321 const QString &ConfigPath,
331 UseEIT, ConfigPath, NITId, BouquetId, RegionId,
343 QObject* GetVideoMultiplexList (
int SourceID,
352 QObject* GetVideoMultiplex (
int MplexID )
359 QStringList GetXMLTVIdList (
int SourceID )
static StandardSetting * Password(bool enabled)
Setting for changing password.
int FetchChannelsFromSource(uint SourceId, uint CardId, bool WaitForFinish) override
bool RemoveDBChannel(uint ChannelID) override
DTC::VideoMultiplexList * GetVideoMultiplexList(uint SourceID, uint StartIndex, uint Count) override
QStringList GetXMLTVIdList(uint SourceID) override
DTC::VideoMultiplex * GetVideoMultiplex(uint MplexID) override
DTC::LineupList * GetDDLineupList(const QString &, const QString &, const QString &) override
Q_INVOKABLE Channel(QObject *=nullptr)
DTC::VideoSourceList * GetVideoSourceList(void) override
bool UpdateDBChannel(uint MplexID, uint SourceID, uint ChannelID, const QString &CallSign, const QString &ChannelName, const QString &ChannelNumber, uint ServiceID, uint ATSCMajorChannel, uint ATSCMinorChannel, bool UseEIT, bool Visible, const QString &ExtendedVisible, const QString &FrequencyID, const QString &Icon, const QString &Format, const QString &XMLTVID, const QString &DefaultAuthority, uint ServiceType) override
DTC::ChannelInfoList * GetChannelInfoList(uint SourceID, uint ChannelGroupID, uint StartIndex, uint Count, bool OnlyVisible, bool Details, bool OrderByName, bool GroupByCallsign, bool OnlyTunable) override
static GlobalComboBoxSetting * FreqTable()
#define Q_SCRIPT_DECLARE_QMETAOBJECT_MYTHTV(T, _Arg1)
DTC::VideoSource * GetVideoSource(uint SourceID) override
#define SCRIPT_CATCH_EXCEPTION(default, code)
bool UpdateVideoSource(uint SourceID, const QString &SourceName, const QString &Grabber, const QString &UserId, const QString &FreqTable, const QString &LineupId, const QString &Password, bool UseEIT, const QString &ConfigPath, int NITId, uint BouquetId, uint RegionId, uint ScanFrequency, uint LCNOffset) override
bool RemoveVideoSource(uint SourceID) override
int AddVideoSource(const QString &SourceName, const QString &Grabber, const QString &UserId, const QString &FreqTable, const QString &LineupId, const QString &Password, bool UseEIT, const QString &ConfigPath, int NITId, uint BouquetId, uint RegionId, uint ScanFrequency, uint LCNOffset) override
bool AddDBChannel(uint MplexID, uint SourceID, uint ChannelID, const QString &CallSign, const QString &ChannelName, const QString &ChannelNumber, uint ServiceID, uint ATSCMajorChannel, uint ATSCMinorChannel, bool UseEIT, bool Visible, const QString &ExtendedVisible, const QString &FrequencyID, const QString &Icon, const QString &Format, const QString &XMLTVID, const QString &DefaultAuthority, uint ServiceType) override
DTC::ChannelInfo * GetChannelInfo(uint ChanID) override