EITFixUp Class Reference

#include <eitfixup.h>

List of all members.


Detailed Description

EIT Fix Up Functions.

Definition at line 15 of file eitfixup.h.


Public Types

enum  FixUpType {
  kFixNone = 0x0000, kFixGenericDVB = 0x0001, kFixBell = 0x0002, kFixUK = 0x0004,
  kFixPBS = 0x0008, kFixComHem = 0x0010, kFixSubtitle = 0x0020, kFixAUStar = 0x0040,
  kFixMCA = 0x0080, kFixRTL = 0x0100, kFixFI = 0x0200, kFixPremiere = 0x0400,
  kFixHDTV = 0x0800, kFixNL = 0x1000, kEFixForceISO8859_1 = 0x2000, kEFixForceISO8859_15 = 0x4000
}

Public Member Functions

 EITFixUp ()
void Fix (DBEvent &event) const

Static Public Member Functions

static void TimeFix (QDateTime &dt)
 Corrects starttime to the multiple of a minute.

Static Protected Attributes

static const uint SUBTITLE_MAX_LEN = 128
static const uint kMaxToTitle = 14
static const uint kDotToTitle = 9
static const uint kMaxQuestionExclamation = 2
static const uint kMaxDotToColon = 5

Private Member Functions

void FixBellExpressVu (DBEvent &event) const
 Use this for the Canadian BellExpressVu to standardize DVB-S guide.
void SetUKSubtitle (DBEvent &event) const
 Use this in the United Kingdom to standardize DVB-T guide.
void FixUK (DBEvent &event) const
 Use this in the United Kingdom to standardize DVB-T guide.
void FixPBS (DBEvent &event) const
 Use this to standardize PBS ATSC guide in the USA.
void FixComHem (DBEvent &event, bool parse_subtitle) const
 Use this to standardize ComHem DVB-C service in Sweden.
void FixAUStar (DBEvent &event) const
 Use this to standardize DVB-S guide in Australia.
void FixMCA (DBEvent &event) const
 Use this to standardise the MultiChoice Africa DVB-S guide.
void FixRTL (DBEvent &event) const
 Use this to standardise the RTL group guide in Germany.
void FixFI (DBEvent &event) const
 Use this to clean DVB-T guide in Finland.
void FixPremiere (DBEvent &event) const
 Use this to standardize DVB-C guide in Germany for the providers Kabel Deutschland and Premiere.
void FixNL (DBEvent &event) const
 Use this to standardize @Home DVB-C guide in the Netherlands.

Private Attributes

const QRegExp m_bellYear
const QRegExp m_bellActors
const QRegExp m_bellPPVTitleAllDay
const QRegExp m_bellPPVTitleHD
const QRegExp m_bellPPVSubtitleAllDay
const QRegExp m_bellPPVDescriptionAllDay
const QRegExp m_bellPPVDescriptionAllDay2
const QRegExp m_bellPPVDescriptionEventId
const QRegExp m_ukThen
const QRegExp m_ukNew
const QRegExp m_ukCEPQ
const QRegExp m_ukColonPeriod
const QRegExp m_ukDotSpaceStart
const QRegExp m_ukDotEnd
const QRegExp m_ukSpaceColonStart
const QRegExp m_ukSpaceStart
const QRegExp m_ukSeries
const QRegExp m_ukCC
const QRegExp m_ukYear
const QRegExp m_uk24ep
const QRegExp m_ukStarring
const QRegExp m_ukBBC7rpt
const QRegExp m_ukDescriptionRemove
const QRegExp m_ukTitleRemove
const QRegExp m_ukDoubleDotEnd
const QRegExp m_ukDoubleDotStart
const QRegExp m_ukTime
const QRegExp m_ukBBC34
const QRegExp m_ukYearColon
const QRegExp m_ukExclusionFromSubtitle
const QRegExp m_ukCompleteDots
const QRegExp m_comHemCountry
const QRegExp m_comHemDirector
const QRegExp m_comHemActor
const QRegExp m_comHemHost
const QRegExp m_comHemSub
const QRegExp m_comHemRerun1
const QRegExp m_comHemRerun2
const QRegExp m_comHemTT
const QRegExp m_comHemPersSeparator
const QRegExp m_comHemPersons
const QRegExp m_comHemSubEnd
const QRegExp m_comHemSeries1
const QRegExp m_comHemSeries2
const QRegExp m_comHemTSub
const QRegExp m_mcaIncompleteTitle
const QRegExp m_mcaCompleteTitlea
const QRegExp m_mcaCompleteTitleb
const QRegExp m_mcaSubtitle
const QRegExp m_mcaSeries
const QRegExp m_mcaCredits
const QRegExp m_mcaAvail
const QRegExp m_mcaActors
const QRegExp m_mcaActorsSeparator
const QRegExp m_mcaYear
const QRegExp m_mcaCC
const QRegExp m_mcaDD
const QRegExp m_RTLrepeat
const QRegExp m_RTLSubtitle
const QRegExp m_RTLSubtitle1
const QRegExp m_RTLSubtitle2
const QRegExp m_RTLSubtitle3
const QRegExp m_RTLSubtitle4
const QRegExp m_RTLSubtitle5
const QRegExp m_RTLEpisodeNo1
const QRegExp m_RTLEpisodeNo2
const QRegExp m_fiRerun
const QRegExp m_Stereo
const QRegExp m_dePremiereInfos
const QRegExp m_dePremiereOTitle
const QRegExp m_nlStereo
const QRegExp m_nlTxt
const QRegExp m_nlWide
const QRegExp m_nlRepeat
const QRegExp m_nlHD
const QRegExp m_nlSub
const QRegExp m_nlActors
const QRegExp m_nlPres
const QRegExp m_nlPersSeparator
const QRegExp m_nlRub
const QRegExp m_nlYear1
const QRegExp m_nlYear2
const QRegExp m_nlDirector
const QRegExp m_nlCat
const QRegExp m_nlOmroep

