00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef _CHANNEL_SCANNER_CLI_H_
00031 #define _CHANNEL_SCANNER_CLI_H_
00032
00033
00034 #include <QString>
00035
00036
00037 #include "mythtvexp.h"
00038 #include "settings.h"
00039 #include "channelscanner.h"
00040
00041 class MTV_PUBLIC ChannelScannerCLI : public ChannelScanner
00042 {
00043 public:
00044 ChannelScannerCLI(bool doScanSaveOnly, bool promptsOk);
00045 virtual ~ChannelScannerCLI();
00046
00047 virtual void HandleEvent(const ScannerEvent *scanEvent);
00048
00049 bool IsDone(void) const { return done; }
00050
00051 protected:
00052 virtual void InformUser(const QString &error);
00053 virtual void Process(const ScanDTVTransportList&);
00054 virtual void MonitorProgress(bool lock, bool strength,
00055 bool snr, bool rotor);
00056 private:
00057 bool done;
00058 bool onlysavescan;
00059 bool interactive;
00060 bool status_lock;
00061 uint status_complete;
00062 float status_snr;
00063 QString status_text;
00064 QString status_last_log;
00065 };
00066
00067 #endif // _CHANNEL_SCANNER_CLI_H_