00001 #ifndef _CHANNEL_IMPORTER_HELPERS_H_ 00002 #define _CHANNEL_IMPORTER_HELPERS_H_ 00003 00004 // POSIX headers 00005 #include <stdint.h> 00006 typedef unsigned uint; 00007 00008 // C++ headers 00009 #include <vector> 00010 using namespace std; 00011 00012 // Qt headers 00013 #include <QString> 00014 #include <QDateTime> 00015 00016 // MythTV headers 00017 #include "mythtvexp.h" 00018 #include "dtvmultiplex.h" 00019 00020 class ScanInfo 00021 { 00022 public: 00023 ScanInfo(); 00024 ScanInfo(uint _scanid, uint _cardid, uint _sourceid, 00025 bool _processed, const QDateTime &_scandate); 00026 00027 static bool MarkProcessed(uint scanid); 00028 static bool DeleteScan(uint scanid); 00029 00030 public: 00031 uint scanid; 00032 uint cardid; 00033 uint sourceid; 00034 bool processed; 00035 QDateTime scandate; 00036 }; 00037 00038 MTV_PUBLIC vector<ScanInfo> LoadScanList(void); 00039 uint SaveScan(const ScanDTVTransportList &scan); 00040 MTV_PUBLIC ScanDTVTransportList LoadScan(uint scanid); 00041 00042 #endif // _CHANNEL_IMPORTER_HELPERS_H_
1.6.3