Member Enumeration Documentation

Enumerator:
kFixNone 
kFixGenericDVB 
kFixBell 
kFixUK 
kFixPBS 
kFixComHem 
kFixSubtitle 
kFixAUStar 
kFixMCA 
kFixRTL 
kFixFI 
kFixPremiere 
kFixHDTV 
kFixNL 
kEFixForceISO8859_1 
kEFixForceISO8859_15 

Definition at line 30 of file eitfixup.h.


Constructor & Destructor Documentation

EITFixUp::EITFixUp (  ) 

Definition at line 11 of file eitfixup.cpp.


Member Function Documentation

void EITFixUp::Fix ( DBEvent event  )  const

Definition at line 105 of file eitfixup.cpp.

Referenced by EITHelper::ProcessEvents().

static void EITFixUp::TimeFix ( QDateTime &  dt  )  [inline, static]

Corrects starttime to the multiple of a minute.

Used for providers who fail to handle leap seconds timely. Changes the starttime not more than 3 seconds. Sshould only be used if the duration is the multiple of a minute.

Definition at line 62 of file eitfixup.h.

Referenced by EITHelper::AddEIT(), and EITHelper::CompleteEvent().

void EITFixUp::FixBellExpressVu ( DBEvent event  )  const [private]

Use this for the Canadian BellExpressVu to standardize DVB-S guide.

Todo:
deal with events that don't have eventype at the begining?

Definition at line 168 of file eitfixup.cpp.

Referenced by Fix().

void EITFixUp::SetUKSubtitle ( DBEvent event  )  const [private]

Use this in the United Kingdom to standardize DVB-T guide.

Definition at line 300 of file eitfixup.cpp.

Referenced by FixUK().

void EITFixUp::FixUK ( DBEvent event  )  const [private]

Use this in the United Kingdom to standardize DVB-T guide.

Definition at line 418 of file eitfixup.cpp.

Referenced by Fix().

void EITFixUp::FixPBS ( DBEvent event  )  const [private]

Use this to standardize PBS ATSC guide in the USA.

Definition at line 627 of file eitfixup.cpp.

Referenced by Fix().

void EITFixUp::FixComHem ( DBEvent event,
bool  parse_subtitle 
) const [private]

Use this to standardize ComHem DVB-C service in Sweden.

Definition at line 642 of file eitfixup.cpp.

Referenced by Fix().

void EITFixUp::FixAUStar ( DBEvent event  )  const [private]

Use this to standardize DVB-S guide in Australia.

Definition at line 883 of file eitfixup.cpp.

Referenced by Fix().

void EITFixUp::FixMCA ( DBEvent event  )  const [private]

Use this to standardise the MultiChoice Africa DVB-S guide.

Definition at line 899 of file eitfixup.cpp.

Referenced by Fix().

void EITFixUp::FixRTL ( DBEvent event  )  const [private]

Use this to standardise the RTL group guide in Germany.

