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 using namespace std;
9 
10 // Qt headers
11 #include <QString>
12 #include <QDateTime>
13 
14 // MythTV headers
15 #include "mythtvexp.h"
16 #include "dtvmultiplex.h"
17 
18 class ScanInfo
19 {
20  public:
21  ScanInfo() = default;
22  ScanInfo(uint scanid, uint cardid, uint sourceid,
23  bool processed, QDateTime scandate);
24 
25  static bool MarkProcessed(uint scanid);
26  static bool DeleteScan(uint scanid);
27  static void DeleteScansFromSource(uint sourceid);
28 
29  public:
30  uint m_scanid {0};
31  uint m_cardid {0};
32  uint m_sourceid {0};
33  bool m_processed {false};
34  QDateTime m_scandate;
35 };
36 
37 MTV_PUBLIC vector<ScanInfo> LoadScanList(void);
38 MTV_PUBLIC vector<ScanInfo> LoadScanList(uint sourceid);
41 
42 #endif // CHANNEL_IMPORTER_HELPERS_H
mythtvexp.h
ScanDTVTransportList
vector< ScanDTVTransport > ScanDTVTransportList
Definition: dtvmultiplex.h:143
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 vector< ScanInfo > LoadScanList(void)
Definition: scaninfo.cpp:266
ScanInfo::m_scandate
QDateTime m_scandate
Definition: scaninfo.h:34
ScanInfo::ScanInfo
ScanInfo()=default
uint
unsigned int uint
Definition: compat.h:140
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
ScanInfo
Definition: scaninfo.h:19