MythTV  0.26-pre
PrePostRollFlagger.h
Go to the documentation of this file.
00001 #ifndef PREPOSTROLLFLAGGER_H
00002 #define PREPOSTROLLFLAGGER_H
00003 
00004 #include "ClassicCommDetector.h"
00005 
00006 class PrePostRollFlagger : public ClassicCommDetector
00007 {
00008 public:
00009     PrePostRollFlagger(SkipType commDetectMethod, bool showProgress,
00010                             bool fullSpeed, MythPlayer* player,
00011                             const QDateTime& startedAt_in,
00012                             const QDateTime& stopsAt_in,
00013                             const QDateTime& recordingStartedAt_in,
00014                             const QDateTime& recordingStopsAt_in);
00015 
00016     virtual void GetCommercialBreakList(frm_dir_map_t &comms);
00017     virtual ~PrePostRollFlagger(){}
00018     bool go();
00019 
00020 private:
00021     long long myTotalFrames;
00022     long long closestAfterPre;
00023     long long closestBeforePre;
00024     long long closestAfterPost;
00025     long long closestBeforePost;
00026 
00027     void Init();
00028 
00029     long long findBreakInrange(long long start, long long end,
00030                                long long totalFrames,
00031                                long long &framesProcessed,
00032                                QTime &flagTime, bool findLast);
00033 };
00034 
00035 #endif // PREPOSTROLLFLAGGER_H
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends