MythTV  0.26-pre
Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Private Attributes
ChannelImporter Class Reference

#include <channelimporter.h>

List of all members.

Public Member Functions

 ChannelImporter (bool gui, bool interactive, bool _delete, bool insert, bool save, bool fta_only, ServiceRequirements service_requirements)
void Process (const ScanDTVTransportList &)

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

QString toString (ChannelType type)
void CleanupDuplicates (ScanDTVTransportList &transports) const
void FilterServices (ScanDTVTransportList &transports) const
ScanDTVTransportList GetDBTransports (uint sourceid, ScanDTVTransportList &) const
 Adds found channel info to transports list, returns channels in DB which were not found in scan.
uint DeleteChannels (ScanDTVTransportList &)
uint DeleteUnusedTransports (uint sourceid)
void InsertChannels (const ScanDTVTransportList &, const ChannelImporterBasicStats &)
ScanDTVTransportList InsertChannels (const ScanDTVTransportList &transports, const ChannelImporterBasicStats &info, InsertAction action, ChannelType type, ScanDTVTransportList &filtered)
ScanDTVTransportList UpdateChannels (const ScanDTVTransportList &transports, const ChannelImporterBasicStats &info, UpdateAction action, ChannelType type, ScanDTVTransportList &filtered)
DeleteAction QueryUserDelete (const QString &msg)
 For multiple channels.
InsertAction QueryUserInsert (const QString &msg)
 For multiple channels.
UpdateAction QueryUserUpdate (const QString &msg)
 For multiple channels.
OkCancelType QueryUserResolve (const ChannelImporterBasicStats &info, const ScanDTVTransport &transport, ChannelInsertInfo &chan)
 For a single channel.
OkCancelType QueryUserInsert (const ChannelImporterBasicStats &info, const ScanDTVTransport &transport, ChannelInsertInfo &chan)
 For a single channel.

Static Protected Member Functions

static QString ComputeSuggestedChannelNum (const ChannelImporterBasicStats &info, const ScanDTVTransport &transport, const ChannelInsertInfo &chan)
static OkCancelType ShowManualChannelPopup (MythMainWindow *parent, QString title, QString message, QString &text)
static void FixUpOpenCable (ScanDTVTransportList &transports)
static ChannelImporterBasicStats CollectStats (const ScanDTVTransportList &transports)
static
ChannelImporterUniquenessStats 
CollectUniquenessStats (const ScanDTVTransportList &transports, const ChannelImporterBasicStats &info)
static QString FormatChannels (const ScanDTVTransportList &transports, const ChannelImporterBasicStats &info)
static QString FormatChannel (const ScanDTVTransport &transport, const ChannelInsertInfo &chan, const ChannelImporterBasicStats *info=NULL)
static QString SimpleFormatChannel (const ScanDTVTransport &transport, const ChannelInsertInfo &chan)
static QString GetSummary (uint transport_count, const ChannelImporterBasicStats &info, const ChannelImporterUniquenessStats &stats)
static bool IsType (const ChannelImporterBasicStats &info, const ChannelInsertInfo &chan, ChannelType type)
static void CountChannels (const ScanDTVTransportList &transports, const ChannelImporterBasicStats &info, ChannelType type, uint &new_chan, uint &old_chan)

Private Attributes

bool use_gui
bool is_interactive
bool do_delete
bool do_insert
bool do_save
bool m_fta_only
 Only FreeToAir (non-encrypted) channels desired post scan?
ServiceRequirements m_service_requirements
 Services desired post scan.

Detailed Description

Definition at line 76 of file channelimporter.h.


Member Enumeration Documentation

Enumerator:
kDeleteAll 
kDeleteManual 
kDeleteIgnoreAll 
kDeleteInvisibleAll 

Definition at line 90 of file channelimporter.h.

Enumerator:
kInsertAll 
kInsertManual 
kInsertIgnoreAll 

Definition at line 97 of file channelimporter.h.

Enumerator:
kUpdateAll 
kUpdateManual 
kUpdateIgnoreAll 

Definition at line 103 of file channelimporter.h.

enum ChannelImporter::ChannelType [protected]
Enumerator:
kChannelTypeFirst 
kChannelTypeNonConflictingFirst 
kATSCNonConflicting 
kDVBNonConflicting 
kSCTENonConflicting 
kMPEGNonConflicting 
kNTSCNonConflicting 
kChannelTypeNonConflictingLast 
kChannelTypeConflictingFirst 
kATSCConflicting 
kDVBConflicting 
kSCTEConflicting 
kMPEGConflicting 
kNTSCConflicting 
kChannelTypeConflictingLast 
kChannelTypeLast 

Definition at line 110 of file channelimporter.h.


Constructor & Destructor Documentation

ChannelImporter::ChannelImporter ( bool  gui,
bool  interactive,
bool  _delete,
bool  insert,
bool  save,
bool  fta_only,
ServiceRequirements  service_requirements 
) [inline]