Definition at line 1021 of file eitfixup.cpp.

Referenced by Fix().

void EITFixUp::FixFI ( DBEvent event  )  const [private]

Use this to clean DVB-T guide in Finland.

Definition at line 1125 of file eitfixup.cpp.

Referenced by Fix().

void EITFixUp::FixPremiere ( DBEvent event  )  const [private]

Use this to standardize DVB-C guide in Germany for the providers Kabel Deutschland and Premiere.

Definition at line 1147 of file eitfixup.cpp.

Referenced by Fix().

void EITFixUp::FixNL ( DBEvent event  )  const [private]

Use this to standardize @Home DVB-C guide in the Netherlands.

Definition at line 1176 of file eitfixup.cpp.

Referenced by Fix().


Member Data Documentation

const uint EITFixUp::SUBTITLE_MAX_LEN = 128 [static, protected]

Definition at line 19 of file eitfixup.h.

Referenced by FixMCA(), FixRTL(), and FixUK().

const uint EITFixUp::kMaxToTitle = 14 [static, protected]

Definition at line 21 of file eitfixup.h.

Referenced by SetUKSubtitle().

const uint EITFixUp::kDotToTitle = 9 [static, protected]

Definition at line 23 of file eitfixup.h.

Referenced by SetUKSubtitle().

const uint EITFixUp::kMaxQuestionExclamation = 2 [static, protected]

Definition at line 25 of file eitfixup.h.

Referenced by SetUKSubtitle().

const uint EITFixUp::kMaxDotToColon = 5 [static, protected]

Definition at line 27 of file eitfixup.h.

Referenced by SetUKSubtitle().

const QRegExp EITFixUp::m_bellYear [private]

Definition at line 84 of file eitfixup.h.

Referenced by FixBellExpressVu().

const QRegExp EITFixUp::m_bellActors [private]

Definition at line 85 of file eitfixup.h.

Referenced by FixBellExpressVu().

const QRegExp EITFixUp::m_bellPPVTitleAllDay [private]

Definition at line 86 of file eitfixup.h.

Referenced by FixBellExpressVu().

const QRegExp EITFixUp::m_bellPPVTitleHD [private]

Definition at line 87 of file eitfixup.h.

Referenced by FixBellExpressVu().

const QRegExp EITFixUp::m_bellPPVSubtitleAllDay [private]

Definition at line 88 of file eitfixup.h.

Referenced by FixBellExpressVu().

const QRegExp EITFixUp::m_bellPPVDescriptionAllDay [private]

Definition at line 89 of file eitfixup.h.

Referenced by FixBellExpressVu().

const QRegExp EITFixUp::m_bellPPVDescriptionAllDay2 [private]

Definition at line 90 of file eitfixup.h.

Referenced by FixBellExpressVu().

const QRegExp EITFixUp::m_bellPPVDescriptionEventId [private]

Definition at line 91 of file eitfixup.h.

Referenced by FixBellExpressVu().

const QRegExp EITFixUp::m_ukThen [private]

Definition at line 92 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukNew [private]

Definition at line 93 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukCEPQ [private]

Definition at line 94 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukColonPeriod [private]

Definition at line 95 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukDotSpaceStart [private]

Definition at line 96 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukDotEnd [private]

Definition at line 97 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukSpaceColonStart [private]

Definition at line 98 of file eitfixup.h.

Referenced by FixUK(), and SetUKSubtitle().

const QRegExp EITFixUp::m_ukSpaceStart [private]

Definition at line 99 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukSeries [private]

Definition at line 100 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukCC [private]

Definition at line 101 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukYear [private]

Definition at line 102 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_uk24ep [private]

Definition at line 103 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukStarring [private]

Definition at line 104 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukBBC7rpt [private]

Definition at line 105 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukDescriptionRemove [private]

Definition at line 106 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukTitleRemove [private]

Definition at line 107 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukDoubleDotEnd [private]

Definition at line 108 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukDoubleDotStart [private]

Definition at line 109 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukTime [private]

Definition at line 110 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukBBC34 [private]

Definition at line 111 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukYearColon [private]

Definition at line 112 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_ukExclusionFromSubtitle [private]

Definition at line 113 of file eitfixup.h.

Referenced by SetUKSubtitle().

const QRegExp EITFixUp::m_ukCompleteDots [private]

Definition at line 114 of file eitfixup.h.

Referenced by FixUK().

