|
MythTV master
|
#include <libmythtv/channelscan/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 : std::uint8_t { kDeleteAll , kDeleteManual , kDeleteIgnoreAll , kDeleteInvisibleAll } |
| enum | InsertAction : std::uint8_t { kInsertAll , kInsertManual , kInsertIgnoreAll } |
| enum | UpdateAction : std::uint8_t { kUpdateAll , kUpdateManual , kUpdateIgnoreAll } |
| enum | ChannelType : std::uint8_t { kChannelTypeFirst = 0 , kChannelTypeNonConflictingFirst = kChannelTypeFirst , kATSCNonConflicting = kChannelTypeFirst , kDVBNonConflicting = 1 , kSCTENonConflicting = 2 , kMPEGNonConflicting = 3 , kNTSCNonConflicting = 4 , kChannelTypeNonConflictingLast = kNTSCNonConflicting , kChannelTypeConflictingFirst = 5 , kATSCConflicting = kChannelTypeConflictingFirst , kDVBConflicting = 6 , kSCTEConflicting = 7 , kMPEGConflicting = 8 , kNTSCConflicting = 9 , kChannelTypeConflictingLast = kNTSCConflicting , kChannelTypeLast = kChannelTypeConflictingLast } |
Private Attributes | |
| bool | m_useGui |
| bool | m_isInteractive |
| bool | m_useWeb {false} |
| bool | m_doDelete |
| bool | m_doInsert |
| bool | m_doSave |
| bool | m_doLcn {true} |
| bool | m_doScn {true} |
| 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_lcnOffset {0} |
| int | m_functorRetval {0} |
| ChannelScannerWeb * | m_pWeb {nullptr} |
| ServiceRequirements | m_serviceRequirements |
| QEventLoop | m_eventLoop |
Definition at line 71 of file channelimporter.h.
|
protected |
Definition at line 107 of file channelimporter.h.
|
protected |
| Enumerator | |
|---|---|
| kDeleteAll | |
| kDeleteManual | |
| kDeleteIgnoreAll | |
| kDeleteInvisibleAll | |
Definition at line 87 of file channelimporter.h.
|
protected |
| Enumerator | |
|---|---|
| kInsertAll | |
| kInsertManual | |
| kInsertIgnoreAll | |
Definition at line 94 of file channelimporter.h.
|
protected |
| Enumerator | |
|---|---|
| kUpdateAll | |
| kUpdateManual | |
| kUpdateIgnoreAll | |
Definition at line 100 of file channelimporter.h.
| ChannelImporter::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 |
||
| ) |
Definition at line 76 of file channelimporter.cpp.
|
staticprotected |
Definition at line 944 of file channelimporter.cpp.
Referenced by DeleteChannels(), InsertChannels(), and UpdateChannels().
|
protected |
Definition at line 1203 of file channelimporter.cpp.
Referenced by Process().
|
staticprotected |
Definition at line 2529 of file channelimporter.cpp.
Referenced by InsertChannels(), QueryUserInsert(), and QueryUserResolve().
|
staticprotected |
Definition at line 1470 of file channelimporter.cpp.
Referenced by DeleteChannels(), InsertChannels(), and Process().
|
staticprotected |
Definition at line 1509 of file channelimporter.cpp.
Referenced by InsertChannels(), and Process().
|
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 1876 of file channelimporter.cpp.
Referenced by InsertChannels(), QueryUserInsert(), and QueryUserResolve().
|
staticprotected |
Definition at line 1832 of file channelimporter.cpp.
Referenced by InsertChannels().
|
protected |
Definition at line 314 of file channelimporter.cpp.
Referenced by Process().
Definition at line 413 of file channelimporter.cpp.
Referenced by Process().
|
staticprotected |
Definition at line 1166 of file channelimporter.cpp.
Referenced by Process().
|
protected |
Definition at line 1090 of file channelimporter.cpp.
Referenced by Process().
|
staticprotected |
Definition at line 1454 of file channelimporter.cpp.
Referenced by Process().
|
staticprotected |
Definition at line 1545 of file channelimporter.cpp.
Referenced by FilterRelocatedServices(), FilterServices(), and FormatChannels().
|
staticprotected |
Definition at line 1685 of file channelimporter.cpp.
Referenced by DeleteChannels(), InsertChannels(), and Process().
|
staticprotected |
Definition at line 1713 of file channelimporter.cpp.
Referenced by FormatTransports(), MergeSameFrequency(), and RemoveDuplicates().
|
staticprotected |
Definition at line 1725 of file channelimporter.cpp.
Referenced by InsertChannels(), and 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 1304 of file channelimporter.cpp.
Referenced by Process().
|
staticprotected |
Definition at line 1745 of file channelimporter.cpp.
Referenced by InsertChannels(), and Process().
|
protected |
Definition at line 468 of file channelimporter.cpp.
Referenced by InsertChannels(), and Process().
|
protected |
Definition at line 604 of file channelimporter.cpp.
|
staticprotected |
Definition at line 1777 of file channelimporter.cpp.
Referenced by CountChannels(), InsertChannels(), and UpdateChannels().
|
staticprotected |
Definition at line 963 of file channelimporter.cpp.
Referenced by Process().
| void ChannelImporter::Process | ( | const ScanDTVTransportList & | _transports, |
| int | sourceid = -1 |
||
| ) |
Definition at line 103 of file channelimporter.cpp.
Referenced by ChannelScannerWeb::HandleEvent(), main(), ChannelScannerCLI::Process(), ChannelScannerGUI::Process(), ChannelScannerWeb::Process(), and ScanWizard::Scan().
|
protected |
For multiple channels.
Definition at line 1910 of file channelimporter.cpp.
Referenced by DeleteChannels(), and DeleteUnusedTransports().
|
protected |
For multiple channels.
Definition at line 1998 of file channelimporter.cpp.
Referenced by InsertChannels().
|
protected |
For a single channel.
Definition at line 2445 of file channelimporter.cpp.
|
protected |
For a single channel.
Definition at line 2367 of file channelimporter.cpp.
Referenced by InsertChannels().
|
protected |
For multiple channels.
Definition at line 2083 of file channelimporter.cpp.
Referenced by InsertChannels().
|
staticprotected |
Definition at line 1026 of file channelimporter.cpp.
Referenced by Process().
|
protected |
Definition at line 2164 of file channelimporter.cpp.
Referenced by QueryUserInsert().
|
protected |
Definition at line 2264 of file channelimporter.cpp.
Referenced by QueryUserResolve().
|
staticprotected |
Definition at line 1853 of file channelimporter.cpp.
Referenced by DeleteChannels(), InsertChannels(), and Process().
|
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 1628 of file channelimporter.cpp.
Referenced by QueryUserInsert(), and QueryUserResolve().
|
staticprotected |
Definition at line 292 of file channelimporter.cpp.
Referenced by InsertChannels().
|
protected |
Definition at line 806 of file channelimporter.cpp.
Referenced by InsertChannels().
Definition at line 256 of file channelimporter.h.
Referenced by FilterServices(), and Process().
|
private |
Definition at line 249 of file channelimporter.h.
Referenced by Process().
|
private |
Definition at line 250 of file channelimporter.h.
Referenced by Process().
Definition at line 252 of file channelimporter.h.
Referenced by Process().
|
private |
Definition at line 251 of file channelimporter.h.
Referenced by Process().
Definition at line 253 of file channelimporter.h.
Referenced by ChannelNumbers().
|
private |
Definition at line 266 of file channelimporter.h.
Referenced by QueryUserDelete(), QueryUserInsert(), QueryUserUpdate(), ShowManualChannelPopup(), and ShowResolveChannelPopup().
Definition at line 254 of file channelimporter.h.
Referenced by FilterServices(), and Process().
Definition at line 258 of file channelimporter.h.
Referenced by GetDBTransports(), and Process().
|
private |
Definition at line 262 of file channelimporter.h.
Referenced by QueryUserDelete(), QueryUserInsert(), QueryUserUpdate(), ShowManualChannelPopup(), and ShowResolveChannelPopup().
|
private |
Definition at line 247 of file channelimporter.h.
Referenced by InsertChannels(), QueryUserDelete(), QueryUserInsert(), QueryUserResolve(), and QueryUserUpdate().
Definition at line 257 of file channelimporter.h.
Referenced by UpdateChannels().
|
private |
Definition at line 261 of file channelimporter.h.
Referenced by ChannelNumbers(), and Process().
Definition at line 255 of file channelimporter.h.
Referenced by FilterServices(), and Process().
|
private |
Definition at line 263 of file channelimporter.h.
Referenced by ChannelImporter(), DeleteChannels(), DeleteUnusedTransports(), Process(), QueryUserDelete(), QueryUserInsert(), QueryUserUpdate(), ShowManualChannelPopup(), and ShowResolveChannelPopup().
Definition at line 259 of file channelimporter.h.
Referenced by Process().
|
private |
Definition at line 265 of file channelimporter.h.
Referenced by FilterServices(), and Process().
Definition at line 260 of file channelimporter.h.
Referenced by Process().
|
private |
Definition at line 246 of file channelimporter.h.
Referenced by ChannelImporter(), Process(), QueryUserDelete(), QueryUserInsert(), QueryUserResolve(), and QueryUserUpdate().
Definition at line 248 of file channelimporter.h.
Referenced by ChannelImporter(), DeleteChannels(), DeleteUnusedTransports(), Process(), QueryUserDelete(), QueryUserInsert(), QueryUserUpdate(), ShowManualChannelPopup(), and ShowResolveChannelPopup().