MythTV
master
|
#include <channelimporter.h>
Public Member Functions | |
ChannelImporter (bool gui, bool interactive, bool _delete, bool insert, bool save, bool fta_only, bool lcn_only, bool complete_only, bool full_channel_search, bool remove_duplicates, ServiceRequirements service_requirements, bool success=false) | |
void | Process (const ScanDTVTransportList &_transports, int sourceid=-1) |
Protected Types | |
enum | DeleteAction { kDeleteAll, kDeleteManual, kDeleteIgnoreAll, kDeleteInvisibleAll } |
enum | InsertAction { kInsertAll, kInsertManual, kInsertIgnoreAll } |
enum | UpdateAction { kUpdateAll, kUpdateManual, kUpdateIgnoreAll } |
enum | ChannelType { kChannelTypeFirst = 0, kChannelTypeNonConflictingFirst = kChannelTypeFirst, kATSCNonConflicting = kChannelTypeFirst, kDVBNonConflicting, kSCTENonConflicting, kMPEGNonConflicting, kNTSCNonConflicting, kChannelTypeNonConflictingLast = kNTSCNonConflicting, kChannelTypeConflictingFirst, kATSCConflicting = kChannelTypeConflictingFirst, kDVBConflicting, kSCTEConflicting, kMPEGConflicting, kNTSCConflicting, kChannelTypeConflictingLast = kNTSCConflicting, kChannelTypeLast = kChannelTypeConflictingLast } |
Protected Member Functions | |
void | FilterServices (ScanDTVTransportList &transports) const |
ScanDTVTransportList | GetDBTransports (uint sourceid, ScanDTVTransportList &transports) const |
Adds found channel info to transports list, returns channels in DB which were not found in scan in another transport list. This can be the same transport if e.g. one channel is in the DB but not in the scan, but it can also contain transports that are not found in the scan. More... | |
uint | DeleteChannels (ScanDTVTransportList &transports) |
uint | DeleteUnusedTransports (uint sourceid) |
void | InsertChannels (const ScanDTVTransportList &transports, const ChannelImporterBasicStats &info) |
ScanDTVTransportList | InsertChannels (const ScanDTVTransportList &transports, const ChannelImporterBasicStats &info, InsertAction action, ChannelType type, ScanDTVTransportList &inserted, ScanDTVTransportList &skipped) |
ScanDTVTransportList | UpdateChannels (const ScanDTVTransportList &transports, const ChannelImporterBasicStats &info, UpdateAction action, ChannelType type, ScanDTVTransportList &updated, ScanDTVTransportList &skipped) const |
DeleteAction | QueryUserDelete (const QString &msg) |
For multiple channels. More... | |
InsertAction | QueryUserInsert (const QString &msg) |
For multiple channels. More... | |
UpdateAction | QueryUserUpdate (const QString &msg) |
For multiple channels. More... | |
OkCancelType | QueryUserResolve (const ScanDTVTransport &transport, ChannelInsertInfo &chan) |
For a single channel. More... | |
OkCancelType | QueryUserInsert (const ScanDTVTransport &transport, ChannelInsertInfo &chan) |
For a single channel. More... | |
OkCancelType | ShowManualChannelPopup (MythMainWindow *parent, const QString &title, const QString &message, QString &text) |
OkCancelType | ShowResolveChannelPopup (MythMainWindow *parent, const QString &title, const QString &message, QString &text) |
Private Attributes | |
bool | m_useGui |
bool | m_isInteractive |
bool | m_doDelete |
bool | m_doInsert |
bool | m_doSave |
bool | m_ftaOnly {true} |
bool | m_lcnOnly {false} |
bool | m_completeOnly {true} |
bool | m_keepChannelNumbers {true} |
bool | m_fullChannelSearch {false} |
bool | m_removeDuplicates {false} |
bool | m_success {false} |
int | m_functorRetval {0} |
ServiceRequirements | m_serviceRequirements |
QEventLoop | m_eventLoop |
Definition at line 70 of file channelimporter.h.
|
protected |
Enumerator | |
---|---|
kDeleteAll | |
kDeleteManual | |
kDeleteIgnoreAll | |
kDeleteInvisibleAll |
Definition at line 98 of file channelimporter.h.
|
protected |
Enumerator | |
---|---|
kInsertAll | |
kInsertManual | |
kInsertIgnoreAll |
Definition at line 105 of file channelimporter.h.
|
protected |
Enumerator | |
---|---|
kUpdateAll | |
kUpdateManual | |
kUpdateIgnoreAll |
Definition at line 111 of file channelimporter.h.
|
protected |
Definition at line 118 of file channelimporter.h.
|
inline |
Definition at line 75 of file channelimporter.h.
void ChannelImporter::Process | ( | const ScanDTVTransportList & | _transports, |
int | sourceid = -1 |
||
) |
Definition at line 54 of file channelimporter.cpp.
Referenced by main(), ChannelScannerCLI::Process(), ChannelScannerGUI::Process(), and ScanWizard::Scan().
|
staticprotected |
Definition at line 216 of file channelimporter.cpp.
Referenced by InsertChannels().
|
staticprotected |
Definition at line 880 of file channelimporter.cpp.
Referenced by Process().
|
staticprotected |
Definition at line 943 of file channelimporter.cpp.
Referenced by Process().
|
protected |
Definition at line 1007 of file channelimporter.cpp.
Referenced by Process().
|
staticprotected |
Definition at line 1083 of file channelimporter.cpp.
Referenced by Process().
|
protected |
Adds found channel info to transports list, returns channels in DB which were not found in scan in another transport list. This can be the same transport if e.g. one channel is in the DB but not in the scan, but it can also contain transports that are not found in the scan.
Definition at line 1126 of file channelimporter.cpp.
Referenced by Process().
|
protected |
Definition at line 238 of file channelimporter.cpp.
Referenced by Process().
Definition at line 335 of file channelimporter.cpp.
Referenced by Process().
|
protected |
Definition at line 389 of file channelimporter.cpp.
Referenced by Process().
|
protected |
Definition at line 525 of file channelimporter.cpp.
|
protected |
Definition at line 727 of file channelimporter.cpp.
Referenced by InsertChannels().
|
protected |
For multiple channels.
Definition at line 1731 of file channelimporter.cpp.
Referenced by DeleteChannels(), and DeleteUnusedTransports().
|
protected |
For multiple channels.
Definition at line 1807 of file channelimporter.cpp.
Referenced by InsertChannels().
|
protected |
For multiple channels.
Definition at line 1880 of file channelimporter.cpp.
Referenced by InsertChannels().
|
protected |
For a single channel.
Definition at line 2092 of file channelimporter.cpp.
Referenced by InsertChannels().
|
protected |
For a single channel.
Definition at line 2170 of file channelimporter.cpp.
|
staticprotected |
Compute a suggested channel number that is unique in the video source. Check first to see if the existing channel number conflicts with an existing channel number. If so, try adding a suffix starting with 'A' to make the number unique while still being recognizable. For instance, the second "7-2" channel will be called "7-2A". If this fails then fall back to incrementing a per-source number to find an unused value.
chan | Info describing a channel |
Definition at line 1697 of file channelimporter.cpp.
Referenced by InsertChannels(), QueryUserInsert(), and QueryUserResolve().
|
protected |
Definition at line 1950 of file channelimporter.cpp.
Referenced by QueryUserInsert().
|
protected |
Definition at line 2020 of file channelimporter.cpp.
Referenced by QueryUserResolve().
|
staticprotected |
Definition at line 1276 of file channelimporter.cpp.
Referenced by Process().
|
staticprotected |
Definition at line 1292 of file channelimporter.cpp.
Referenced by DeleteChannels(), InsertChannels(), and Process().
|
staticprotected |
Definition at line 1330 of file channelimporter.cpp.
Referenced by InsertChannels(), and Process().
|
staticprotected |
Definition at line 1506 of file channelimporter.cpp.
Referenced by DeleteChannels(), InsertChannels(), and Process().
|
staticprotected |
Definition at line 1366 of file channelimporter.cpp.
Referenced by FilterRelocatedServices(), FilterServices(), and FormatChannels().
|
staticprotected |
Format channel information into a simple string. The format of this string will depend on the type of standard used for the channels (atsc/scte/opencable/dvb).
transport | Unused. |
chan | Info describing a channel |
Definition at line 1449 of file channelimporter.cpp.
Referenced by QueryUserInsert(), and QueryUserResolve().
|
staticprotected |
Definition at line 1534 of file channelimporter.cpp.
Referenced by FormatTransports(), MergeSameFrequency(), and RemoveDuplicates().
|
staticprotected |
Definition at line 1546 of file channelimporter.cpp.
Referenced by InsertChannels(), and Process().
|
staticprotected |
Definition at line 1566 of file channelimporter.cpp.
Referenced by InsertChannels(), and Process().
|
staticprotected |
Definition at line 1598 of file channelimporter.cpp.
Referenced by CountChannels(), InsertChannels(), and UpdateChannels().
|
staticprotected |
Definition at line 1653 of file channelimporter.cpp.
Referenced by InsertChannels().
|
staticprotected |
Definition at line 1674 of file channelimporter.cpp.
Referenced by DeleteChannels(), InsertChannels(), and Process().
|
staticprotected |
Definition at line 2254 of file channelimporter.cpp.
Referenced by InsertChannels(), QueryUserInsert(), and QueryUserResolve().
|
staticprotected |
Definition at line 861 of file channelimporter.cpp.
Referenced by DeleteChannels(), InsertChannels(), and UpdateChannels().
|
private |
Definition at line 256 of file channelimporter.h.
Referenced by Process(), QueryUserDelete(), QueryUserInsert(), QueryUserResolve(), and QueryUserUpdate().
|
private |
Definition at line 257 of file channelimporter.h.
Referenced by InsertChannels(), QueryUserDelete(), QueryUserInsert(), QueryUserResolve(), and QueryUserUpdate().
|
private |
Definition at line 258 of file channelimporter.h.
Referenced by Process().
|
private |
Definition at line 259 of file channelimporter.h.
Referenced by Process().
|
private |
Definition at line 260 of file channelimporter.h.
Referenced by Process().
Definition at line 261 of file channelimporter.h.
Referenced by FilterServices(), and Process().
Definition at line 262 of file channelimporter.h.
Referenced by FilterServices(), and Process().
Definition at line 263 of file channelimporter.h.
Referenced by FilterServices(), and Process().
Definition at line 264 of file channelimporter.h.
Referenced by UpdateChannels().
Definition at line 265 of file channelimporter.h.
Referenced by GetDBTransports(), and Process().
Definition at line 266 of file channelimporter.h.
Referenced by Process().
Definition at line 267 of file channelimporter.h.
Referenced by Process().
|
private |
Definition at line 268 of file channelimporter.h.
Referenced by QueryUserDelete(), QueryUserInsert(), QueryUserUpdate(), ShowManualChannelPopup(), and ShowResolveChannelPopup().
|
private |
Definition at line 270 of file channelimporter.h.
Referenced by FilterServices(), and Process().
|
private |
Definition at line 271 of file channelimporter.h.
Referenced by QueryUserDelete(), QueryUserInsert(), QueryUserUpdate(), ShowManualChannelPopup(), and ShowResolveChannelPopup().