const QRegExp EITFixUp::m_comHemCountry [private]

Definition at line 115 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemDirector [private]

Definition at line 116 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemActor [private]

Definition at line 117 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemHost [private]

Definition at line 118 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemSub [private]

Definition at line 119 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemRerun1 [private]

Definition at line 120 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemRerun2 [private]

Definition at line 121 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemTT [private]

Definition at line 122 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemPersSeparator [private]

Definition at line 123 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemPersons [private]

Definition at line 124 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemSubEnd [private]

Definition at line 125 of file eitfixup.h.

const QRegExp EITFixUp::m_comHemSeries1 [private]

Definition at line 126 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemSeries2 [private]

Definition at line 127 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_comHemTSub [private]

Definition at line 128 of file eitfixup.h.

Referenced by FixComHem().

const QRegExp EITFixUp::m_mcaIncompleteTitle [private]

Definition at line 129 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_mcaCompleteTitlea [private]

Definition at line 130 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_mcaCompleteTitleb [private]

Definition at line 131 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_mcaSubtitle [private]

Definition at line 132 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_mcaSeries [private]

Definition at line 133 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_mcaCredits [private]

Definition at line 134 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_mcaAvail [private]

Definition at line 135 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_mcaActors [private]

Definition at line 136 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_mcaActorsSeparator [private]

Definition at line 137 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_mcaYear [private]

Definition at line 138 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_mcaCC [private]

Definition at line 139 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_mcaDD [private]

Definition at line 140 of file eitfixup.h.

Referenced by FixMCA().

const QRegExp EITFixUp::m_RTLrepeat [private]

Definition at line 141 of file eitfixup.h.

Referenced by FixRTL().

const QRegExp EITFixUp::m_RTLSubtitle [private]

Definition at line 142 of file eitfixup.h.

Referenced by FixRTL().

const QRegExp EITFixUp::m_RTLSubtitle1 [private]

Definition at line 143 of file eitfixup.h.

Referenced by FixRTL().

const QRegExp EITFixUp::m_RTLSubtitle2 [private]

Definition at line 144 of file eitfixup.h.

Referenced by FixRTL().

const QRegExp EITFixUp::m_RTLSubtitle3 [private]

Definition at line 145 of file eitfixup.h.

Referenced by FixRTL().

const QRegExp EITFixUp::m_RTLSubtitle4 [private]

Definition at line 146 of file eitfixup.h.

Referenced by FixRTL().

const QRegExp EITFixUp::m_RTLSubtitle5 [private]

Definition at line 147 of file eitfixup.h.

Referenced by FixRTL().

const QRegExp EITFixUp::m_RTLEpisodeNo1 [private]

Definition at line 148 of file eitfixup.h.

Referenced by FixRTL().

const QRegExp EITFixUp::m_RTLEpisodeNo2 [private]

Definition at line 149 of file eitfixup.h.

Referenced by FixRTL().

const QRegExp EITFixUp::m_fiRerun [private]

Definition at line 150 of file eitfixup.h.

Referenced by FixFI().

const QRegExp EITFixUp::m_Stereo [private]

Definition at line 151 of file eitfixup.h.

Referenced by FixFI().

const QRegExp EITFixUp::m_dePremiereInfos [private]

Definition at line 152 of file eitfixup.h.

Referenced by FixPremiere().

const QRegExp EITFixUp::m_dePremiereOTitle [private]

Definition at line 153 of file eitfixup.h.

Referenced by FixPremiere().

const QRegExp EITFixUp::m_nlStereo [private]

Definition at line 154 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlTxt [private]

Definition at line 155 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlWide [private]

Definition at line 156 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlRepeat [private]

Definition at line 157 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlHD [private]

Definition at line 158 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlSub [private]

Definition at line 159 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlActors [private]

Definition at line 160 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlPres [private]

Definition at line 161 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlPersSeparator [private]

Definition at line 162 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlRub [private]

Definition at line 163 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlYear1 [private]

Definition at line 164 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlYear2 [private]

Definition at line 165 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlDirector [private]

Definition at line 166 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlCat [private]

Definition at line 167 of file eitfixup.h.

Referenced by FixNL().

const QRegExp EITFixUp::m_nlOmroep [private]

Definition at line 168 of file eitfixup.h.

Referenced by FixNL().


The documentation for this class was generated from the following files:

Generated on Sat Dec 18 05:16:02 2010 for MythTV by  doxygen 1.5.5