MythTV  master
scaninfo.h
Go to the documentation of this file.
1 #ifndef CHANNEL_IMPORTER_HELPERS_H
2 #define CHANNEL_IMPORTER_HELPERS_H
3 
4 // C++ headers
5 #include <cstdint>
6 using uint = unsigned;
7 #include <vector>
8 // Qt headers
9 #include <QString>
10 #include <QDateTime>
11 
12 // MythTV headers
13 #include "mythtvexp.h"
14 #include "dtvmultiplex.h"
15 
16 class ScanInfo
17 {
18  public:
19  ScanInfo() = default;
20  ScanInfo(uint scanid, uint cardid, uint sourceid,
21  bool processed, QDateTime scandate);
22 
23  static bool MarkProcessed(uint scanid);
24  static bool DeleteScan(uint scanid);
25  static void DeleteScansFromSource(uint sourceid);
26 
27  public:
31  bool m_processed {false};
32  QDateTime m_scandate;
33 };
34 
35 MTV_PUBLIC std::vector<ScanInfo> LoadScanList(void);
36 MTV_PUBLIC std::vector<ScanInfo> LoadScanList(uint sourceid);
39 
40 #endif // CHANNEL_IMPORTER_HELPERS_H
mythtvexp.h
dtvmultiplex.h
hardwareprofile.scan.scan
def scan(profile, smoonURL, gate)
Definition: scan.py:57
SaveScan
uint SaveScan(const ScanDTVTransportList &scan)
Definition: scaninfo.cpp:22
LoadScan
MTV_PUBLIC ScanDTVTransportList LoadScan(uint scanid)
Definition: scaninfo.cpp:77
LoadScanList
MTV_PUBLIC std::vector< ScanInfo > LoadScanList(void)
Definition: scaninfo.cpp:266
ScanInfo::m_scanid
uint m_scanid
Definition: scaninfo.h:28
ScanInfo::m_scandate
QDateTime m_scandate
Definition: scaninfo.h:32
ScanInfo::MarkProcessed
static bool MarkProcessed(uint scanid)
Definition: scaninfo.cpp:200
ScanInfo::ScanInfo
ScanInfo()=default
uint
unsigned int uint
Definition: compat.h:141
ScanDTVTransportList
std::vector< ScanDTVTransport > ScanDTVTransportList
Definition: dtvmultiplex.h:143
ScanInfo::DeleteScansFromSource
static void DeleteScansFromSource(uint sourceid)
Definition: scaninfo.cpp:257
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
ScanInfo::m_sourceid
uint m_sourceid
Definition: scaninfo.h:30
ScanInfo::m_processed
bool m_processed
Definition: scaninfo.h:31
ScanInfo::m_cardid
uint m_cardid
Definition: scaninfo.h:29
ScanInfo
Definition: scaninfo.h:16
ScanInfo::DeleteScan
static bool DeleteScan(uint scanid)
Definition: scaninfo.cpp:218