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

void ChannelImporter::Process ( const ScanDTVTransportList _transports  ) 
QString ChannelImporter::toString ( ChannelType  type  )  [protected]

Definition at line 119 of file channelimporter.cpp.

Referenced by InsertChannels().

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

Definition at line 692 of file channelimporter.cpp.

Referenced by Process().

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

Definition at line 744 of file channelimporter.cpp.

Referenced by Process().

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.

Referenced by Process().

uint ChannelImporter::DeleteChannels ( ScanDTVTransportList transports  )  [protected]

Definition at line 139 of file channelimporter.cpp.

Referenced by Process().

uint ChannelImporter::DeleteUnusedTransports ( uint  sourceid  )  [protected]

Definition at line 226 of file channelimporter.cpp.

Referenced by Process().

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

Definition at line 279 of file channelimporter.cpp.

Referenced by Process().

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.

Referenced by InsertChannels().

ChannelImporter::DeleteAction ChannelImporter::QueryUserDelete ( const QString &  msg  )  [protected]

For multiple channels.

Definition at line 1239 of file channelimporter.cpp.

Referenced by DeleteChannels(), and DeleteUnusedTransports().

ChannelImporter::InsertAction ChannelImporter::QueryUserInsert ( const QString &  msg  )  [protected]

For multiple channels.

Definition at line 1302 of file channelimporter.cpp.

Referenced by InsertChannels().

ChannelImporter::UpdateAction ChannelImporter::QueryUserUpdate ( const QString &  msg  )  [protected]

For multiple channels.

Definition at line 1358 of file channelimporter.cpp.

Referenced by InsertChannels().

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

For a single channel.

Definition at line 1476 of file channelimporter.cpp.

Referenced by InsertChannels().

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.

Referenced by QueryUserInsert(), and QueryUserResolve().

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

Definition at line 1421 of file channelimporter.cpp.

Referenced by QueryUserInsert(), and QueryUserResolve().

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

Definition at line 875 of file channelimporter.cpp.

Referenced by Process().

ChannelImporterBasicStats ChannelImporter::CollectStats ( const ScanDTVTransportList transports  )  [static, protected]

Definition at line 892 of file channelimporter.cpp.

Referenced by InsertChannels(), and Process().

ChannelImporterUniquenessStats ChannelImporter::CollectUniquenessStats ( const ScanDTVTransportList transports,
const ChannelImporterBasicStats info 
) [static, protected]

Definition at line 931 of file channelimporter.cpp.

Referenced by InsertChannels(), and Process().

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

Definition at line 1075 of file channelimporter.cpp.

Referenced by InsertChannels(), and Process().

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

Definition at line 968 of file channelimporter.cpp.

Referenced by FormatChannels(), and InsertChannels().

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

Definition at line 1037 of file channelimporter.cpp.

Referenced by QueryUserInsert(), and QueryUserResolve().

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

Definition at line 1089 of file channelimporter.cpp.

Referenced by InsertChannels(), and Process().

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

Definition at line 1119 of file channelimporter.cpp.

Referenced by CountChannels(), InsertChannels(), and UpdateChannels().

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.

Referenced by InsertChannels().


Member Data Documentation

Definition at line 226 of file channelimporter.h.

Referenced by Process().

Definition at line 227 of file channelimporter.h.

Referenced by Process().

Definition at line 228 of file channelimporter.h.

Referenced by Process().

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

Definition at line 230 of file channelimporter.h.

Referenced by FilterServices().

Services desired post scan.

Definition at line 232 of file channelimporter.h.

Referenced by FilterServices().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Thu May 24 06:41:53 2012 for MythTV by  doxygen 1.6.3