Definition at line 79 of file channelimporter.h.


Member Function Documentation

QString ChannelImporter::toString ( ChannelType  type) [protected]

Definition at line 119 of file channelimporter.cpp.

void ChannelImporter::CleanupDuplicates ( ScanDTVTransportList transports) const [protected]

Definition at line 692 of file channelimporter.cpp.

void ChannelImporter::FilterServices ( ScanDTVTransportList transports) const [protected]

Definition at line 744 of file channelimporter.cpp.

ScanDTVTransportList ChannelImporter::GetDBTransports ( uint  sourceid,
ScanDTVTransportList transports 
) const [protected]

Adds found channel info to transports list, returns channels in DB which were not found in scan.

Definition at line 783 of file channelimporter.cpp.

Definition at line 139 of file channelimporter.cpp.

Definition at line 226 of file channelimporter.cpp.

void ChannelImporter::InsertChannels ( const ScanDTVTransportList transports,
const ChannelImporterBasicStats info 
) [protected]

Definition at line 279 of file channelimporter.cpp.

ScanDTVTransportList ChannelImporter::InsertChannels ( const ScanDTVTransportList transports,
const ChannelImporterBasicStats info,
InsertAction  action,
ChannelType  type,
ScanDTVTransportList filtered 
) [protected]

Definition at line 366 of file channelimporter.cpp.

ScanDTVTransportList ChannelImporter::UpdateChannels ( const ScanDTVTransportList transports,
const ChannelImporterBasicStats info,
UpdateAction  action,
ChannelType  type,
ScanDTVTransportList filtered 
) [protected]

Definition at line 554 of file channelimporter.cpp.

For multiple channels.

Definition at line 1239 of file channelimporter.cpp.

For multiple channels.

Definition at line 1302 of file channelimporter.cpp.

For multiple channels.

Definition at line 1358 of file channelimporter.cpp.

OkCancelType ChannelImporter::QueryUserResolve ( const ChannelImporterBasicStats info,
const ScanDTVTransport transport,
ChannelInsertInfo chan 
) [protected]

For a single channel.

Definition at line 1476 of file channelimporter.cpp.

OkCancelType ChannelImporter::QueryUserInsert ( const ChannelImporterBasicStats info,
const ScanDTVTransport transport,
ChannelInsertInfo chan 
) [protected]

For a single channel.

Definition at line 1557 of file channelimporter.cpp.

QString ChannelImporter::ComputeSuggestedChannelNum ( const ChannelImporterBasicStats info,
const ScanDTVTransport transport,
const ChannelInsertInfo chan 
) [static, protected]

Definition at line 1196 of file channelimporter.cpp.

OkCancelType ChannelImporter::ShowManualChannelPopup ( MythMainWindow parent,
QString  title,
QString  message,
QString &  text 
) [static, protected]

Definition at line 1421 of file channelimporter.cpp.

void ChannelImporter::FixUpOpenCable ( ScanDTVTransportList transports) [static, protected]

Definition at line 875 of file channelimporter.cpp.

Definition at line 892 of file channelimporter.cpp.

Definition at line 931 of file channelimporter.cpp.

QString ChannelImporter::FormatChannels ( const ScanDTVTransportList transports,
const ChannelImporterBasicStats info 
) [static, protected]

Definition at line 1075 of file channelimporter.cpp.

QString ChannelImporter::FormatChannel ( const ScanDTVTransport transport,
const ChannelInsertInfo chan,
const ChannelImporterBasicStats info = NULL 
) [static, protected]

Definition at line 968 of file channelimporter.cpp.

QString ChannelImporter::SimpleFormatChannel ( const ScanDTVTransport transport,
const ChannelInsertInfo chan 
) [static, protected]

Definition at line 1037 of file channelimporter.cpp.

QString ChannelImporter::GetSummary ( uint  transport_count,
const ChannelImporterBasicStats info,
const ChannelImporterUniquenessStats stats 
) [static, protected]

Definition at line 1089 of file channelimporter.cpp.

bool ChannelImporter::IsType ( const ChannelImporterBasicStats info,
const ChannelInsertInfo chan,
ChannelType  type 
) [static, protected]

Definition at line 1119 of file channelimporter.cpp.

void ChannelImporter::CountChannels ( const ScanDTVTransportList transports,
const ChannelImporterBasicStats info,
ChannelType  type,
uint new_chan,
uint old_chan 
) [static, protected]

Definition at line 1174 of file channelimporter.cpp.


Member Data Documentation

Definition at line 224 of file channelimporter.h.

Definition at line 225 of file channelimporter.h.

Definition at line 226 of file channelimporter.h.

Definition at line 227 of file channelimporter.h.

Definition at line 228 of file channelimporter.h.

Only FreeToAir (non-encrypted) channels desired post scan?

Definition at line 230 of file channelimporter.h.

Services desired post scan.

Definition at line 232 of file channelimporter.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends