00001 #include "CommDetectorFactory.h"
00002 #include "ClassicCommDetector.h"
00003 #include "CommDetector2.h"
00004
00005 class NuppelVideoPlayer;
00006 class RemoteEncoder;
00007
00008 CommDetectorBase*
00009 CommDetectorFactory::makeCommDetector(enum SkipTypes commDetectMethod,
00010 bool showProgress, bool fullSpeed,
00011 NuppelVideoPlayer* nvp,
00012 int chanid,
00013 const QDateTime& startedAt,
00014 const QDateTime& stopsAt,
00015 const QDateTime& recordingStartedAt,
00016 const QDateTime& recordingStopsAt)
00017 {
00018 if ((commDetectMethod & COMM_DETECT_2))
00019 {
00020 return new CommDetector2(commDetectMethod, showProgress, fullSpeed,
00021 nvp, chanid, startedAt, stopsAt,
00022 recordingStartedAt, recordingStopsAt);
00023 }
00024
00025 return new ClassicCommDetector(commDetectMethod, showProgress, fullSpeed,
00026 nvp, startedAt, stopsAt, recordingStartedAt, recordingStopsAt);
00027 }
00028
00029
00030